﻿body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .logo::before {
        content: "🍽️";
        font-size: 1.5rem;
    }

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.circle {
    width: 215px;
    height: 25px;
    line-height: 15px;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    text-align: center;
    background: #000;
}

.card-click-animation {
    -moz-transition: all 0.4s ease-out;
    -o-transition: all 0.4s ease-out;
    -webkit-transition: all 0.4s ease-out;
    -ms-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.card-click-opacity {
    opacity: 0.6;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Live Orders Styles */
.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.status-new {
    background: #d4edda;
    color: #155724;
}

.status-preparing {
    background: #fff3cd;
    color: #856404;
}

.status-ready {
    background: #d1ecf1;
    color: #0c5460;
}

.status-served {
    background: #e2e3e5;
    color: #383d41;
}

.priority-high {
    border-left: 4px solid #dc3545;
}

.priority-medium {
    border-left: 4px solid #ffc107;
}

.priority-normal {
    border-left: 4px solid #28a745;
}

.table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#liveOrdersTable {
    margin: 0 !important;
}

    #liveOrdersTable thead th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    #liveOrdersTable tbody tr {
        transition: all 0.3s ease;
    }

        #liveOrdersTable tbody tr:hover {
            background-color: #f8f9fa;
            transform: scale(1.01);
        }

.action-btn {
    padding: 0.3rem 0.8rem;
    margin: 0 0.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-update {
    background: #28a745;
    color: white;
}

    .btn-update:hover {
        background: #218838;
        transform: translateY(-2px);
    }

.btn-complete {
    background: #17a2b8;
    color: white;
}

    .btn-complete:hover {
        background: #138496;
        transform: translateY(-2px);
    }

.order-timer {
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.timer-warning {
    background: #fff3cd;
    color: #856404;
}

.timer-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Enhanced Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
/* Modal Overlay */
.payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    .payment-modal-overlay.active {
        display: flex;
    }

/* Modal Container */
.payment-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.payment-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

    .payment-modal-header h3 {
        margin: 0 0 10px 0;
        color: #333;
        font-size: 24px;
        font-weight: 600;
    }

    .payment-modal-header p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

/* Payment Options */
.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .payment-option:hover {
        border-color: #4CAF50;
        background: #f8fff9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    }

    .payment-option.selected {
        border-color: #4CAF50;
        background: #e8f5e9;
    }

.payment-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.payment-option h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.payment-option p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* Action Buttons */
.payment-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.payment-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn-confirm {
    background: #4CAF50;
    color: white;
}

    .payment-btn-confirm:hover {
        background: #45a049;
    }

    .payment-btn-confirm:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.payment-btn-cancel {
    background: #f5f5f5;
    color: #333;
}

    .payment-btn-cancel:hover {
        background: #e0e0e0;
    }

/* Error Message */
.payment-error {
    display: none;
    color: #f44336;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

    .payment-error.active {
        display: block;
    }