@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* =========================================
   GLOBAL STYLE & BACKGROUND
   ========================================= */
body {
    /* Background Gradient: Biru Muda ke Kuning Muda */
    background: linear-gradient(90deg, #cbebf1 0%, #fbfcdb 100%);
    min-height: 100vh;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1b1b1b;
}

button:hover {
    opacity: 0.9;
}

/* =========================================
   HALAMAN LOGIN (DIUBAH SESUAI GAMBAR)
   ========================================= */

/* Wrapper untuk menengahkan form login di layar */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-align: center;
}

/* Logo UT */
.logo-container {
    margin-bottom: 15px;
}

.login-logo {
    width: 80px; /* Sesuaikan ukuran logo jika perlu */
    height: auto;
}

/* Typography Header Login */
.login-header h2 {
    font-size: 20px;
    color: #0d1b45; /* Dark Blue */
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.login-header h1 {
    font-size: 36px;
    color: #0d1b45;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.login-header p {
    font-size: 13px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Form Input Styling */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin: 0; /* Reset margin lama */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f2f4f6; /* Warna abu-abu muda */
    outline: none;
    transition: all 0.3s;
}

input:focus {
    background-color: #fff;
    border-color: #a7d6e6;
    box-shadow: 0 0 0 3px rgba(167, 214, 230, 0.3);
}

/* Link Lupa Password */
.forgot-pass {
    text-align: left;
    margin-bottom: 20px;
}

.forgot-pass a {
    color: #1a237e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

/* Tombol Masuk (Login Button) */
#loginForm button {
    background-color: #a7d6e6; /* Biru pastel sesuai gambar */
    color: #1a237e; /* Teks biru tua */
    font-weight: 700;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    font-size: 16px;
    margin-top: 5px;
}

#loginForm button:hover {
    background-color: #8ac0d3;
}

/* Footer Links (Belum punya akun) */
.links {
    margin-top: 25px;
    font-size: 13px;
    color: #333;
}

.links a.register-link {
    color: #d99a77; /* Warna oranye/coklat pudar */
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d99a77;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 11px;
}

.links a.register-link:hover {
    background-color: #fff8f5;
}

/* =========================================
   DASHBOARD & MENU (Kode Asli)
   ========================================= */
.menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background-color: #1b6dc1;
    height: 80px;
    /* Reset background body gradient untuk area menu jika transparan */
    z-index: 10;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a {
    padding: 12px 20px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.menu a:hover {
    color: #ccc;
    cursor: pointer;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: #1b1b1b;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: #1b1b1b;
}

#greeting {
    color: #1b1b1b;
    font-weight: 600;
    text-align: center;
    margin: 20px auto;
}

/* =========================================
   TRACKING & CONTENT (Kode Asli)
   ========================================= */
.tracking-container {
    max-width: 75%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tracking-container label {
    text-align: left;
}

/* Tombol Find/Search (jika ada di tracking) */
.find-button {
    background-color: #e8b802;
    color: #29303B;
    font-weight: 700;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.paket-detail {
    margin: -20px 0 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.paket-detail ol {
    text-align: left;
    margin-left: 20px;
}
.paket-detail h4, .paket-detail p, .paket-detail ol, .paket-detail li {
    margin-bottom: 10px;
    color: #1b1b1b;
}

.tracking-table {
    animation: fadeIn 0.5s ease-in-out;
    max-width: 75%;
    margin: auto;
}

.tracking-table h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #1b1b1b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   STOCK & FILTERS (Kode Asli)
   ========================================= */
/* SweetAlert Adjustments */
div:where(.swal2-container) input:where(.swal2-input), 
div:where(.swal2-container) input:where(.swal2-file), 
div:where(.swal2-container) textarea:where(.swal2-textarea), 
div:where(.swal2-container) select:where(.swal2-select) {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 !important;
    font-size: smaller !important;
}

.select-filter {
    display: flex;
    align-items: center;
}

div .filter-container input[type="checkbox"], .date-do input[type="date"] {
    width: auto !important;
    margin-right: 8px !important;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

div:where(.filter-container) select, .date-do input[type="date"] {
    appearance: none;
    border: 0;
    outline: 0;
    background: none;
    color: inherit;
    box-shadow: none;
}

.filter-container h4 {
    margin-right: 10px;
    font-size: 16px;
    font-weight: 600;
}

div:where(.filter-container) select, .reset-filter-btn, .date-do input[type="date"] {
    background-color: #d9d8d4;
    color: #29303B;
    font-weight: 600;
    padding: 5px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

div:where(.filter-container) select:hover, .reset-filter-btn:hover, .date-do input[type="date"]:hover {
    background-color: #bfbeb9;
}

.warning { color: hsl(39, 100%, 50%); font-weight: bold; }
.danger { color: #f44336; font-weight: bold; }
.success { color: #4caf50; font-weight: bold; }

.edit {
    background-color: #ffd500;
    color: #fff;
    font-weight: bold;
    padding: 5px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.delete {
    background-color: #f44336;
    color: #fff;
    font-weight: bold;
    padding: 5px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.container h2 {
    margin-top: 25px;
}

.container {
    margin: auto;
    max-width: 75vw;
}

/* =========================================
   TABLES & FORMS (Kode Asli)
   ========================================= */
table {
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

table th, table td {
    border-bottom: 1px solid #eee;
    padding: 12px;
    text-align: center;
    font-size: 15px;
}

table th {
    background-color: #1b6dc1;
    color: white;
}

table tr:hover {
    background-color: #f0f8ff;
}

table td a {
    color: #1b6dc1;
    text-decoration: none;
}

table td a:hover {
    text-decoration: underline;
}

form#formTambah {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form#formTambah button {
    width: 100%;
    margin-top: 15px;
    background-color: #e8b802;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   MEDIA QUERY (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
        align-items: center;
    }

    form#formTambah input {
        width: 100%;
    }

    .tracking-container,
    .login-container,
    .container {
        width: 90%;
        max-width: 90%;
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.section-title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left; /* Rata kiri sesuai gambar referensi */
    border-bottom: 2px solid #1b6dc1;
    display: inline-block;
    padding-bottom: 5px;
}

/* Container Grid */
.menu-grid {
    display: grid;
    /* Membuat kolom otomatis mengisi ruang, minimal lebar 220px per box */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Style Kartu Menu */
.menu-card {
    background-color: #a7d6e6; /* Warna biru muda sesuai tema login/referensi */
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #0d1b45; /* Warna teks biru tua */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%; /* Agar tinggi sama rata */
    min-height: 150px;
}

/* Efek Hover pada Kartu */
.menu-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat di-hover */
    background-color: #8ac0d3;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Style Icon */
.menu-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #0d1b45;
}

/* Style Teks Menu */
.menu-card span {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* Penyesuaian agar greeting tidak terlalu mepet */
#greeting {
    margin: 20px 0;
    text-align: left !important; /* Override text-align center sebelumnya */
}

/* Responsif untuk layar kecil (HP) */
@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr; /* 1 kolom penuh ke bawah di HP */
    }
}
