/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Variabel Warna */
:root {
    --primary-orange: #F5A623;
    --background-grey: #E9ECEF;
    --card-background: #FFFFFF;
    --text-dark: #212529;
    --text-light: #6C757D;
    --border-grey: #DEE2E6;
    --button-dark: #343A40;
    --danger-red: #DC3545;
    --success-green: #2ECC71;
}

/* Reset dan Gaya Dasar */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--background-grey);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Utama */
.main-header {
    text-align: center;
    padding: 2rem 1rem;
}
.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}
.main-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Kontainer Utama */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

/* Tombol Toggle Form */
.form-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.form-toggle button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--card-background);
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.2s;
}
.form-toggle button.active {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

/* Layout Kartu Form */
.form-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}
.form-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Penyesuaian Responsif untuk Layout Kartu */
@media (max-width: 992px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}

/* Grup Form */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group label, label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}
.satuan-label {
    font-weight: 400;
}

/* Elemen Input */
input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder {
    color: #ced4da;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}
input[readonly] { background-color: #f8f9fa; cursor: not-allowed; }

/* Tombol */
.btn {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}
.btn-dark {
    background-color: var(--button-dark);
    color: white;
    padding: 0.6rem 1rem;
}
.btn-danger {
    background-color: var(--danger-red);
    color: white;
    padding: 0.5rem;
    line-height: 1;
}

/* Kapasitas Produksi */
.capacity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.capacity-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    gap: 1rem;
    align-items: center;
}

/* Notifikasi */
#notification {
    /* Posisi & Tampilan */
    position: fixed; /* Penting agar bisa melayang di atas konten lain */
    top: 20px;
    right: 20px;
    z-index: 1000; /* Pastikan selalu di paling depan */
    
    /* Ukuran & Gaya */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    
    /* Teks */
    color: white;
    font-weight: 500;
    
    /* Animasi */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(120%); /* Mulai dari luar layar */
    opacity: 0;
}

/* Saat notifikasi aktif (class 'hidden' dihilangkan) */
#notification:not(.hidden) {
    transform: translateX(0); /* Masuk ke dalam layar */
    opacity: 1;
}

/* Helper Class */
.hidden { display: none !important; }

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.satuan-info {
    align-self: center;
    margin-left: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}
.satuan-suffix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-grey);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
}

/* Styling Tabel (Meskipun disembunyikan, gayanya tetap ada) */
.table-container {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.table-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead th {
    text-align: left;
    padding: 0.8rem 1rem;
    background-color: #F8F9FA;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
tbody td {
    padding: 1rem;
    border-bottom: 1px solid #E9ECEF;
    color: var(--text-dark);
    font-size: 0.9rem;
}
tbody tr:last-child td {
    border-bottom: none;
}

