/* Reset default */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;/* Tambahan agar tidak ada scroll horizontal */
    
}
*, *::before, *::after {
    box-sizing: border-box;
}


/* Container utama */
.container,
.container-fluid {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Panel Kiri */
.left-panel {
    /* flex: 1; */
    background-color: #002b55;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    width: 50%;
}

.title-yellow {
    color: #FFD700;
    margin: 10px 0;
    font-weight: 600; /* Gunakan font tebal dari Nunito */
}

/* Container utama */
.container {
    display: flex;
    height: 100vh;
    position: relative; /* Tambah ini untuk posisi relatif agar .logo-top tetap dalam konteks */
    /* width: 100vh; */
}

/* Logo Pojok Atas */
.logo-top {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center; /* perbaikan dari 'left' ke 'center' */
    color: white;
    font-size: 12px;
    z-index: 10; /* agar tidak tertimpa elemen lain */
}

.logo-top img {
    width: 100px;
    margin-right: 8px;
}

.logo-top p {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
}

.logo-atas {
    width: 100px;
    margin-bottom: 5px;
}

.content-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-tengah {
    width: 250px;
    margin-bottom: 0px;
}

.title-yellow {
    color: #FFD700;
    margin: 10px 0;
}

/* Panel Kanan */
.right-panel {
    /* flex: 1; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    height: 100vh;
    width: 50%;
    overflow: hidden;
    overflow-y: auto;
}
/* Kartu login */
.card {
    border-radius: 10px;
}

/* Tombol custom */
.btn-custom-primary {
    background-color: #0d1d49;
    color: white;
    border: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-custom-primary:hover {
    background-color: #152d6b;
}

/* Input besar */
.form-control-lg {
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 6px;
}

/* Placeholder teks */
::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* Link di bawah form */
.text-muted {
    font-size: 14px;
}

/* Link signup */
.text-dark.text-decoration-none:hover {
    text-decoration: underline;
}

/* Responsif */
@media (max-width: 768px) {
    .right-panel {
        flex-direction: column;
        padding: 20px;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }
}

.login-form {
    width: 100%;
    max-width: 320px;
}

.login-form h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.login-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-form button {
    background-color: #0d1d49;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    float: right;
}

.login-form button:hover {
    background-color: #152d6b;
}

.login-form .signup {
    margin-top: 40px;
    font-size: 14px;
}

.login-form .signup a {
    color: #2979ff;
    text-decoration: none;
}

.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.login-form p {
    text-align: center;
}

.login-form a {
    color: #007bff;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}
/* Style untuk select dropdown */
.login-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.login-form select:focus {
    border-color: #0d1d49;
    outline: none;
}
/* Reset default */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

/* Wrapper */
.wrapper {
    display: flex;
    height: 100vh;
}
/*submenu*/
.menu-item.active, .menu-item:hover {
    background-color: #1C487A;
    /* color: #FFD700; */
}

.submenu {
    display: none; /* Default sembunyikan submenu */
    padding-left: 10px;
}

.submenu.visible {
    display: block; /* Tampilkan submenu jika aktif */
}

.menu-item.dropdown::after {
    /*content: '\25BE'; /* Panah bawah */
    margin-left: auto;
    color: #FFD700;
}

.menu-item.dropdown.open::after {
    content: '\25B4'; /* Panah atas */
}
/* Dropdown styling */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.user-dropdown.visible {
    display: flex;
}

.user-dropdown button {
    background: none;
    border: none;
    padding: 10px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.user-dropdown button:hover {
    background-color: #f0f0f0;
}

.user-info {
    position: relative;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    width: 210px;
    background-color: #002b55;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* Aktifkan scroll vertikal */
    overflow-x: hidden;
    transition: width 0.3s ease;
    position: relative;
    height: 100vh; /* Batasi tinggi sidebar sesuai tinggi viewport */
}


/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-header .title {
    display: none;
}

.sidebar.collapsed .menu-item span:not(.icon) {
    display: none;
}

.sidebar.collapsed .arrow {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none !important;
}

.sidebar-header {
    text-align: center;
    padding: 10px;
}

.sidebar-header .logo {
    max-width: 50px;
    margin-bottom: 0px;
}

.sidebar-header .title {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-header .title span {
    font-size: 14px;
    font-weight: 400;
    color: #ddd;
}

.menu {
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 0;
}

.menu-item {
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid #004080;
    margin-bottom: 0.5rem;
    position: relative;
    display: block;
}

.menu-item:hover {
    background-color: #003366;
}

.menu-item .icon {
    margin-right: 10px;
}

/* Content */
.content {
    flex: 1;
    background-color: #f4f7fc;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Content expanded state when sidebar is collapsed */
.content.expanded {
    margin-left: 0;
}

.header {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #E0E0E0;
}

/* Styling untuk tombol hamburger */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 30px;
}

.header .logout {
    background-color: #FF4C4C;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

.header .logout:hover {
    background-color: #E03C3C;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;               /* Ukuran gambar avatar */
    height: 40px;              /* Ukuran gambar avatar */
    border-radius: 50%;        /* Membuat avatar berbentuk lingkaran */
    object-fit: cover;         /* Menjaga gambar tetap proporsional */
    margin-right: 10px;        /* Memberikan jarak antara avatar dan nama */
}

.username {
    font-weight: 700;
    margin-right: 10px;
}

.dropdown {
    margin-left: 5px;
}

.main-content {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
    /* overflow-y: auto; */
    overflow-x: auto;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}
/* Heading */
.main-content h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
/* Form */
form .mb-3,
form .mb-4 {
    margin-bottom: 20px;
}
/* Dropdown */
.form-select {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        margin: 10px;
        font-size: 14px;
    }
}
.form-periode label{
        display: block;
        margin-bottom: 8px;
    }
/* Tambahkan pada bagian style.css */

/* Styling untuk form tambah data */
.form-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    color: #002b55;
}
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;  /* Membuat elemen form tampil satu kolom pada perangkat kecil */
    }

    .form-group label,
    .form-group input,
    .form-group select {
        width: 100%;  /* Input dan label mengambil seluruh lebar */
        margin-bottom: 15px;
    }
}


.form-group {
    display: flex;
    justify-content: space-between; /* Memastikan inputan sejajar */
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
    width: 30%;  /* Sesuaikan label dengan input */
}

.form-group input,
.form-group select {
    width: 65%; /* Buat input lebih lebar dari label */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1C487A;
    box-shadow: 0 0 4px rgba(28, 72, 122, 0.5);
}

.form-group div {
    width: 48%;  /* Membuat div anak dua kolom agar sejajar */
}

.submit-button {
    background-color: #0B1F41;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 150px;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: #002b55;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* jarak antara ikon dan teks */
    color: white;
    text-decoration: none;
    text-align: left;
    justify-content: flex-start;
    cursor: pointer;
}

.menu-link:hover {
    color: #fff; /* Contoh hover untuk menonjolkan menu */
}

/*Gaya dasar tombol */
.btn {
    padding: 12px 20px; /* Tambahkan padding untuk ruang lebih */
    border: none;
    border-radius: 8px; /* Membuat sudut membulat */
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase; /* Huruf kapital */
    transition: all 0.3s ease; /* Transisi untuk animasi halus */
    display: inline-block; /* Agar link terlihat seperti tombol */
    text-align: center;
    text-decoration: none; /* Hapus garis bawah pada link */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
}
.btn-secondary {
    padding: 8px 16px;
    background-color: #ccc;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #bbb;
}

/* Tambahkan bagian ini setelah .btn-secondary */
.btn-secondary.active {
    background-color: #002b55;
    color: #fff;
    border-color: #002b55;
}

.btn-info {
    background-color: #155724;
    color: white;
    /* padding: 4px 16px; */
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 250;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #002b55;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    transform: scale(1.03);
}

.btn-info:disabled {
    background-color: #c0c0c0;
    color: #f0f0f0;
    cursor: not-allowed;
    box-shadow: none;
}




/* Tombol Cari */
.btn-search {
    background-color: #4CAF50; /* Warna hijau utama */
}
.btn-search:hover {
    background-color: #45A049; /* Hijau lebih gelap saat dihover */
    transform: translateY(-2px); /* Efek sedikit mengambang */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Efek bayangan yang lebih besar */
}
.btn-search:disabled {
    background-color: #3490dc; /* Warna biru (sesuaikan) */
    color: white;             /* Teks tetap putih */
    opacity: 0.7;             /* Transparansi agak turun */
    cursor: not-allowed;      /* Cursor tanda gak bisa klik */
}


/* Tombol Tambah */
.btn-add {
    background-color: #003366; /* Warna biru utama */
}
.btn-add:hover {
    background-color: #002244; /* Biru lebih gelap saat dihover */
    transform: scale(1.05); /* Sedikit perbesar saat dihover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Efek bayangan yang lebih besar */
}

/* Fokus pada Tombol */
.btn:focus {
    outline: none; /* Hapus outline default */
    box-shadow: 0 0 8px #FFD700; /* Tambahkan efek fokus kuning */
}

/* Tampilan aktif (saat diklik) */
.btn:active {
    transform: translateY(1px); /* Sedikit ke dalam */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduksi bayangan */
}

/* Tombol Kembali */
.btn-back {
    background-color: #4CAF50; /* Warna hijau utama */
}
.btn-back:hover {
    background-color: #45A049; /* Hijau lebih gelap saat dihover */
    transform: translateY(-2px); /* Efek sedikit mengambang */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Efek bayangan yang lebih besar */
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.resource-table th,
.resource-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.resource-table th {
    background-color: #002b55;
    color: white;
}

.resource-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.resource-table tbody tr:hover {
    background-color: #f1f1f1;
}

.resource-table tbody tr td:first-child {
    text-align: center;
}

.badge-success {
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-primary {
    background-color: blue;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}
.badge-warning {
    background-color: orange;
    color: white;
    padding: 5px 16px;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
}

.badge-danger {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* toast.css */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #4caf50; /* Hijau untuk sukses */
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #f44336; /* Merah untuk error */
}

.toast.warning {
    background-color: #ff9800; /* Oranye untuk peringatan */
}

.toast.info {
    background-color: #2196f3; /* Biru untuk info */
}


.validation-message {
    display: none; /* Default tidak ditampilkan */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.validation-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message.warning {
    display: block;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .resource-table th, .resource-table td {
        font-size: 14px;
    }
}
.tabs {
    display: flex;
    justify-content: flex-end; /* Posisikan tab ke kanan */
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 20px;
    gap: 10px; /* Jarak antar-tab */
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-bottom: none;
    border-radius: 4px 4px 0 0; /* Membuat sudut atas melengkung */
    transition: background-color 0.3s ease, color 0.3s ease; /* Efek transisi */
}

.tab:hover {
    background-color: #e0f2ff; /* Warna saat hover */
}

.tab.active {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 4px 4px; /* Sudut bawah melengkung */
    background-color: #F9F9F9;
}

.tab-content.active {
    display: block;
}
/* CSS Style for Delete Button */
.btn-delete {
    background-color: #ff4d4d; /* Bright red color for delete action */
    color: #ffffff; /* White text for contrast */
    margin: 0 5px; /* Space between buttons */
    padding: 6px; /* Smaller padding for compact design */
    border: none;
    border-radius: 50%; /* Circular buttons */
    width: 30px; /* Smaller width */
    height: 30px; /* Smaller height */
    font-size: 14px; /* Smaller font size */
    font-weight: bold; /* Bold for visibility */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: #ff1a1a; /* Darker red on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.btn-delete:active {
    background-color: #cc0000; /* Even darker red on click */
    transform: scale(1); /* Reset scale on click */
}

.btn-delete:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.8); /* Add custom focus shadow */
}

/* CSS Style for Detail Button */
.btn-detail {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    background-color: #4CAF50; /* Green color for detail action */
    color: #ffffff;
    margin: 0 5px; /* Space between buttons */
    font-weight: bold; /* Bold for visibility */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;   
}

.btn-detail:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: scale(1.1);
    color: #e8f5e9; /* Sedikit lebih cerah */
}

.btn-detail:active {
    background-color: #388e3c;
    transform: scale(1);
}

.btn-detail:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.8);
}

/* CSS Style for Add Button */
.btn-tambah {
    background-color: #2196F3; /* Blue color for add action */
    color: #ffffff;
    margin: 0 5px; /* Space between buttons */
    padding: 6px; /* Smaller padding for compact design */
    border: none;
    border-radius: 50%; /* Circular buttons */
    width: 30px; /* Smaller width */
    height: 30px; /* Smaller height */
    font-size: 14px; /* Smaller font size */
    font-weight: bold; /* Bold for visibility */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tambah:hover {
    background-color: #1e88e5; /* Darker blue on hover */
    transform: scale(1.1);
}

.btn-tambah:active {
    background-color: #1565c0;
    transform: scale(1);
}

.btn-tambah:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.8);
}

/* CSS Style for Edit Button */
.btn-edit {
    background-color: #FF9800; /* Orange color for edit action */
    color: #ffffff;
    margin: 0 5px; /* Space between buttons */
    padding: 6px; /* Smaller padding for compact design */
    border: none;
    border-radius: 50%; /* Circular buttons */
    width: 30px; /* Smaller width */
    height: 30px; /* Smaller height */
    font-size: 14px; /* Smaller font size */
    font-weight: bold; /* Bold for visibility */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #fb8c00; /* Darker orange on hover */
    transform: scale(1.1);
}

.btn-edit:active {
    background-color: #ef6c00;
    transform: scale(1);
}

.btn-edit:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.8);
}

/* Print Button Style */
.btn-print {
    background-color: #6C63FF; /* Soft purple for print action */
    color: #ffffff;
    margin: 0 5px; /* Space between buttons */
    padding: 6px; /* Smaller padding for compact design */
    border: none;
    border-radius: 50%; /* Circular buttons */
    width: 30px; /* Smaller width */
    height: 30px; /* Smaller height */
    font-size: 14px; /* Smaller font size */
    font-weight: bold; /* Bold for visibility */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-print:hover {
    background-color: #574bdb; /* Darker purple on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.btn-print:active {
    background-color: #4639c7; /* Even darker purple on click */
    transform: scale(1); /* Reset scale on click */
}

.btn-print:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.8); /* Purple glow on focus */
}


.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.stat-card.shadow {
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.15);
}

.stat-card:nth-child(1) {
    border-left-color: #4e73df;
}

.stat-card:nth-child(2) {
    border-left-color: #1cc88a;
}

.stat-card:nth-child(3) {
    border-left-color: #36b9cc;
}

.stat-card:nth-child(4) {
    border-left-color: #f6c23e;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 1rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #858796;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.charts-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.chart {
    width: 48%; /* Setiap grafik akan mengambil 48% dari lebar kontainer */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chart h3 {
    text-align: center;
    margin-bottom: 10px;
}

canvas {
    width: 100%; /* Agar canvas menyesuaikan lebar div-nya */
    height: 300px; /* Tentukan tinggi canvas sesuai kebutuhan */
}

.chart-label {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }

@media print {
    body * {
        visibility: hidden;
    }
    .resource-table, .resource-table * {
        visibility: visible;
    }
    .resource-table {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
}

.eye-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    cursor: pointer;
    /* font-size: 20px; Ukuran ikon mata */
    transform: translateY(-50%);
}


.stat-boxes {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    flex: 1;
    padding: 20px;
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.stat-resources { background-color: #2979ff; }
.stat-project { background-color: #ff9800; }
.stat-proses { background-color: #ffeb3b; color: #333; }
.stat-completed { background-color: #4caf50; }

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.chart-container.shadow {
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.1);
}

.chart-container:hover {
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e3e6f0;
}

.chart-header h3 {
    margin: 0;
    color: #4e73df;
    font-size: 1.25rem;
    font-weight: 700;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action-btn {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    color: #4e73df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.chart-action-btn:hover {
    background-color: #4e73df;
    color: white;
}

.chart-body {
    position: relative;
    margin: auto;
    height: 300px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e3e6f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #5a5c69;
}

.legend-color {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.legend-label {
    font-weight: 600;
}

@media (max-width: 768px) {
    .charts {
        flex-direction: column;
    }
    
    .chart-container {
        width: 100%;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
}

.tables-section {
    margin-top: 2rem;
}

.row-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-box {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.table-box.shadow {
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.1);
}

.table-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.table-header h3 {
    margin: 0;
    color: #4e73df;
    font-size: 1.1rem;
    font-weight: 700;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-action-btn {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    color: #4e73df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.table-action-btn:hover {
    background-color: #4e73df;
    color: white;
}

.table-body {
    padding: 1rem 1.5rem 1.5rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th, 
.custom-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e3e6f0;
}

.custom-table th {
    font-weight: 600;
    color: #4e73df;
    background-color: #f8f9fc;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fc;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-align: center;
    white-space: nowrap;
}

.badge.primary {
    background-color: #4e73df;
    color: white;
}

.badge.success {
    background-color: #1cc88a;
    color: white;
}

.badge.info {
    background-color: #36b9cc;
    color: white;
}

.badge.warning {
    background-color: #f6c23e;
    color: white;
}

.badge.danger {
    background-color: #e74a3b;
    color: white;
}

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #858796;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-1 {
    background-color: #FFD700; /* Gold */
}

.rank-2 {
    background-color: #A0D2DB; /* Light Blue */
}

.rank-3 {
    background-color: #CD7F32; /* Bronze */
}

/* Full width table */
.table-box.full-width {
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .row-flex {
        grid-template-columns: 1fr;
    }
    
    .table-box.half-width {
        width: 100%;
    }
    
    .custom-table {
        font-size: 0.875rem;
    }
}

.submenu {
    display: none;
    /* background-color: #002b55; lebih gelap, elegan */
    /* border-left: 4px solid #00bfff; */
    /* border-radius: 0 4px 4px 0; */
    padding: 0.5rem 0;
    /* margin-left: 0; */
    margin-top: 0.25rem;
    width: 100%;
    position: relative;
    z-index: 1;
    /* box-shadow: 2px 2px 6px rgba(0,0,0,0.3); */
}

.submenu.show {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.submenu li a:hover {
    background-color: #002b55;
}


/* Styling untuk Form Register - Fixed Sizes */
.right-panel .form-container {
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.right-panel .form-header {
    margin-bottom: 2.5rem;
}

.right-panel .form-group {
    margin-bottom: 1.75rem;
}

.right-panel .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.right-panel .form-group input {
    width: 100%;
    height: 50px; /* Fixed height for all inputs */
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.right-panel .password-wrapper {
    position: relative;
    width: 100%;
}

.right-panel .password-wrapper input {
    width: 100%;
    padding-right: 40px; /* Space for the eye icon */
}

.right-panel .eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.25rem;
}

.right-panel .password-strength-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.right-panel .btn-submit {
    width: 100%;
    height: 50px; /* Fixed height for button */
    padding: 0;
    background-color: #0B1F41;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    position: relative; /* Ensure proper stacking context */
    z-index: 10; /* Ensure button is clickable */
    display: block; /* Make sure it's a block element */
}

.right-panel .btn-submit:hover {
    background-color: #0d2a5e;
}

.right-panel .form-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.right-panel .login-link {
    text-align: center;
    font-size: 0.95rem;
}

/* Styling untuk menu aktif */
/* .menu-link.active {
    background-color: #1a4980;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #007bff;
    border-radius: 0 2px 2px 0;
} */

/* Styling untuk submenu aktif */
/* .submenu li a.active {
    background-color: #1a4980;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submenu li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #00bfff;
    border-radius: 0 2px 2px 0;
} */

/* Styling khusus untuk menu dropdown yang aktif */
/* #masterDataLink.active {
    background-color: #1a4980;
}

#masterDataLink.active + .submenu {
    display: block;
} */

/* Styling untuk arrow pada menu dropdown aktif */
/* #masterDataLink.active .arrow {
    transform: rotate(180deg);
} */


  
