/* Import Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #FF416C, #FF4B2B); /* Merah Pedas & Oranye */
    --accent-color: #FFDE4D; /* Kuning Kencur */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #2b2b2b;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- ANIMASI --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 75, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

/* --- LAYOUT SPLIT (UNIK) --- */
.unique-auth-container {
    display: flex;
    min-height: 100vh;
    background: #fdfbf7;
    overflow: hidden;
}

/* Sisi Kiri: Visual Art */
.auth-visual-side {
    flex: 1.2;
    background: var(--primary-gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.auth-visual-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 222, 77, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.visual-badge {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-visual-side h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.auth-visual-side p {
    font-size: 1.1rem;
    margin-top: 15px;
    opacity: 0.9;
    max-width: 400px;
}

/* Sisi Kanan: Formulir */
.auth-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: url('https://www.transparenttextures.com/patterns/food.png'); /* Pattern samar bertema makanan */
}

.unique-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Form Input Kustom */
.input-group-custom {
    position: relative;
    margin-bottom: 25px;
}

.input-group-custom label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-custom {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.input-custom:focus {
    outline: none;
    border-color: #FF4B2B;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.1);
}

/* Tombol Submit Eksklusif */
.btn-unique {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.3);
}

.btn-unique:hover {
    transform: translateY(-2px);
    animation: pulse-glow 1.5s infinite;
}

.form-footer-custom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-footer-custom a {
    color: #FF4B2B;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-footer-custom a:hover {
    border-color: #FF4B2B;
}

/* Responsif untuk HP / Layar Kecil */
@media (max-width: 968px) {
    .unique-auth-container {
        flex-direction: column;
    }
    .auth-visual-side {
        padding: 50px 20px;
        flex: none;
    }
    .auth-visual-side h1 {
        font-size: 2.3rem;
    }
    .auth-form-side {
        padding: 30px 20px;
    }
    .unique-glass-card {
        padding: 30px 20px;
    }
}

/* --- FITUR LIHAT PASSWORD & FORM TWO-COLUMN --- */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container .input-custom {
    padding-right: 45px; /* Memberi ruang untuk ikon mata */
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #FF4B2B;
}

/* Tata Letak Dua Kolom untuk Registrasi Tanpa Scroll */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px; /* Jarak antar input */
    margin-bottom: 20px;
}

/* Penyesuaian khusus kartu daftar agar lebih lebar tetapi tetap proporsional */
.unique-glass-card.register-card {
    max-width: 750px; /* Diperlebar agar muat 2 kolom */
    padding: 35px;
}

.grid-full-width {
    grid-column: span 2; /* Tombol dan footer tetap penuh */
}

/* Memastikan elemen form-group di dalam grid tidak merusak layout */
.form-grid-2 .input-group-custom {
    margin-bottom: 0; 
}

/* Responsif: Jika dibuka di HP, otomatis kembali menjadi 1 kolom dan vertikal */
@media (max-width: 968px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .grid-full-width {
        grid-column: span 1;
    }
    .unique-glass-card.register-card {
        max-width: 460px;
    }
}

/* --- LAYOUT UTAMA DASHBOARD --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #fdfbf7;
}

/* Sidebar Custom */
.main-sidebar {
    width: 260px;
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.btn-logout-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #d32f2f;
    color: white !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-logout-sidebar:hover {
    background: #b71c1c !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    transform: translateY(-1px);
}

.sidebar-brand {
    padding: 0 25px 30px 25px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    margin-top: 25px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    color: white;
    background: linear-gradient(90deg, #FF416C, #FF4B2B);
    border-left: 5px solid var(--accent-color);
}

/* Konten Utama */
.main-content-area {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.user-badge-info {
    background: rgba(255, 75, 43, 0.1);
    color: #FF4B2B;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.inner-content {
    padding: 40px;
    flex: 1;
}

/* --- KARTU DASHBOARD / HERO BANNER --- */
.welcome-hero {
    background: var(--primary-gradient);
    padding: 40px;
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(255, 75, 43, 0.15);
}

.welcome-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.welcome-hero p { opacity: 0.9; font-size: 1rem; }

/* --- TABEL MODERN (NEXT LEVEL) --- */
.table-responsive-wrapper {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 20px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-table th {
    background: #fdfbf7;
    padding: 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f1f1;
}

.modern-table td {
    padding: 16px;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #f8f8f8;
}

.modern-table tr:last-child td { border-bottom: none; }

/* --- GRID KARTU MENU (USER) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.menu-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.menu-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 75, 43, 0.08);
}

.menu-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-card-body {
    padding: 25px;
}

.menu-card-body h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.menu-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    height: 45px;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF4B2B;
}

/* --- KOTAK MASUKAN / REPORT CARD --- */
.report-item-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 5px solid #FF4B2B;
    box-shadow: 0 5px 20px rgba(0,0,0,0.01);
}

/* --- SELEKSI EDIT DROPDOWN ADMIN --- */
.select-status-custom {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background-color: white;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
}
.select-status-custom:focus { border-color: #FF4B2B; }

/* Notifikasi */
.alert-toast {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 4px solid #2E7D32;
}