@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* ============================================
   RESET & BASE
============================================ */
body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================
   BACKGROUND
============================================ */
.bg-overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

/* ============================================
   LAYOUT UTILITY
============================================ */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

/* ============================================
   LOGO SECTION
============================================ */
.logo-section {
    margin-bottom: 50px;
}
.logo-section img {
    width: 120px;
    height: auto;
}
.logo-section h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
    color: #000;
}

/* ============================================
   FORM ROW & COLUMN
============================================ */
.form-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.col-25 {
    flex: 0 0 calc(25% - 7.5px);
}
.col-33 {
    flex: 0 0 calc(33.33% - 7.5px);
}
.col-40 {
    flex: 0 0 calc(40% - 7.5px);
}
.col-50 {
    flex: 0 0 calc(50% - 7.5px);
}
.col-60 {
    flex: 0 0 calc(60% - 7.5px);
}
.col-100 {
    flex: 0 0 calc(100% - 7.5px);
}

/* ============================================
   BUTTONS - GENERAL
============================================ */
.btn {
    color: #fff;
    display: inline-block;
    width: auto;
    min-width: 200px;
    padding: 12px 30px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 30px;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-page {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 0px rgba(0,0,0,0.15);
    transition: transform 0.1s;
    margin-bottom: 5px;
}

.btn-default {
    background-color: #fff;
    color: #0149AF;
    border: 1px solid #0149AF;
}
.btn-default:hover {
    background-color: #024093;
    color: #fff;
}

.btn-penawaran {
    background-color: #004aad;
}
.btn-penawaran:hover {
    background-color: #024093;
}

.btn-tagihan {
    background-color: #e30613;
}
.btn-tagihan:hover {
    background-color: #d10612;
}

.btn-gaji {
    background-color: #00bf63;
}
.btn-gaji:hover {
    background-color: #01af5b;
}

.btn-preview {
    background-color: #6c757d;
    font-size: 1rem;
}
.btn-preview:hover {
    background-color: #5a6268;
}

.btn-cetak {
    background-color: #e30613;
    font-size: 1rem;
}
.btn-cetak:hover {
    background-color: #d10612;
}

.btn-renovasi {
    background-color: #34495e !important;
    color: white;
}

/* ============================================
   BUTTONS - NAVIGATION (Back, Add, etc)
============================================ */
.btn-back,
.btn-add,
.btn-cancel,
.btn-reset {
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 8px;
    box-sizing: border-box;
}

.btn-back {
    background: white;
    border: 1px solid #004AAD;
    color: #004AAD;
}
.btn-back:hover {
    background: #004AAD;
    color: white;
}

.btn-add {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}
.btn-add:hover {
    background: #218838;
}

.btn-cancel {
    background: #ffc107;
    color: #212529;
}
.btn-cancel:hover {
    background: #e0a800;
}

.btn-reset {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
}
.btn-reset:hover {
    background: #5a6268;
}

/* ============================================
   BUTTONS - FORM (Save, Update, Cancel)
============================================ */
.btn-save,
.btn-update,
.btn-cancel-form {
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: all 0.3s;
}

.btn-save {
    background: #28a745;
    color: white;
}
.btn-save:hover {
    background: #218838;
}

.btn-update {
    background: #004AAD;
    color: white;
}
.btn-update:hover {
    background: #003380;
}

.btn-cancel-form {
    background: #dc3545;
    color: white;
}
.btn-cancel-form:hover {
    background: #c82333;
}

/* ============================================
   BUTTONS - FILTER & SEARCH
============================================ */
.btn-filter {
    background: #004AAD;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    height: 38px; /* TAMBAHKAN INI */
    box-sizing: border-box; /* TAMBAHKAN INI */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.btn-filter:hover {
    background: #003380;
}

.btn-filter-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    height: 38px; /* TAMBAHKAN INI */
    box-sizing: border-box; /* TAMBAHKAN INI */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-filter-reset:hover {
    background: #5a6268;
    color: white;
}

.btn-search {
    background: #004AAD;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    height: 38px; /* TAMBAHKAN INI */
    box-sizing: border-box; /* TAMBAHKAN INI */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.btn-search:hover {
    background: #003380;
}

.btn-search-reset {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    height: 38px; /* TAMBAHKAN INI */
    box-sizing: border-box; /* TAMBAHKAN INI */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-search-reset:hover {
    background: #c82333;
    color: white;
}

.btn-add-pekerjaan {
    transition: all 0.3s;
}
.btn-add-pekerjaan:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-remove-pekerjaan {
    transition: all 0.3s;
}
.btn-remove-pekerjaan:hover {
    background: #c82333 !important;
    transform: scale(1.05);
}

/* ============================================
   MENU
============================================ */
.menu-item {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

.caption {
    font-size: 0.8rem;
    color: #0149AF;
    display: block;
    margin-top: 5px;
}

/* ============================================
   FORM GROUP
============================================ */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group .required {
    color: red;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

.form-group select {
    background-color: white;
    cursor: pointer;
    appearance: auto;
}

/* ============================================
   FORM BOX (Tambah / Edit)
============================================ */
.form-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-tambah {
    background: #DEF7E4;
    border: 2px dashed #28a745;
}
.form-tambah h3 {
    color: #28a745;
}

.form-edit {
    background: #fff3cd;
    border: 2px solid #ffc107;
}
.form-edit h3 {
    color: #856404;
}

.form-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ============================================
   PAGE CONTAINER
============================================ */
.page-container {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    max-width: 1200px;
    margin: 30px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}
.page-header img {
    max-width: 80px;
    margin: 20px 5px;
}
.page-header h1 {
    color: #004AAD;
    margin: 0;
    font-size: 24px;
}

/* ============================================
   BUTTON CONTAINER
============================================ */
.button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ============================================
   SEARCH CONTAINER
============================================ */
.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-input-group {
    display: flex;
    width: 100%;
    gap: 8px;
}

.search-input-group input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}
.search-input-group input:focus {
    outline: none;
    border-color: #004AAD;
}

.search-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.search-buttons button {
    padding: 8px 20px;
    background: #004AAD;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}
.search-buttons button:hover {
    background: #003380;
}

/* Filter Status di Search Box */
.filter-status {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    height: 38px;
    min-width: 130px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-status:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

/* ============================================
   FILTER & SEARCH CONTAINER
============================================ */
.filter-search-container {
    /*
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    */
    margin-bottom: 10px;
}

.filter-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group .form-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    background: white;
    min-width: 120px;
    height: 38px;
}

.filter-group .form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    height: 38px; /* TAMBAHKAN INI */
    width: 140px;
    box-sizing: border-box; /* TAMBAHKAN INI */
}

.filter-date-range {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.filter-date-range label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.filter-date-range .form-control {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    width: 110px;
    cursor: pointer;
    background: white;
    height: 38px; /* TAMBAHKAN INI */
    box-sizing: border-box; /* TAMBAHKAN INI */
}

.filter-date-range .form-control:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

.filter-date-range span {
    color: #666;
    font-size: 12px;
}

/* Search Group */
.search-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1; /* Ubah dari flex: 0 1 300px menjadi flex: 1 */
    min-width: 200px;
    /* Hapus max-width: 350px */
}

.search-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    height: 38px;
    box-sizing: border-box;
    min-width: 100px;
    width: 100%; /* Ubah dari width: 150px menjadi width: 100% */
}
.search-group input:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

/* ============================================
   DATA TABLE
============================================ */
.table-container {
    overflow-x: auto;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.data-table thead {
    background: #004AAD;
    color: white;
}
.data-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
}
.data-table tbody tr:hover {
    background: #f5f5f5;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Total Footer */
.data-table tfoot td {
    background: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #004AAD;
    padding: 10px 15px;
}
.data-table tfoot .total-label {
    text-align: center;
    color: #333;
}
.data-table tfoot .total-value {
    text-align: right;
    color: #004AAD;
    font-size: 16px;
}

/* ============================================
   ACTION BUTTONS IN TABLE
============================================ */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-edit,
.btn-delete,
.btn-print {
    padding: 0px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.fa-edit {
    color: #004AAD;
}
.fa-delete {
    color: #004AAD;
}

/* ============================================
   PAGINATION
============================================ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.total-data {
    font-size: 14px;
    color: #333;
    font-weight: normal;
}
.total-data strong {
    color: #004AAD;
    font-weight: bold;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination li {
    display: inline;
}
.pagination li a {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    color: #004AAD;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 13px;
}
.pagination li a:hover {
    background: #004AAD;
    color: white;
}
.pagination li.active a {
    background: #004AAD;
    color: white;
    border-color: #004AAD;
}
.pagination li.disabled a {
    color: #999;
    pointer-events: none;
    background: #f5f5f5;
}

/* ============================================
   BADGE
============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
.badge-success {
    background: #28a745;
    color: white;
}
.badge-danger {
    background: #dc3545;
    color: white;
}

/* ============================================
   INFO BOX
============================================ */
.info-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.info-box-header {
    background: #004AAD;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-box-header i {
    font-size: 16px;
}

.info-box-body {
    padding: 20px;
}

/* Info Box Variants */
.info-box-pemberi .info-box-header {
    background: #17a2b8;
}
.info-box-pelaksana .info-box-header {
    background: #6f42c1;
}

.pekerjaan-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.pekerjaan-box .info-box-header {
    background: #28a745;
}

.pekerjaan-item .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
.pekerjaan-item .form-control:focus {
    outline: none;
    border-color: #004AAD;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

#pekerjaan-wrapper {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
#pekerjaan-wrapper::-webkit-scrollbar {
    width: 6px;
}
#pekerjaan-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
#pekerjaan-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
#pekerjaan-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    text-align: center;
    margin-top: 30px;
}
.footer img {
    width: 30px;
    height: 100%;
    opacity: 0.8;
    cursor: pointer;
}
.footer img:hover {
    opacity: 1;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    background: #004AAD;
    color: white;
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 13px;
    flex: 1;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}
.sidebar-close:hover {
    transform: rotate(90deg);
}

.sidebar-body {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-item:hover {
    background: #f0f4ff;
    border-left-color: #004AAD;
    color: #004AAD;
}
.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}
.sidebar-item:hover i {
    color: #004AAD;
}

.sidebar-divider {
    margin: 10px 20px;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.sidebar-logout {
    color: #dc3545;
}
.sidebar-logout:hover {
    background: #fff5f5;
    border-left-color: #dc3545;
    color: #dc3545;
}
.sidebar-logout:hover i {
    color: #dc3545;
}

.sidebar-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 11px;
    flex-shrink: 0;
}

/* ============================================
   SELECT2 CUSTOM
============================================ */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    flex: 1 !important;
    line-height: 42px !important;
    padding-left: 12px !important;
    padding-right: 55px !important;
    color: #333;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 30px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 5px !important;
    z-index: 5 !important;
    order: 2 !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 40px !important;
    z-index: 1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #004AAD !important;
    box-shadow: 0 0 5px rgba(0,74,173,0.3) !important;
}

.select2-dropdown {
    border-color: #ddd !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #004AAD !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    padding: 8px 12px !important;
    font-size: 14px;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #004AAD !important;
    box-shadow: 0 0 5px rgba(0,74,173,0.3) !important;
    outline: none;
}

.select2-container {
    z-index: 99999 !important;
}

/* ============================================
   MODAL
============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    margin: 0;
    color: #004AAD;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.modal-close:hover {
    color: #333;
}


/* Badge Primary */
.badge-primary {
    background: #004AAD;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 600px) {
    .btn-back {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .btn-page {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-radius: 20px;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .col-40,
    .col-60 {
        flex: 0 0 100%;
    }

    .form-container {
        padding: 30px 15px;
    }

    .button-container {
        display: block;
    }

    .logo-section img {
        width: 75px;
    }

    .btn-preview,
    .btn-cetak {
        font-size: 0.7rem !important;
        padding: 15px 10px !important;
        min-width: auto !important;
    }
}

@media (max-width: 768px) {
    /* Sidebar Mobile */
    .sidebar-menu {
        width: 100%;
        left: -100%;
    }
    .sidebar-header {
        padding: 20px;
    }
    .sidebar-header h3 {
        font-size: 16px;
    }
    .sidebar-item {
        padding: 14px 24px;
        font-size: 14px;
    }
    .sidebar-item i {
        font-size: 18px;
        width: 24px;
    }

    /* Form */
    .form-group select {
        font-size: 16px;
    }

    /* Page Container */
    .page-container {
        padding: 15px;
        margin: 10px;
    }
    .page-header h1 {
        font-size: 18px;
    }

    /* Button Container */
    .button-container {
        flex-direction: column;
    }
    .button-container button {
        width: 100%;
    }

    /* Search Container */
    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .button-group {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
    }
    .button-group button {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }

    .search-input-group {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
}

.search-input-group input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
    height: 38px;
    box-sizing: border-box;
}

    .search-buttons {
        width: auto;
        flex-shrink: 0;
        gap: 6px;
    }
    .search-buttons button,
    .btn-reset {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Pagination */
    .pagination-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pagination-wrapper {
        width: 100%;
        overflow-x: auto;
        justify-content: center;
    }
    .total-data {
        font-size: 12px;
    }

    /* Form Actions */
    .form-actions {
        flex-direction: column;
    }
    .form-actions button {
        width: 100%;
    }

    /* Data Table */
    .data-table {
        font-size: 12px;
    }
    .data-table thead th {
        padding: 8px 10px;
    }
    .data-table tbody td {
        padding: 5px 10px;
    }

    /* Modal */
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    /* Select2 Mobile */
    .select2-container--default .select2-selection--single {
        height: 38px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px !important;
        font-size: 13px;
        padding-right: 50px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__clear {
        right: 28px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 992px) {
    .filter-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group .form-select,
    .filter-group .form-control {
        width: 100%;
    }
    .filter-date-range .form-control {
        width: 100%;
    }
    .search-group {
        width: 100%;
    }
    .btn-filter,
    .btn-filter-reset {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .sidebar-menu {
        width: 280px;
        left: -300px;
    }
}



/* ============================================
   REMINDER
============================================ */
.reminder-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.reminder-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: all 0.3s;
    cursor: pointer;
}


.reminder-link:hover .reminder-icon {
    transform: scale(1.05);
}

.reminder-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #004AAD;
    transition: transform 0.3s;
}

.reminder-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 10px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

.reminder-text {
    font-size: 13px;
    color: #333;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .reminder-icon {
        font-size: 28px;
    }
    
    .reminder-badge {
        font-size: 10px;
        min-width: 8px;
        height: 16px;
        top: -6px;
        right: -10px;
    }
    
    .reminder-text {
        font-size: 11px;
    }
}


/* Search Box Mobile - Filter Status & Input Pencarian */
@media (max-width: 768px) {
    
    .search-input-group {
        flex-direction: column !important;
        gap: 8px;
    }
    
    .filter-status {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .search-input-group input {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .search-buttons {
        width: 100% !important;
        display: flex;
        gap: 6px;
    }
    
    .search-buttons button,
    .search-buttons .btn-reset {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}


/* Styling untuk detail modal */
.detail-section {
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.detail-section h5 {
    margin: 0 0 10px 0;
    color: #007bff;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.detail-section h5 i {
    margin-right: 5px;
}
.detail-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: bold;
    width: 150px;
    flex-shrink: 0;
    color: #555;
}
.detail-value {
    flex: 1;
}
@media (max-width: 767px) {
    .detail-label {
        font-size: 11px;
    }
    .detail-value {
        font-size: 11px;
    }
    .detail-section table tr td, .detail-section table tr th{
        font-size: 11px;
    }
}
