: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; */
    border: 2px solid #dddedf;
    color: rgb(46, 45, 61) !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 .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 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-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-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;
    }
}
