/* Asosiy stillar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header yangi dizayn */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.restaurant-info h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Main content */
main {
    padding: 2rem 0;
}

/* Buyurtma bo'limi */
.order-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.customer-info {
    margin-bottom: 2.5rem;
}

.customer-info h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #667eea;
}

/* Yetkazib berish opsiyalari */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.8);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.delivery-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #667eea;
}

.delivery-option input[type="radio"]:checked + .option-text {
    color: #667eea;
    font-weight: 600;
}

.delivery-address {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Menyu bo'limi */
.menu-section {
    margin-bottom: 2.5rem;
}

.menu-section h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e5e9;
    background: rgba(255,255,255,0.8);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.menu-item {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.menu-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.menu-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.menu-item.popular::before {
    content: "⭐ Mashhur";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

.cooking-time {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cooking-time::before {
    content: "⏱️";
}

.description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(102, 126, 234, 0.05);
    padding: 0.75rem;
    border-radius: 12px;
}

.quantity-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quantity-display {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 40px;
    text-align: center;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

/* Buyurtma xulasasi */
.order-summary {
    background: rgba(248, 250, 252, 0.9);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.order-summary h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.summary-item-info {
    display: flex;
    flex-direction: column;
}

.summary-item-name {
    font-weight: 600;
    color: #333;
}

.summary-item-details {
    font-size: 0.9rem;
    color: #666;
}

.promo-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.promo-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.total-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.total-row:not(:last-child) {
    border-bottom: 1px solid #e1e5e9;
}

.discount-row {
    color: #10b981;
}

.delivery-row {
    color: #f59e0b;
}

.final-total {
    font-size: 1.2rem;
    color: #667eea;
    border-top: 2px solid #667eea;
    padding-top: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Tugmalar */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-section {
        text-align: center;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1;
        min-width: 80px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
    }
    
    .menu-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Animatsiyalar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.6s ease forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

/* Loading animatsiyasi */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menyu bo'limi */
.menu-section {
    margin-bottom: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.menu-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.menu-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-item.selected {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.menu-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.menu-item .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.menu-item .description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-btn:hover {
    background: #5a67d8;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Buyurtma xulasasi */
.order-summary {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.total {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #667eea;
}

/* Tugmalar */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Oshxona paneli */
.kitchen-orders {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.order-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card.pending {
    border-left: 5px solid #fbbf24;
}

.order-card.preparing {
    border-left: 5px solid #3b82f6;
}

.order-card.ready {
    border-left: 5px solid #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status.kutilmoqda {
    background: #fef3c7;
    color: #92400e;
}

.status.tayyorlanmoqda {
    background: #dbeafe;
    color: #1e40af;
}

.status.tayyor {
    background: #d1fae5;
    color: #065f46;
}

.urgent {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.order-info p {
    margin-bottom: 0.5rem;
}

.order-items {
    margin: 1rem 0;
}

.order-items .item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Ofitsiant paneli */
.waiter-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ready-orders {
    margin-bottom: 3rem;
}

.served-list {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
}

.served-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.served-item:last-child {
    border-bottom: none;
}

/* Admin paneli */
.admin-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.admin-sections {
    display: grid;
    gap: 2rem;
}

.section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: #374151;
}

/* Menyu boshqaruvi */
.menu-management {
    margin-top: 1rem;
}

.menu-items {
    margin-top: 1.5rem;
}

.menu-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-info h4 {
    margin-bottom: 0.5rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status.available {
    color: #10b981;
    font-weight: bold;
}

.status.unavailable {
    color: #f56565;
    font-weight: bold;
}

/* Jadval */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    background: #f9fafb;
    font-weight: bold;
    color: #374151;
}

.orders-table tr:hover {
    background: #f9fafb;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.preparing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.ready {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.served {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal form input,
.modal form select,
.modal form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.modal form textarea {
    height: 100px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 0.9rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }
}

/* Yordamchi klasslar */
.no-orders {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Oshxona va boshqa panellar uchun qo'shimcha stillar */
.kitchen-orders,
.waiter-section,
.admin-dashboard {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.kitchen-orders h2,
.waiter-section h2,
.admin-dashboard h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kitchen-orders h2::before {
    content: "👨‍🍳";
    font-size: 2rem;
}

.waiter-section h2::before {
    content: "🍽️";
    font-size: 2rem;
}

.admin-dashboard h2::before {
    content: "📊";
    font-size: 2rem;
}

/* Order cards yangi dizayn */
.order-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.order-card.pending::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.order-card.preparing::before {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.order-card.ready::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse 2s infinite;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.order-header h3,
.order-header h4 {
    color: #667eea;
    font-size: 1.3rem;
    margin: 0;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.kutilmoqda {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status.tayyorlanmoqda {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.status.tayyor {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: bold;
    animation: blink 1s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.order-info {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.order-info p {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info strong {
    color: #667eea;
}

.order-items {
    margin: 1.5rem 0;
}

.order-items h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.order-items .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.order-total {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.order-actions {
    text-align: center;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.stat-card:hover::before {
    top: -25%;
    right: -25%;
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* Admin sections */
.admin-sections {
    display: grid;
    gap: 2.5rem;
}

.section {
    background: rgba(249, 250, 251, 0.9);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
}

.section h2 {
    margin-bottom: 2rem;
    color: #374151;
    font-size: 1.5rem;
}

/* Menu management */
.menu-management {
    margin-top: 1.5rem;
}

.menu-items {
    margin-top: 2rem;
}

.menu-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.menu-item-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.item-info h4 {
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 1.2rem;
}

.item-info p {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status.available {
    color: #10b981;
    font-weight: bold;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.status.unavailable {
    color: #ef4444;
    font-weight: bold;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

/* Tables */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

.orders-table th,
.orders-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.orders-table th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: bold;
    color: #374151;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-badge.preparing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.status-badge.ready {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge.served {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* Modal yangi dizayn */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
}

.close:hover {
    color: #333;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal form input,
.modal form select,
.modal form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.modal form input:focus,
.modal form select:focus,
.modal form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.modal form textarea {
    height: 120px;
    resize: vertical;
}

/* Served orders list */
.served-list {
    background: rgba(249, 250, 251, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.served-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.served-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.served-item:last-child {
    border-bottom: none;
}

/* No orders message */
.no-orders {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    background: rgba(249, 250, 251, 0.9);
    border-radius: 16px;
    border: 2px dashed rgba(107, 114, 128, 0.3);
}

.no-orders::before {
    content: "📋";
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

/* Success page enhancements */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    animation: successSlideIn 0.6s ease;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
    .orders-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .restaurant-info h1 {
        font-size: 1.5rem;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-item {
        flex: 1;
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .order-section,
    .kitchen-orders,
    .waiter-section,
    .admin-dashboard {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
    }
    
    .menu-filters {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .menu-item-admin {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .item-actions {
        justify-content: center;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .success-card {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .restaurant-info h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .nav-item span:not(.nav-icon) {
        font-size: 0.8rem;
    }
    
    .orders-table {
        font-size: 0.8rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }
    
    .nav-item,
    .order-actions,
    .action-buttons,
    .submit-btn,
    .btn {
        display: none !important;
    }
    
    .order-section,
    .success-card,
    .order-details-page {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }
}