/* ============================================
   UNIFIED VENDING DASHBOARD - STYLES
   ============================================ */

:root {
    --primary: #22b6ee;
    --primary-hover: #1a9ed6;
    --secondary: #075985;
    --accent: #b6e6fa;
    --success: #43e97b;
    --warning: #f5a623;
    --danger: #f5576c;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f5f5f5;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-hover: rgba(30, 41, 59, 0.95);
    --text-main: #f8fafc;
    --text-dark: #1a1a1a;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(34, 211, 238, 0.1) 0px, transparent 50%);
}

/* ============================================
   LOGIN MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #075985 0%, #0d7fa8 100%);
    backdrop-filter: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    box-shadow: none;
    display: flex;
    align-items: stretch;
}

.login-card {
    animation: slideUp 0.5s ease-out;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.logo-with-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.uni-name h1 {
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0;
    color: var(--primary);
    font-weight: 700;
}

.uni-name p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.uni-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(7, 89, 133, 0.2);
    object-fit: contain;
    background: white;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.role-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input {
    display: none;
}

.role-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #333;
}

.role-option input:checked + .role-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.role-label i {
    font-size: 1.1rem;
}

/* Customer Login Styles */
.login-form-section {
    transition: all 0.3s ease;
}

.login-form-section.hidden {
    display: none;
}

.customer-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.customer-type-option {
    flex: 1;
    position: relative;
}

.customer-type-option input {
    display: none;
}

.type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    color: #333;
}

.customer-type-option input:checked + .type-label {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.type-label i {
    font-size: 1rem;
}

.customer-form {
    transition: all 0.3s ease;
}

.customer-form.hidden {
    display: none;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group.half {
    flex: 1;
}

.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(7, 89, 133, 0.15);
    background: #fff;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), #0d7fa8);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(7, 89, 133, 0.3);
    margin-bottom: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 89, 133, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    /* Hidden to keep login area clean */
    display: none !important;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255,255,255,0.1);
}

.demo-credentials {
    /* Hidden by default to keep login area clean */
    display: none !important;
}

.demo-credentials .muted {
    color: #6b7280;
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.login-footer a:hover {
    color: #0d7fa8;
    text-decoration: underline;
}

/* ============================================
   SPLIT LOGIN WITH SLIDESHOW
   ============================================ */

.split-login {
    display: flex;
    width: 100%;
    height: 100vh;
}

.split-left {
    width: 50%;
    background: linear-gradient(180deg, rgba(7,89,133,0.65), rgba(13,127,168,0.75));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slideshow-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.slideshow-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.6);
}

.slideshow-dot.active {
    background: #22d3ee;
    border-color: #22d3ee;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* Upload Overlay */
.upload-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-wrapper:hover .upload-overlay {
    opacity: 1;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: rgba(34, 211, 238, 0.95);
    border: 2px solid #22d3ee;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
}

.upload-btn:hover {
    background: rgba(34, 211, 238, 1);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.6);
}

.upload-btn i {
    font-size: 1.5rem;
}

.split-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

@media (max-width: 900px) {
    .split-left { display: none; }
    .split-right { width: 100%; }
    .login-card { max-width: 640px; margin: 0 auto; }
}

/* ============================================
   OLD GALLERY STYLES (KEPT FOR COMPATIBILITY)
   ============================================ */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 900px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: transform 0.35s ease, filter 0.35s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.gallery-overlay {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: rgba(255,255,255,0.95);
    z-index: 5;
    text-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* Slideshow main image + thumbnails */
.gallery-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.gallery-big {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 120px);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 1rem 0;
    width: 100%;
}

.gallery-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    opacity: 1;
}

@media (min-width: 900px) {
    .gallery {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 2rem;
    }
}

.split-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

@media (max-width: 900px) {
    .split-left { display: none; }
    .split-right { width: 100%; }
    .login-card { max-width: 640px; margin: 0 auto; }
}

/* ============================================
   MAIN DASHBOARD LAYOUT
   ============================================ */

.dashboard {
    display: flex;
    height: 100vh;
}

.dashboard.hidden {
    display: none;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #e0f4ff 0%, #b6e6fa 100%);
    border-right: 1px solid #b6e6fa;
    overflow-y: auto;
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.logo-upload-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 182, 238, 0.15), rgba(7, 89, 133, 0.15));
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-upload-container:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(34, 182, 238, 0.25), rgba(7, 89, 133, 0.25));
    box-shadow: 0 8px 20px rgba(34, 182, 238, 0.2);
}

.logo-upload-container:hover .logo-overlay {
    opacity: 1;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.logo-upload-container:hover .sidebar-logo {
    transform: scale(0.9);
}

.logo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 182, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.logo-overlay i {
    color: white;
    font-size: 1.5rem;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-section .uni-name.small {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--secondary);
    text-align: center;
    line-height: 1.2;
}

.logo-section span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    padding: 4px 12px;
    background: rgba(34, 182, 238, 0.15);
    border-radius: 20px;
}

/* Logo Menu */
.logo-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    padding: 8px;
    margin-top: 8px;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.logo-menu button {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

.logo-menu button:hover {
    background: rgba(34, 182, 238, 0.15);
    color: var(--primary);
    padding-left: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section {
    padding: 0 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    max-height: 500px;
    transition: all 0.3s;
}

.nav-section.hidden {
    display: none;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px 0 0 8px;
    color: #075985;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: #d0eaff;
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: #b6e6fa;
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item.logout {
    color: var(--danger);
}

.nav-item.logout:hover {
    background: rgba(245, 87, 108, 0.1);
}

.nav-item i {
    font-size: 1.1rem;
    min-width: 1.2rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
}

.top-header {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-left h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.user-profile span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.profile-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.profile-btn:hover {
    transform: scale(1.1);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    min-width: 200px;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.profile-menu.hidden {
    display: none !important;
}

.profile-menu.active {
    display: flex;
}

.profile-menu a {
    padding: 0.8rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.profile-menu a:last-child {
    border-bottom: none;
}

.profile-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* ============================================
   PAGES CONTAINER
   ============================================ */

.pages-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HOME PAGE
   ============================================ */

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    color: var(--success);
}

/* ============================================
   SHOWCASE SECTIONS
   ============================================ */

.showcase-section {
    margin-bottom: 3rem;
}

.showcase-section h2,
.foods-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.machines-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.machine-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.machine-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.machine-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-card h3 {
    padding: 1.5rem 1.5rem 0;
    font-size: 1.1rem;
}

.machine-card p {
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FOODS SECTION
   ============================================ */

.foods-section {
    margin-bottom: 3rem;
}

.foods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.food-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.food-card:hover {
    background: var(--card-hover);
    border-color: var(--secondary);
    transform: translateY(-8px);
}

.food-image {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.food-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.food-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.food-price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.report-filters,
.browse-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* ============================================
   CHARTS
   ============================================ */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-card canvas {
    max-height: 300px;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid var(--glass-border);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.active {
    background: rgba(67, 233, 123, 0.2);
    color: var(--success);
}

.status.inactive {
    background: rgba(245, 87, 108, 0.2);
    color: var(--danger);
}

.status.warning {
    background: rgba(245, 166, 35, 0.2);
    color: var(--warning);
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.role-badge.customer {
    background: rgba(34, 211, 238, 0.2);
    color: var(--secondary);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
}

.progress-bar.large {
    height: 12px;
    margin-top: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 50%;
    transition: width 0.3s;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-8px);
}

.product-image {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.product-card h4 {
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.product-price {
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
}

/* ============================================
   HEALTH CARDS
   ============================================ */

.health-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.health-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.health-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.health-stat {
    margin-bottom: 1rem;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ORDERS LIST
   ============================================ */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-header h4 {
    font-size: 1.1rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.order-items {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* ============================================
   NUTRITION GUIDE
   ============================================ */

.nutrition-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.guide-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.guide-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.guide-card strong {
    color: var(--primary);
}

/* ============================================
   SETTINGS
   ============================================ */

.settings-container {
    max-width: 600px;
}

.settings-section {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.settings-item {
    margin-bottom: 1.5rem;
}

.settings-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-item input[type="text"],
.settings-item input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
}

.settings-item input[type="text"]:focus,
.settings-item input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-label input,
.radio-label input {
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label:hover,
.radio-label:hover {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-sm {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ============================================
   SUMMARY CARDS
   ============================================ */

.sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.trend-up {
    color: var(--success);
    font-size: 0.85rem;
}

.trend-down {
    color: var(--danger);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s;
        z-index: 200;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-header {
        padding: 1rem;
    }

    .header-right {
        gap: 1rem;
    }

    .pages-container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .machines-showcase {
        grid-template-columns: 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-modal {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-left h2 {
        font-size: 1.1rem;
    }

    .foods-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}
