@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #f5f7fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 75px; /* Space for bottom nav */
}

/* Hide scrollbar for native app feel */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Background Animation for Login */
.login-body {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.card-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: moveDots 60s linear infinite;
    opacity: 0.3;
}

@keyframes moveDots {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Vegetables Animation */
.floating-veg {
    position: absolute;
    font-size: 30px;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Header Premium */
.header-premium {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
}

.page-header {
    background: #ffffff;
    color: #000000;
    padding: 20px 25px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-bar {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Card Premium */
.card-premium {
    background: white;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 25px;
}

.card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-header-premium {
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    color: white;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 18px;
    border: none;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px;
}

.loading-spinner i {
    font-size: 40px;
    color: #2ecc71;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
    color: white;
}

/* =========================================
   Styles extracted from login.php
========================================= */

/* Header Premium Specific to Login */
.header-login {
    background: #ffffff;
    color: #10b981;
    text-align: center;
    padding: 100px 25px 40px;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.header-login::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46,204,113,0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.logo {
    font-size: 55px; /* Reduced from 85px */
    margin-bottom: 15px;
    display: inline-block;
    color: #10b981;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-login h4 {
    font-weight: 800;
    font-size: 20px;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.header-login small {
    font-size: 13px;
    color: #888888;
}

/* Body Login */
.body-login {
    background: #ffffff;
    padding: 20px 30px 40px;
    flex: 1;
    position: relative;
}

/* Alert Premium */
.alert-custom {
    border-radius: 16px;
    border: none;
    padding: 12px 18px;
    margin-bottom: 25px;
    animation: shake 0.5s ease-in-out;
    background: linear-gradient(135deg, #fee, #fdd);
    color: #c0392b;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form Group */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 700;
    font-size: 13px;
    color: #1a472a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    font-size: 14px;
    color: #2ecc71;
}

.input-wrapper {
    position: relative;
}

.form-control {
    height: 52px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
    padding: 0 20px;
    font-weight: 500;
}

.form-control:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* Toggle Password */
.showpass {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.3s ease;
    font-size: 18px;
}

.showpass:hover {
    color: #2ecc71;
}

/* Button Login Premium */
.btn-login {
    height: 52px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    color: white;
}

.btn-login:hover {
    background: #1a472a;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 11px;
    color: #95a5a6;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.footer i {
    color: #e74c3c;
    margin: 0 3px;
}

/* Loading Animation */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* Responsive Login */
@media (max-width: 991px) {
    .card-login {
        width: 100%;
    }
    
    .body-login {
        padding: 25px;
    }
    
    .logo {
        font-size: 60px;
    }
    
    .header-login h4 {
        font-size: 20px;
    }
    
    .form-control {
        height: 48px;
        font-size: 13px;
    }
    
    .btn-login {
        height: 48px;
        font-size: 14px;
    }
}

/* =========================================
   Styles extracted from dashboard_admin.php
========================================= */

.dashboard-body {
    padding-bottom: 30px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.welcome-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 5px;
}

.btn-mode {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-mode:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

.btn-logout {
    background: rgba(231, 76, 60, 0.8);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    color: white;
}

/* ===== STAT CARD PREMIUM ===== */
.stat-card {
    border-radius: 12px;
    padding: 25px;
    background: #ffffff;
    color: #000000;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 40px;
    opacity: 1;
    position: absolute;
    top: 25px;
    right: 25px;
}

.stat-title, .stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.stat-number, .stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 15px;
    color: #000000;
}

/* Stat Colors */
.stat-blue .stat-icon { color: #3b82f6; }
.stat-red .stat-icon { color: #ef4444; }
.stat-green .stat-icon { color: #10b981; }
.stat-orange .stat-icon { color: #f59e0b; }

.bg-green { background: #10b981; }
.bg-blue { background: #3b82f6; }
.bg-orange { background: #f59e0b; }
.bg-red { background: #ef4444; }
.bg-purple { background: #8b5cf6; }
.bg-teal { background: #14b8a6; }

/* ===== QUICK MENU ===== */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
}

.menu-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.menu-item:hover::before {
    transform: scaleX(1);
}

.menu-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #000000;
}

.menu-title {
    font-weight: 700;
    font-size: 14px;
    color: #000000;
}

.menu-desc {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    padding: 20px;
    height: 300px;
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 991px) {
    .page-header {
        padding: 18px 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-icon {
        font-size: 30px;
    }
    
    .quick-menu {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .menu-icon {
        font-size: 28px;
    }
    
    .menu-title {
        font-size: 11px;
    }
}

/* =========================================
   Styles extracted from produk.php
========================================= */

.header-title {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.header-title i {
    margin-right: 10px;
    font-size: 24px;
}

.cart-box {
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.cart-box i {
    margin-right: 8px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    animation: pulse 1s infinite;
}

/* ===== NAVIGASI ===== */
.nav-home {
    background: white;
    margin: 15px 15px 0 15px;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-home a {
    color: #1a472a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-home a:hover {
    color: #2ecc71;
}

.nav-home i {
    color: #2ecc71;
}

/* ===== KATEGORI SLIDER ===== */
.kategori-wrap {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.kategori-wrap::-webkit-scrollbar {
    height: 4px;
}

.kategori-wrap::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.kategori-wrap::-webkit-scrollbar-thumb {
    background: #2ecc71;
    border-radius: 10px;
}

.kategori-item {
    min-width: 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kategori-item:hover {
    transform: translateY(-5px);
}

.kategori-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.kategori-item span {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-top: 8px;
    color: #000000;
}

.kategori-item.active img {
    border-color: #2ecc71;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
}

.kategori-item.active span {
    color: #2ecc71;
}

/* ===== SEARCH BOX PREMIUM ===== */
.search-box {
    padding: 0 15px 15px 15px;
}

.search-wrapper {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-wrapper input {
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    background: transparent;
}

.search-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

.search-wrapper button {
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    border: none;
    transition: all 0.3s ease;
    color: white;
}

.search-wrapper button:hover {
    transform: scale(1.02);
    opacity: 0.9;
    color: white;
}

/* ===== GRID PRODUK MODERN ===== */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

@media (min-width: 992px) {
    .produk-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   Styles extracted from dashboard_kasir.php
========================================= */
.room-card {
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.room-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2ecc71;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.room-card:hover::after {
    transform: scaleX(1);
}
.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #2ecc71;
}
.room-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.room-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a472a;
    margin: 10px 0;
}
.room-aktif {
    background: linear-gradient(135deg, #eafaf1, #d4efdf);
    border: 2px solid #2ecc71;
}
.total-room {
    font-size: 18px;
    font-weight: 800;
    color: #27ae60;
    margin-top: 8px;
}
.badge-item {
    background: #2ecc71;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}
.room-kosong {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 8px;
    font-weight: 500;
}
.footer-info {
    background: white;
    border-radius: 20px;
    padding: 15px;
    margin-top: 40px;
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.auto-refresh {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
    z-index: 999;
}
@media (min-width: 1200px) {
    .produk-grid { grid-template-columns: repeat(4, 1fr); }
}

.produk-card {
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.produk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.produk-card:hover::before {
    transform: scaleX(1);
}

.produk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.produk-card img {
    width: 100%;
    border-radius: 10px;
    height: 90px;
    object-fit: cover;
}

.produk-title {
    margin-top: 6px;
    font-weight: 700;
    color: #1a472a;
    font-size: 12px;
    line-height: 1.2;
}

.produk-harga {
    color: #e74c3c;
    font-weight: 800;
    font-size: 13px;
    margin-top: 4px;
}

.produk-stok {
    font-size: 10px;
    color: #95a5a6;
    margin-top: 2px;
    font-weight: 500;
}

.produk-stok i {
    margin-right: 4px;
}

.produk-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    border: none;
    padding: 6px;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 6px;
    transition: all 0.3s ease;
    font-size: 11px;
}

.produk-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
    color: white;
}

/* ===== PAGINATION ===== */
.pagination {
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1a472a, #0f2c1c);
    border-color: #1a472a;
    color: white;
}

.pagination .page-link {
    color: #1a472a;
    border-radius: 10px;
    margin: 0 4px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-link:hover {
    background: #eef2f6;
    color: #1a472a;
}

/* =========================================
   Styles for produk_ajax.php (Missing)
========================================= */
.produk-img-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.produk-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.produk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.badge-stok {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.empty-produk {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px;
}

/* =========================================
   Responsive Fixes for Tablet and Mobile
========================================= */
@media (max-width: 991px) {
    .page-header {
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }
    .page-title {
        font-size: 20px;
    }
    .welcome-text {
        font-size: 14px;
    }
    .stat-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    .stat-value {
        font-size: 22px !important;
    }
    .room-card {
        padding: 12px 10px;
        border-radius: 16px;
    }
    .room-icon {
        font-size: 32px;
        margin-bottom: 6px;
    }
    .room-name {
        font-size: 13px;
        margin: 5px 0;
    }
    .total-room {
        font-size: 13px;
        margin-top: 4px;
    }
    .badge-item {
        padding: 3px 8px;
        font-size: 10px;
        margin-top: 5px;
    }
    .room-kosong {
        font-size: 11px;
        margin-top: 5px;
    }
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 991px) {
    .page-header .d-flex.justify-content-between,
    .header-bar .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
        text-align: center;
    }
    .page-header .d-flex.gap-2 {
        justify-content: center;
    }
    .btn-logout, .btn-tambah, .btn-premium {
        width: 100%;
        margin-top: 5px;
        justify-content: center;
    }
    .col-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .stat-card {
        min-height: 120px;
    }
    h5.section-title {
        font-size: 16px;
    }
    .badge {
        font-size: 12px;
    }
}

/* =========================================
   Bottom Navigation Bar
========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1030;
    padding: 12px 0 10px;
    border-radius: 24px 24px 0 0;
}

.bottom-nav a {
    text-align: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.bottom-nav a i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.bottom-nav a:hover, .bottom-nav a.active {
    color: #34d399;
}

.bottom-nav a.active i {
    transform: translateY(-2px);
}

/* =========================================
   SUPER PREMIUM ADMIN DASHBOARD STYLES
========================================= */

/* Header Glassmorphism */
.admin-header-glass {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 35px 25px 45px;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: white;
    overflow: hidden;
    margin-bottom: 25px;
}

.admin-header-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(30deg);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-welcome-text {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
}

.admin-welcome-text strong {
    color: #34d399;
}

.btn-kasir-mode {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.btn-kasir-mode:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.title-icon {
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Quick Menu Grid */
.admin-quick-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.admin-menu-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.admin-menu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.admin-menu-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.admin-menu-card:hover::before {
    opacity: 1;
}

.admin-menu-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.admin-menu-card:hover .admin-menu-icon {
    transform: rotate(10deg) scale(1.1);
}

.admin-menu-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.admin-menu-title {
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.admin-menu-card:hover .admin-menu-title {
    color: #10b981;
}

.admin-menu-desc {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

.admin-menu-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.admin-menu-card:hover .admin-menu-arrow {
    background: #10b981;
    color: white;
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Badge Status */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #a7f3d0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.font-weight-medium {
    font-weight: 500;
}

/* Animations */
.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .admin-header-glass {
        padding: 25px 20px 35px;
        border-radius: 0 0 25px 25px;
    }
    .header-profile {
        flex-direction: row;
        width: 100%;
    }
    .btn-kasir-mode {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .admin-quick-menu {
        grid-template-columns: 1fr;
    }
    
    /* Mobile font & size adjustments */
    .admin-page-title {
        font-size: 18px;
    }
    .admin-welcome-text {
        font-size: 12px;
    }
    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .admin-menu-card {
        padding: 18px;
        gap: 15px;
    }
    .admin-menu-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    .admin-menu-title {
        font-size: 14px;
    }
    .admin-menu-desc {
        font-size: 11px;
    }
}
