/* ==========================================================================
   PERPUSDUTA.COM - GAYA AKSESIBEL STANDAR WCAG 2.1 / 2.2 AA
   Didesain ramah untuk Pembaca Layar (NVDA, JAWS, TalkBack) & Keyboard User
   ========================================================================== */

:root {
    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --letter-spacing-base: 0.01em;
    --word-spacing-base: 0.05em;

    /* Tema Standar (Terang Bersih & Kontras Tinggi) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --border-main: #cbd5e1;
    --border-focus: #1d4ed8;

    /* Aksen Warna */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-text: #ffffff;

    --focus-ring: 3px solid #2563eb;
    --focus-ring-offset: 2px;
    --border-radius: 8px;
    --transition-speed: 0.2s;
}

/* ==================== TEMA AKSESIBILITAS KHUSUS WCAG ==================== */

/* 1. Mode Kontras Tinggi: Gelap (White on Black) */
body.theme-high-contrast-dark {
    --bg-body: #000000;
    --bg-card: #121212;
    --bg-card-subtle: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --text-subtle: #cbd5e1;
    --border-main: #ffffff;
    --border-focus: #38bdf8;
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-text: #000000;
    --focus-ring: 3px solid #facc15;
}

/* 2. Mode Kontras Tinggi: Kuning di atas Hitam (Yellow on Black - Low Vision) */
body.theme-yellow-on-black {
    --bg-body: #000000;
    --bg-card: #0a0a0a;
    --bg-card-subtle: #171717;
    --text-main: #ffff00;
    --text-muted: #fef08a;
    --text-subtle: #facc15;
    --border-main: #ffff00;
    --border-focus: #ffffff;
    --primary: #ffff00;
    --primary-hover: #fef08a;
    --primary-text: #000000;
    --focus-ring: 3px solid #ffffff;
}

/* 3. Ukuran Huruf (Font Sizing) */
body.font-size-large {
    --font-size-base: 18.5px;
}
body.font-size-xlarge {
    --font-size-base: 21px;
}

/* 4. Spasi Huruf Ekstra (WCAG 1.4.12 Text Spacing) */
body.wcag-text-spacing {
    --line-height-base: 1.8 !important;
    --letter-spacing-base: 0.12em !important;
    --word-spacing-base: 0.16em !important;
}

/* 5. Font Ramah Disleksia / Sangat Jelas */
body.font-accessible {
    --font-family-base: "Atkinson Hyperlegible", "Lexend", "Comic Sans MS", Arial, sans-serif !important;
}

/* 6. Mode Tanpa Animasi (Motion Reduced) */
body.motion-reduced * {
    animation: none !important;
    transition: none !important;
}

/* ==================== RESET & ELEMEN DASAR ==================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    word-spacing: var(--word-spacing-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Skip to Content (Wajib WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 10px 16px;
    font-weight: bold;
    z-index: 9999;
    border-radius: 6px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 10px;
    outline: var(--focus-ring);
}

/* Fokus Keyboard Universal */
*:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

/* Kontainer Utama */
.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 20px 60px 20px;
}

/* ==================== 1. HEADER (LOGO & TULISAN PERPUSDUTA) ==================== */
.site-header {
    display: flex;
    align-items: center;
    padding: 14px 0 16px 0;
    border-bottom: 2px solid var(--border-main);
    margin-bottom: 20px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1e3a8a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: transparent;
}

.brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: lowercase;
}

/* ==================== 2. SAPAAN ==================== */
.greeting-section {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 18px;
}

.greeting-text {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

/* ==================== 3. PANEL AKSESIBILITAS WCAG ==================== */
.wcag-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    margin-bottom: 18px;
    overflow: hidden;
}

.wcag-summary {
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    background: var(--bg-card-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    list-style: none;
}
.wcag-summary::-webkit-details-marker {
    display: none;
}
.wcag-summary:hover {
    background: #e2e8f0;
}
body.theme-high-contrast-dark .wcag-summary:hover,
body.theme-yellow-on-black .wcag-summary:hover {
    background: #27272a;
}

.wcag-body {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    border-top: 1px solid var(--border-main);
}

.wcag-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcag-group-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.wcag-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-wcag {
    padding: 6px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
}
.btn-wcag:hover {
    background: var(--bg-card-subtle);
}
.btn-wcag.active {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

/* ==================== 4. TIGA TOMBOL (SEBELUM LOGIN) ==================== */
.guest-auth-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.btn-guest-action {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}
.btn-guest-action:hover {
    background: var(--bg-card-subtle);
    border-color: var(--primary);
}

.btn-guest-masuk {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}
.btn-guest-masuk:hover {
    background: #1e40af;
}

.btn-guest-daftar {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}
.btn-guest-daftar:hover {
    background: #047857;
}

.btn-guest-lupa {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
}
.btn-guest-lupa:hover {
    background: #b45309;
}

/* ==================== INFORMASI AKUN (SETELAH LOGIN) ==================== */
.profile-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
body.theme-high-contrast-dark .role-badge,
body.theme-yellow-on-black .role-badge {
    background: #18181b;
    border-color: currentColor;
    color: inherit;
}

.progress-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
}

.progress-track {
    background: #cbd5e1;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
body.theme-high-contrast-dark .progress-track,
body.theme-yellow-on-black .progress-track {
    background: #3f3f46;
}

.progress-bar {
    background: #2563eb;
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 5px;
}
body.theme-high-contrast-dark .progress-bar {
    background: #38bdf8;
}
body.theme-yellow-on-black .progress-bar {
    background: #ffff00;
}

/* ==================== ACCORDION MENU AKUN & AKUN TERSEDIA ==================== */
.accordion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-summary {
    padding: 13px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    border-bottom: 1px solid transparent;
}
.accordion-summary::-webkit-details-marker {
    display: none;
}
.accordion-summary:hover {
    background: var(--bg-card-subtle);
}
details[open] > .accordion-summary {
    border-bottom-color: var(--border-main);
    background: var(--bg-card-subtle);
}

.accordion-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-actions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-admin {
    background: #4338ca;
    color: #ffffff;
}
.btn-admin:hover {
    background: #3730a3;
}

.btn-edit-profile {
    background: #0284c7;
    color: #ffffff;
}
.btn-edit-profile:hover {
    background: #0369a1;
}

.btn-add-account {
    background: #059669;
    color: #ffffff;
}
.btn-add-account:hover {
    background: #047857;
}

.btn-logout {
    background: #b91c1c;
    color: #ffffff;
}
.btn-logout:hover {
    background: #991b1b;
}

.btn-delete-account {
    background: #7f1d1d;
    color: #ffffff;
}
.btn-delete-account:hover {
    background: #581414;
}

/* Multi-Akun Tersimpan */
.saved-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    background: var(--bg-card);
    gap: 10px;
    flex-wrap: wrap;
}
.saved-account-card.active-device-account {
    border-left: 4px solid var(--primary);
    background: var(--bg-card-subtle);
}

.saved-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.saved-account-nama {
    font-weight: 700;
    font-size: 14.5px;
}
.saved-account-role {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==================== 7. ISIAN BERITA ==================== */
.news-section {
    margin-bottom: 22px;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-news {
    background: #15803d;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-add-news:hover {
    background: #166534;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 16px 20px;
}

.news-item-title {
    font-size: 17.5px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--text-main);
}

.news-item-meta {
    font-size: 12.5px;
    color: var(--text-subtle);
    margin-bottom: 10px;
}

.news-item-content {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: var(--text-main);
    white-space: pre-line;
}

.news-counter-badge {
    background: var(--bg-subtle, #f1f5f9);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.news-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.btn-news-read-more {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.btn-news-read-more:hover {
    opacity: 0.92;
}

.btn-news-archive-link {
    background: var(--bg-subtle, #f1f5f9);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.btn-news-archive-link:hover {
    border-color: var(--primary);
}

.news-banner-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-main);
    justify-content: space-between;
}

.btn-news-nav {
    background: var(--bg-card);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-news-nav:hover {
    background: var(--primary);
    color: #ffffff;
}
.btn-news-next {
    margin-left: auto;
}

.news-ring1-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-subtle);
}

.news-target-badge,
.news-remaining-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-main);
    background: var(--bg-subtle, #f8fafc);
    color: var(--text-main);
    font-weight: 600;
}

.news-remaining-badge.expired {
    border-color: #dc2626;
    color: #dc2626;
}

/* ==================== 8. MENU RAK PERPUS, KARYA, STATISTIK & MENU LAIN ==================== */
.main-menus-section {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-banner-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.15s, border-color 0.15s;
    font-weight: 700;
    font-size: 16.5px;
}
.menu-banner-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.menu-counter-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    margin-left: 6px;
}
body.theme-high-contrast-dark .menu-counter-badge,
body.theme-yellow-on-black .menu-counter-badge {
    background: #18181b;
    border-color: currentColor;
    color: inherit;
}

/* Kartu Statistik Jumlah Pengunjung */
.visitor-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-top: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-item {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
}
.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 4px 0 0 0;
}
.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Menu Tautan Tambahan (Latar Belakang, Visi Misi, dll.) */
.secondary-links-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--border-radius);
    padding: 8px 14px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
}

.secondary-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--border-main);
}
.secondary-link-item:last-child {
    border-bottom: none;
}
.secondary-link-item:hover {
    color: var(--primary);
}

/* ==================== FOOTER ==================== */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-main);
    text-align: center;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.copyright-text {
    font-weight: 700;
    margin: 0;
}
.copyright-subtext {
    margin: 4px 0 0 0;
    font-size: 14px;
}

/* ==================== MODAL DIALOG ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    padding: 16px;
}
.modal-overlay.hidden { display: none !important; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 10px;
    width: 100%; max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; border-bottom: 1px solid var(--border-main);
    padding-bottom: 10px;
}
.modal-title { font-size: 18px; font-weight: 800; margin: 0; }
.btn-close-modal {
    background: none; border: none; font-size: 22px; cursor: pointer;
    color: var(--text-muted); padding: 4px 8px;
}

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border-main);
    border-radius: 6px; font-family: inherit; font-size: 14.5px;
    background: var(--bg-card); color: var(--text-main);
}
.form-textarea { resize: vertical; min-height: 80px; }

.status-msg-box {
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}
.status-msg-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.status-msg-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.status-msg-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* ==================== NOTIFIKASI TRANSIENT (MODEL 'SEDANG MEMBUKA...', CUMA LEWAT DOANG, BEBAS SAMPAH) ==================== */
#loading-indicator, .notif-banner {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    width: auto;
    max-width: 90vw;
    min-width: 280px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#loading-indicator.notif-loading, .notif-banner.notif-loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
#loading-indicator.notif-success, .notif-banner.notif-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#loading-indicator.notif-error, .notif-banner.notif-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
#loading-indicator.notif-info, .notif-banner.notif-info {
    background: #e0f2fe;
    color: #1e3a8a;
    border: 1px solid #bae6fd;
}

/* ==================== MODAL DIALOG RESMI (SUNTING PROFIL & FITUR LENGKAP) ==================== */
dialog.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-main);
    border-radius: 14px;
    padding: 0;
    width: 92%;
    max-width: 540px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: var(--bg-card);
    color: var(--text-main);
    z-index: 10000;
}
dialog.modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
.modal-dialog-content {
    padding: 22px;
    text-align: left;
}
.modal-dialog-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid var(--border-main);
    padding-bottom: 10px;
}
.modal-btn-cancel {
    padding: 10px 18px;
    border: 1px solid var(--border-main);
    background: #e2e8f0;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}
.modal-btn-cancel:hover, .modal-btn-cancel:focus {
    background: #cbd5e1;
}

.btn-main {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-main:hover, .btn-main:focus {
    background: #1d4ed8;
}

/* Wilayah Mode Switch */
.wilayah-mode-switch button {
    transition: all 0.2s ease;
}
.wilayah-mode-switch button:hover {
    opacity: 0.9;
}

/* ==================== TOMBOL TOGGLE KATA SANDI (LIHAT / SEMBUNYIKAN) ==================== */
.toggle-pass, button.toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.2s ease;
    z-index: 2;
}
.toggle-pass:hover, button.toggle-pass:hover {
    background: #cbd5e1;
    color: #1e293b;
}
.toggle-pass:focus-visible, button.toggle-pass:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 1px;
}
