/* File: /assets/css/style.css */
/* Versi 1.5 - Kontras Lencana Status Diperbaiki */

/* --- Pembolehubah Warna --- */
:root {
    --primary-color: #005A9C; /* Biru korporat */
    --secondary-color: #343a40; /* Kelabu gelap untuk sidebar */
    --light-gray: #f0f2f5;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #1cc88a;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
}

/* --- Gaya Asas --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
}

/* --- Halaman Awam (Borang Aduan) --- */
.form-container {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.form-header {
    background-color: var(--primary-color);
    padding: 1.5rem 2rem;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.75rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: #004a80;
    border-color: #004a80;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* --- Panel Pentadbir --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--secondary-color);
    color: #fff;
    transition: all 0.3s;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #495057;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1.05em;
    display: block;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: var(--primary-color);
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: var(--primary-color);
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Kad Statistik Dashboard */
.card.border-left-primary { border-left: .25rem solid var(--primary-color) !important; }
.card.border-left-success { border-left: .25rem solid var(--success-color) !important; }
.card.border-left-info { border-left: .25rem solid var(--info-color) !important; }
.card.border-left-warning { border-left: .25rem solid var(--warning-color) !important; }

.text-gray-300 { color: #dddfeb !important; }
.text-gray-800 { color: #5a5c69 !important; }

/* DITAMBAH: Gaya untuk Lencana Status */
.status-baru {
    color: #fff !important;
    background-color: var(--primary-color) !important;
}
.status-sedang-diproses {
    color: #000 !important;
    background-color: var(--warning-color) !important;
}
.status-cadang-selesai {
    color: #fff !important;
    background-color: var(--success-color) !important;
}
.status-selesai {
    color: #fff !important;
    background-color: #858796 !important;
}


/* --- Gaya Responsif --- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px; 
    }
    #sidebar.active {
        margin-left: 0;
        position: absolute;
        height: 100%;
    }
}

/* --- Gaya Cetakan --- */
@media print {
  body, #content {
    margin: 0;
    padding: 0;
    background-color: #fff;
  }
  .no-print, #sidebar, .btn, form {
    display: none !important;
  }
  .card {
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
  }
}
