/* Custom Mealnix Styles */

/* Dashboard Specific */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive Dashboard Stats */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-value {
        font-size: 24px;
    }
    
    .stats-label {
        font-size: 12px;
    }
}

/* Order Cards */
.order-card {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    font-size: 12px;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.order-number {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.order-card .badge {
    font-size: 10px;
    padding: 4px 8px;
}

.order-card .mb-2 {
    margin-bottom: 8px !important;
    font-size: 12px;
    line-height: 1.4;
}

.order-card .btn-sm {
    font-size: 11px;
    padding: 4px 10px;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Table Grid View */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.table-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.table-card.available {
    border: 2px solid #10b981;
}

.table-card.occupied {
    border: 2px solid #3b82f6;
}

.table-card.reserved {
    border: 2px solid #ef4444;
}

/* KOT Cards */
.kot-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.kot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kot-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.kot-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.kot-status.in-kitchen {
    background: #dbeafe;
    color: #1e40af;
}

.kot-status.ready {
    background: #d1fae5;
    color: #065f46;
}

/* Inventory Cards */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.inventory-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inventory-card.available {
    border-top: 4px solid #10b981;
}

.inventory-card.low-stock {
    border-top: 4px solid #f59e0b;
}

.inventory-card.out-of-stock {
    border-top: 4px solid #ef4444;
}

/* Settings Tabs */
.settings-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.settings-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 12px 20px;
    margin-right: 10px;
    transition: all 0.3s;
}

.settings-tabs .nav-link:hover {
    border-bottom-color: #ccc;
    color: #333;
}

.settings-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Sections */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* Notification Dropdown */
.notification-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-header {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.notification-item.bg-light {
    background-color: #f0f7ff !important;
    border-left: 3px solid #0d6efd;
}

.notification-item .fa {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.notification-item .fw-bold {
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-item small {
    font-size: 12px;
    display: block;
    line-height: 1.4;
}

.notification-item .badge {
    font-size: 8px;
    padding: 2px 6px;
}

#notificationBadge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

#notificationBadge:empty {
    display: none;
}

/* Print Styles */
@media print {
    .sidebar,
    .top-navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
}


