/* Hide until Vue is ready */
[v-cloak] {
    display: none !important;
}

/* Group Order Button */
.group-order-section {
    padding: 0 15px;
}

.btn-group-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-group-order:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-group-order i {
    font-size: 18px;
}

/* Active Group Info */
.group-order-active {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
}

.group-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
}

/* Group Order Modal */
.group-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-order-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.group-order-modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.group-order-modal-header h5 {
    font-weight: 600;
}

.group-order-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.group-order-close:hover {
    color: #333;
}

.group-order-modal-body {
    padding: 20px;
}

/* Tabs */
.group-order-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f3f4;
}

.group-order-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-order-tab.active {
    background: #667eea;
    color: #fff;
}

.group-order-tab:hover:not(.active) {
    background: #e8e8e8;
}

/* Form */
.group-order-form .form-group {
    margin-bottom: 15px;
}

.group-order-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.group-order-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.group-order-form .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.group-order-form .form-control.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-weight: bold;
}

/* Active View */
.group-order-active-view {
    text-align: left;
}

.group-code-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.group-code-large {
    font-family: monospace;
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 5px;
    margin: 10px 0 15px;
}

.group-participants {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.group-participants h6 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.group-participants ul {
    margin: 0;
}

.group-participants li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.group-participants li:last-child {
    border-bottom: none;
}

.group-participants .badge {
    font-size: 10px;
    padding: 3px 8px;
}

/* Buttons */
.group-owner-actions,
.group-participant-actions {
    margin-top: 20px;
}

.btn-green {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background: #218838;
    color: #fff;
}

.btn-green:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.btn-outline-dark:hover {
    background: #333;
    color: #fff;
}

/* Alerts */
.group-order-modal .alert {
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
}

.group-order-modal .alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.group-order-modal .alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .group-order-modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }
    
    .group-code-large {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .group-order-section {
        padding: 0 10px;
    }
}

/* Mobile floating group order button */
@media (max-width: 991px) {
    .group-order-section {
        display: none;
    }
    
    .mobile-group-order-btn {
        position: fixed;
        bottom: 80px;
        right: 15px;
        z-index: 999;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-group-order-btn i {
        font-size: 24px;
    }
    
    .mobile-group-order-btn.active {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }
}
