.pasien-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    position: relative;
}
.pasien-card:active {
    transform: scale(0.98);
}
.badge-perihal {
    background: #712ddf;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.btn-add {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46,125,100,0.4);
    border: none;
    z-index: 100;
}
.btn-add i {
    font-size: 24px;
}
.search-box {
    background: white;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.card-actions {
    position: absolute;
    top: 110px;
    right: 12px;
    display: flex;
    gap: 0px;
}.pasien-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    position: relative;
}

.pasien-card:active {
    transform: scale(0.98);
}

.badge-perihal {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.btn-add {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46, 125, 100, 0.4);
    border: none;
    z-index: 100;
}

.btn-add i {
    font-size: 24px;
}

.search-box {
    background: white;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.card-actions {
    position: absolute;
    top: 110px;
    right: 12px;
    display: flex;
    gap: 0px;
}

.card-actions button {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary-light);
}

.btn-delete {
    color: #ef4444;
}

.btn-delete:hover {
    background: #fee2e2;
}

.alamat-text {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.3;
}

.alamat-text i {
    width: 16px;
    margin-right: 4px;
}

.list-container {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 4px;
}

.pagination-container {
    background: white;
    padding: 12px 0;
    margin-top: 16px;
    border-radius: 30px;
    position: sticky;
    bottom: 70px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.pagination {
    margin: 0;
    gap: 4px;
}

.page-link {
    border-radius: 30px !important;
    border: none;
    padding: 8px 14px;
    color: var(--primary);
    background: #f0fdf4;
}

.page-link:hover {
    background: var(--primary);
    color: white;
}

.active .page-link {
    background: var(--primary);
    color: white;
}

.btn-report {
    background: var(--primary);
    color: white;
    border-radius: 30px;
    padding: 8px 16px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-report-outline {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 8px 16px;
}

.filter-modal .modal-content {
    border-radius: 24px;
}

.filter-modal .form-control-custom {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
}

/* Style untuk modal filter export */
.filter-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Style untuk select box dengan size */
.form-control-custom[size] {
    padding: 8px;
    font-size: 13px;
}

.form-control-custom option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.form-control-custom option:hover {
    background-color: var(--primary-light);
}

/* Style untuk search input di dalam modal */
#searchDesa, #searchTahun {
    margin-bottom: 8px;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

#searchDesa:focus, #searchTahun:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,100,0.1);
}

/* Scrollbar untuk select */
.form-control-custom[size] {
    scrollbar-width: thin;
}

.form-control-custom[size]::-webkit-scrollbar {
    width: 6px;
}

.form-control-custom[size]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-control-custom[size]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.form-control-custom[size]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Style untuk option yang di-hide saat search */
.form-control-custom option[style="display: none;"] {
    display: none;
}

/* Modal header border */
.filter-modal .modal-header {
    border-bottom: 1px solid #eef2f6;
    padding: 16px 20px;
}

/* Modal footer */
.filter-modal .modal-footer {
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 0 0 24px 24px;
}

/* Checkbox radio styling */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Text kecil untuk helper */
.filter-modal .text-muted {
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-wrapper .search-box {
    flex: 1;
    margin-bottom: 0;
}

.btn-search-icon {
    background: var(--primary);
    border: none;
    border-radius: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.total-data {
    background: #dfcbff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: inline-block;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}
.form-control-custom, .form-select-custom {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
}
.form-control-custom:focus, .form-select-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,100,0.1);
}
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 20px;
    transition: all 0.2s;
}
.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.checkbox-sama {
    margin: 12px 0;
}
.checkbox-sama label {
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}
.dynamic-field {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
}
.required:after {
    content: " *";
    color: #ef4444;
}
select:disabled, input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}