/* Hover dan Active untuk menu sidebar */
.main-sidebar .nav-sidebar > .nav-item > .nav-link {
    color: #374151;
    border-radius: 8px;
    /* margin: 4px 8px; */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* SUB MENU (tidak aktif) */
.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link {
    /* margin: 4px 12px; */
    padding: 8px 14px;
    border-radius: 6px;
    color: #4b5563; /* abu agak gelap */
    transition: all 0.3s ease;
    background: transparent;
}

/* Hover sub menu */
.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #1f2937 !important;
}

/* Active sub menu */
.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: #1f2937 !important;
    font-weight: 600;
}

/* Ikon lingkaran ikut warna */
.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon {
    color: #6b7280;
}

.main-sidebar
    .nav-sidebar
    .nav-treeview
    > .nav-item
    > .nav-link.active
    .nav-icon,
.main-sidebar
    .nav-sidebar
    .nav-treeview
    > .nav-item
    > .nav-link:hover
    .nav-icon {
    color: #2563eb !important;
}

.navbar {
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: "Inter", sans-serif;
}

.btn-gradient {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: white !important;
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, #2563eb, #0891b2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link {
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #a5f3fc !important;
}

/* CARD MODERN STYLE */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: "Inter", sans-serif;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header card */
.card-header {
    /* background: linear-gradient(90deg, #60a5fa, #06b6d4); */
    color: white;
    font-weight: 600;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom: 1px solid #b0b0b0;
}

/* Title card */
.card-title {
    font-size: 16px;
    margin: 0;
}

/* Body card */
.card-body {
    color: #374151;
    padding: 1.25rem;
}

/* Footer card */
.card-footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Untuk dark mode, opsional */
body.dark-mode .card {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .card-header {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: #fff;
}

body.dark-mode .card-footer {
    background: #374151;
    border-color: #4b5563;
}

/* Base button */
.btn {
    border: none !important;
    border-radius: 8px !important;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease;
}

/* Hover efek umum */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primary Button dengan gradient biru-teal */
.btn-primary {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0891b2, #1e40af);
    color: #fff;
}

/* Secondary button (abu soft) */
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

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

/* Success button */
.btn-success {
    background: linear-gradient(90deg, #10b981, #16a34a);
    color: #fff;
}
.btn-success:hover {
    background: linear-gradient(90deg, #059669, #15803d);
}

/* Danger button */
.btn-danger {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #fff;
}
.btn-danger:hover {
    background: linear-gradient(90deg, #dc2626, #991b1b);
}

/* Outline style */
.btn-outline-primary {
    background: transparent;
    border: 2px solid #2563eb !important;
    color: #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
}

/* Table modern tanpa gradient */
.table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 5px !important; /* jarak antar baris */
    background: transparent;
    font-family: "Inter", sans-serif;
}

/* Header flat */
.table thead th {
    background: #f3f4f6; /* abu-abu muda flat */
    color: #374151;
    font-weight: 600;
    border: none !important;

    /* border-radius: 5px; */
    padding: 10px 14px;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Baris */
.table tbody tr {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.table tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sel */
.table tbody td {
    padding: 12px 16px;
    border: none !important;
    color: #374151;
    vertical-align: middle;
    font-size: 14px;
}

/* Zebra style (opsional) */
.table-striped tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Rounded corner per baris */
.table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Dark mode opsional */
body.dark-mode .table thead th {
    background: #374151;
    color: #f3f4f6;
}
body.dark-mode .table tbody tr {
    background: #1f2937;
    color: #f3f4f6;
}

/* FORM MODERN STYLE */
.form-control,
.custom-select,
.form-select {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    padding: 12px 14px; /* lebih tebal */
    font-size: 16px; /* sedikit lebih besar */
    font-family: "Inter", sans-serif;
    color: #374151;
    transition: all 0.25s ease;
    height: 48px; /* tinggi lebih besar */
    box-shadow: none !important;
}

.form-control:focus,
.custom-select:focus,
.form-select:focus {
    border-color: #2563eb !important; /* biru */
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

/* Label form */
.form-group label,
.form-label {
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
}

/* Checkbox & Radio */
.form-check-input {
    border-radius: 4px !important;
    cursor: pointer;
    border: 1px solid #9ca3af;
}
.form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Placeholder */
.form-control::placeholder {
    color: #9ca3af;
}

/* Disabled */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f3f4f6 !important;
    cursor: not-allowed;
}

/* Header container */
.content-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Judul halaman */
.content-header h1 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6b7280; /* abu abu teks aktif */
    font-weight: 500;
}

/* Icon atau separator default */
.breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Modal container */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-family: "Inter", sans-serif;
}

/* Modal header */
.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 20px;
    background-color: #ffffff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Judul modal */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Tombol close */
.modal-header .close {
    padding: 0;
    margin: 0;
    font-size: 24px;
    opacity: 0.5;
    color: #374151;
    transition: opacity 0.2s ease;
}
.modal-header .close:hover {
    opacity: 0.8;
}

/* Body modal */
.modal-body {
    padding: 20px;
    font-size: 14px;
    color: #374151;
}

/* Footer modal */
.modal-footer {
    border-top: 1px solid #f3f4f6;
    background-color: #ffffff;
    padding: 14px 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Footer modern */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 15px 25px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

/* Footer link */
.main-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Responsif pada layar kecil */
@media (max-width: 576px) {
    .main-footer {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}
