/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Mengatur gambar sebagai background halaman utama */
    background-image: url('ajinomoto.jpg'); 
    
    /* Memastikan gambar menutupi seluruh layar tanpa terpotong kosong */
    background-size: cover;
    
    /* Mengatur agar posisi gambar selalu di tengah */
    background-position: center;
    
    /* Mencegah gambar berulang jika layar terlalu besar */
    background-repeat: no-repeat;
    
    /* Menjaga background tetap diam saat halaman di-scroll */
    background-attachment: fixed;
    
    /* Menyediakan warna cadangan jika gambar gagal dimuat */
    background-color: #f4f4f4; 
        display: flex;
    justify-content: center;  /* Membuat konten ke tengah secara horizontal */
    align-items: center;      /* Membuat konten ke tengah secara vertikal */
    min-height: 100vh;        /* Memastikan tinggi halaman memenuhi layar */
    
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;
}

/* ==========================================================================
   BACKGROUND KHUSUS UNTUK HALAMAN DASHBOARD / MENU UTAMA
   ========================================================================== */

body.dashboard-page {
    /* 🔴 GANTI dengan nama file gambar background kedua Anda */
    background-image: url('product_ajinomoto.jpg'); 
    
    /* Memastikan pengaturan gambar background tetap rapi dan penuh di layar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    
    /* Menjaga agar kotak menu utama tetap berada tepat di tengah layar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* Kontainer Login (Glassmorphism) */
.login-container {
    width: 100%;
    max-width: 430px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #240303, #b65465);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #e61414, #b65465);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-header p {
    font-size: 14px;
    color: #180107;
    margin-bottom: 32px;
}

/* Input Form */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px; /* 44px di ujung adalah padding-left untuk teks */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
/* Pembungkus utama dashboard */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.input-icon {
 position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%); /* Membuat ikon lurus tepat di tengah vertikal */
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none; 
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ffffff;
}

/* Pesan Error Validasi */
.error-message {
    font-size: 11px;
    color: #f87171;
    margin-top: 5px;
    display: none;
}

/* Aksi Form (Remember Me & Forgot) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #cbd5e1;
    user-select: none;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.forgot-pass {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pass:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Tombol Login */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   KODE TAMBAHAN UNTUK HALAMAN MENU UTAMA (MAIN MENU) SETELAH LOGIN BERHASIL
   ========================================================================== */

/* Kontainer Utama Menu */
.menu-container {
    flex: 1;                   
    min-width: 250px;          /* 🌟 Lebar minimal diperkecil agar tidak patah di layar sedang */
    max-width: 320px;          /* 🌟 Lebar maksimal diperkecil agar pas berempat */
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    box-sizing: border-box;
}

.menu-header h2 {
    font-size: 56px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-align: center;
}

.menu-header h3 {
    font-size: 32px;
    font-weight: normal;
    margin-top: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.menu-header p {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    text-align: center;
}
.plan-header p {
    font-size: 32px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-align: center;
}

/* Penataan Kotak Grid Tombol Menu */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Jika Layar Komputer / Tablet, Berubah Otomatis Jadi 2 Kolom Sejajar */
@media (max-width: 1100px) {
    .flex-container-blur {
        flex-direction: column;
        align-items: center;
    }
}
/* Styling Desain Kartu Menu */
.menu-card {
    display: flex;
    align-items: center;
    background: rgba(238, 4, 4, 0.4);
    border: 1px solid rgba(11, 7, 223, 0.2);
    padding: 18px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: left;
    transition: all 0.3s ease;
}

/* Efek Hover Ketika Mouse Mengarah ke Menu */
.menu-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Lingkaran Nomor Urut Menu */
.menu-number {
    background: #6366f1; /* Menggunakan warna biru/ungu yang sama dengan tombol Sign In */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

.menu-text {
    font-size: 14px;
    line-height: 1.3;
    color: #131212;
}

/* Tombol Keluar / Logout */
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px; /* Jarak dari bawah kotak blur */
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15); /* Warna transparan semi putih */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #ffffff; /* Warna teks tombol */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


.logout-btn:hover {
    background: rgba(239, 68, 68, 0.85); /* Berubah merah transparan */
    border-color: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #ffffff;
}
/* Tombol Keluar / Logout */
.kpi-factory-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px; /* Jarak dari bawah kotak blur */
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15); /* Warna transparan semi putih */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #ffffff; /* Warna teks tombol */
    text-decoration: none;
    font-size: 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}


.kpi-factory-btn:hover {
    background: rgba(9, 230, 93, 0.85); /* Berubah merah transparan */
    border-color: rgb(69, 24, 233);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.flex-container-blur {
    display: flex;
    flex-direction: row;       
    justify-content: center;   
    align-items: flex-start;   
    gap: 15px;                 /* 🌟 Jarak diperkecil sedikit agar tidak terlalu lebar */
    width: 100%;
    max-width: 1400px;         /* 🌟 Batas lebar maksimal dinaikkan agar muat 4 kotak */
    margin-bottom: 30px;
}

/* ==========================================================================
   BACKGROUND KHUSUS UNTUK HALAMAN Work In Progress
   ========================================================================== */

body.work-in-progress-page {
    /* 🔴 GANTI dengan nama file gambar background kedua Anda */
    background-image: url('work-in-progress.png'); 
    
    /* Memastikan pengaturan gambar background tetap rapi dan penuh di layar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    
    /* Menjaga agar kotak menu utama tetap berada tepat di tengah layar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
/*

        .form-group { margin-bottom: 15px; }
        
        label { display: block; font-weight: bold; margin-bottom: 5px; color: #555; }
        
        select, input[type="text"], textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
        
        button { width: 100%; padding: 12px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; font-weight: bold; }
        
        button:hover { background-color: #45a049; }*/