:root {
    --primary-color: #2030B5;
}

body {
    font-family: "Manrope", sans-serif !important;
}

.element-login {
    position: absolute;
    bottom: 0;
    left: -126px;
    opacity: .1;
}

/* .btn {
    height: 48px !important;
} */

.sidebar-main-title {
    h6 {
        font-size: 16px !important;
        margin-bottom: 8px;
    }
}

.form-control {
    /* height: 48px !important; */
    color: rgb(46, 45, 61) !important;
    height: 48px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.input-group-append button {
    height: 48px !important;
    border-radius: 0 10px 10px 0 !important;
}

.input-group:has(.input-group-append) .form-control {
    border-radius: 10px 0 0 10px !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
}

.form-control::placeholder {
    font-size: 14px;
    font-weight: normal;
    color: rgb(70, 69, 75) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.btn-primary-light {
    background-color: rgb(22 41 164 / 13%) !important;
}

.nav-menu>li .nav-link:hover {
    color: #fff !important;
}

.nav-link.active {
    background: linear-gradient(90deg, #202fb512, #202fb500) !important;
    color: var(--primary-color) !important;
    border-radius: 0px !important;
}

.nav-menu>li ul li a.active,
.nav-menu>li ul li a:hover {
    background: linear-gradient(90deg, #202fb512, #202fb500) !important;
    color: var(--primary-color) !important;
    border-radius: 0px !important;
}

.nav-menu>li .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.nav-menu>li ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.nav-menu>li a {
    color: #707e91 !important;
}

.nav-menu>li span {
    font-weight: 400 !important;
}

.nav-menu>li a .icofont {
    margin-right: 8px;
}

/* Modern Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1628a3 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead th {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px !important;
    border: none !important;
    vertical-align: middle;
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f1f3;
}

.table tbody tr:hover {
    background-color: #f8f9fd !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(32, 48, 181, 0.08);
}

.table tbody td {
    padding: 14px 12px !important;
    font-size: 14px;
    color: #2e2d3d;
    vertical-align: middle;
    border: none !important;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Card Styling */
.card.b-1-primary {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(32, 48, 181, 0.08);
    overflow: hidden;
}

.card.b-1-primary .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fd 100%);
    border-bottom: 2px solid #e8eaf0;
    padding: 20px 24px;
}

.card.b-1-primary .card-header h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.card {
    border-radius: 10px;
}

.card-body {
    padding: 24px !important;
}

/* Modern Button Group */
.btn-group .btn {
    height: 36px !important;
    width: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    margin-right: 6px;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    margin-right: 6px;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-group .btn-primary {
    background: linear-gradient(135deg, #2030B5 0%, #1628a3 100%);
    color: white;
}

.btn-group .btn-primary:hover {
    background: linear-gradient(135deg, #1628a3 0%, #0f1d7a 100%);
}

.btn-group .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-group .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-group .btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-group .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-group .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-group .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Action Button (Tambah) */
.bookmark ul li a {

    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 48, 181, 0.2);
}

.bookmark ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 48, 181, 0.3);
    background: linear-gradient(135deg, #1628a3 0%, #0f1d7a 100%);
}

/* DataTable Custom Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #4b5563;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 2px;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1628a3 100%) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1628a3 100%) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 48, 181, 0.1);
}

.dataTables_wrapper .dataTables_length select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.table thead tr td {
    color: white !important;
    vertical-align: middle;
    font-weight: 600;
}

.table tbody tr td {
    vertical-align: top;
}

/* Custom Checkbox Styling */
.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox label {
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .card-body {
        padding: 16px !important;
    }

    .table thead th {
        font-size: 11px;
        padding: 12px 8px !important;
    }

    .table tbody td {
        padding: 10px 8px !important;
        font-size: 13px;
    }

    .btn-group .btn {
        height: 32px !important;
        width: 32px;
        margin-right: 4px;
        font-size: 14px;
    }
}

/* ========================================
   Modern Modal Styling
   ======================================== */

.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1628a3 100%);
    border-bottom: none !important;
    padding: 20px 24px !important;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.modal-header .btn-close {
    border-radius: 8px !important;
    opacity: 1 !important;
    padding: 8px !important;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px 24px !important;
    background: #ffffff;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body .form-control {
    height: 48px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.modal-body .form-control:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(32, 48, 181, 0.1) !important;
}

.modal-body .form-control::placeholder {
    color: #9ca3af !important;
    font-weight: 400;
}

.modal-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb !important;
    padding: 16px 24px !important;
    gap: 12px;
}

.modal-footer .btn {
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-footer .btn-secondary {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    color: #6b7280 !important;
}

.modal-footer .btn-secondary:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1628a3 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(32, 48, 181, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 48, 181, 0.4);
}

/* Modal Backdrop */
.modal-backdrop.show {
    opacity: 0.5 !important;
    backdrop-filter: blur(4px);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Custom Checkbox in Modal */
.modal-body .custom-control-checkbox,
.modal-body .custom-checkbox {
    margin-bottom: 12px;
}

.modal-body .custom-control-input,
.modal-body .custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.modal-body .custom-control-label,
.modal-body .custom-checkbox label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    margin-left: 8px;
    font-weight: 500;
}

/* Error Message Styling */
.modal-body [id^="error-"] {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 500;
}

/* Modal Dialog Sizing */
/* .modal-dialog {
    max-width: 480px;
} */

@media (max-width: 576px) {
    .modal-dialog {
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .modal-header {
        padding: 16px 20px !important;
    }

    .modal-body {
        padding: 20px !important;
    }

    .modal-footer {
        padding: 12px 20px !important;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

.modal-body .custom-control {
    display: flex;
    align-items: center;
    gap: 4px;

    .custom-control-label {
        margin: 0;
    }
}

/* ========================================
   CSP-safe utility classes
   (replaces inline style="" attributes)
   ======================================== */

/* Visibility: without !important so JS element.style.display can still override */
.sim-hidden { display: none; }

/* Font sizes */
.sim-text-xs  { font-size: 10px; }
.sim-text-11  { font-size: 11px; }
.sim-text-11-light { font-size: 11px; font-weight: normal; }
.sim-text-12  { font-size: 12px; }
.sim-text-muted-12 { font-size: 12px; color: #666; }
.sim-text-085em { font-size: 0.85em; }
.sim-text-07rem { font-size: 0.7rem; }
.sim-text-13  { font-size: 13px; }
.sim-text-14  { font-size: 14px; }
.sim-text-20  { font-size: 20px; }
.sim-text-24  { font-size: 24px; }
.sim-text-58  { font-size: 58px; }

/* Icon sizes (feather / inline svg) */
.sim-icon-xs  { width: 14px; height: 14px; }
.sim-icon-sm  { width: 16px; height: 16px; }
.sim-icon-sm-valign { width: 16px; height: 16px; vertical-align: text-bottom; }
.sim-icon-md  { width: 20px; height: 20px; }
.sim-icon-lg  { width: 28px; height: 28px; }
.sim-icon-inline { vertical-align: -2px; margin-right: 4px; }

/* Fixed column widths (mainly for DataTables <th>) */
.sim-w-5pct  { width: 5%; }
.sim-w-8pct  { width: 8%; }
.sim-w-10pct { width: 10%; }
.sim-w-15pct { width: 15%; }
.sim-w-30pct { width: 30%; }
.sim-w-35pct { width: 35%; }
.sim-w-50px  { width: 50px; }
.sim-w-35px  { width: 35px; }
.sim-import-errors { max-height: 200px; overflow-y: auto; }
.sim-bg-primary-color { background-color: var(--primary-color) !important; }

/* Min/max widths */
.sim-min-w-250 { min-width: 250px; }
.sim-min-w-800 { min-width: 800px; }
.sim-max-w-900 { max-width: 900px; }

/* Misc layout */
.sim-pointer         { cursor: pointer; }
.sim-disabled-field  { pointer-events: none; background-color: #e9ecef; }
.sim-no-scrollbar    { scrollbar-width: none; -ms-overflow-style: none; }
.sim-no-scrollbar::-webkit-scrollbar { display: none; }
.sim-grid-cols-2     { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Alert variants */
.alert-danger-gradient {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    font-size: 14px;
}

/* Google sign-in button */
.sim-google-btn {
    background-color: #fff;
    color: #757575;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Card with rounded corners and overflow hidden */
.sim-card-rounded { border-radius: 16px; overflow: hidden; }

/* Min height */
.sim-min-h-60vh { min-height: 60vh; }

/* Progress bar sizes */
.sim-progress-sm { height: 10px; border-radius: 5px; }
.sim-progress-75 { width: 75%; }

/* Badge variants for tables/lists */
.sim-badge-indigo {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
    font-size: 0.75rem;
}

.sim-badge-slate {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
    font-family: monospace;
    font-size: 0.7rem;
}

/* Direktur stat icon gradient variants */
.direktur-stat-icon-blue  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.direktur-stat-icon-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.direktur-stat-icon-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.direktur-stat-icon-teal  { background: linear-gradient(135deg, #0891b2, #0e7490); }

/* Margin utilities */
.sim-ms-32  { margin-left: 32px; }
.sim-ms-42  { margin-left: 42px; }
.sim-ms-2r  { margin-left: 2rem; }

/* Min-width utilities */
.sim-min-w-24   { min-width: 24px; }
.sim-min-w-190  { width: 190px; }
.sim-min-w-35px { width: 35px; }

/* Progress bar utilities */
.sim-progress-8px { height: 8px; }

/* Sertifikat page info styles */
.sim-sertifikat-header-label {
    letter-spacing: 0.12em;
    font-size: 12px;
    opacity: 0.78;
}
.sim-sertifikat-desc-780 { max-width: 780px; opacity: 0.88; }
.sim-sertifikat-desc-760 { max-width: 760px; opacity: 0.88; }

/* Alert success gradient (mirrors alert-danger-gradient) */
.alert-success-gradient {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #065f46;
}

/* Verifikasi progress bar fill glow */
.progress-bar-white-glow {
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Verifikasi widget progress container */
.sim-verif-progress {
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Card with neutral shadow */
.sim-card-soft {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Otoritas permission-menu indent levels */
.sim-indent-0   { padding-left: 0; }
.sim-indent-20  { padding-left: 20px; }
.sim-indent-40  { padding-left: 40px; }
.sim-indent-60  { padding-left: 60px; }
.sim-indent-80  { padding-left: 80px; }
.sim-indent-100 { padding-left: 100px; }
