/**
 * FoodCourtHub - Modern Responsive CSS
 * Clean Aesthetic, Warm Orange & Slate Themes, Print Styling
 */

:root {
    --fc-primary: #ea580c;
    --fc-primary-hover: #c2410c;
    --fc-primary-light: #fff7ed;
    --fc-secondary: #0f172a;
    --fc-card-bg: #ffffff;
    --fc-sidebar-bg: #0f172a;
    --fc-border-color: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Styling */
.app-sidebar {
    width: 260px;
    background-color: var(--fc-sidebar-bg);
    color: #94a3b8;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1040;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
}

.sidebar-menu .nav-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 14px 12px 6px;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 3px;
    text-decoration: none;
}

.sidebar-menu .nav-link i {
    width: 24px;
    font-size: 1.05rem;
    margin-right: 10px;
    color: #94a3b8;
    transition: color 0.2s;
}

.sidebar-menu .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-menu .nav-link:hover i {
    color: #f97316;
}

.sidebar-menu .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    font-weight: 600;
}

.sidebar-menu .nav-link.active i {
    color: #ffffff;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--fc-border-color);
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-content {
    padding: 28px 24px;
    flex: 1;
}

/* Card Styling */
.card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    padding: 0.45em 0.75em;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Customer Portal Hero */
.customer-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 40px 20px 30px;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
}

.customer-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

/* Floating Cart Bar */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #0f172a;
    color: #fff;
    padding: 14px 22px;
    border-radius: 18px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* KDS Tickets */
.kds-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #ea580c;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.kds-card.dimasak {
    border-top-color: #f59e0b;
    background: #fffbeb;
}

/* Thermal Struk Print Style */
@media print {
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
}
