/* ============================================
   HOME.CSS - Stylesheet untuk Home/Dashboard Section
   SIMZIS Mobile App - BAZNAS Kota Surakarta
   
   REVISI ANIMASI:
   - Dashboard entrance animation
   - Carousel slide transition
   - Quick menu hover/active feedback
   - NIK input focus animation (shimmer/glow)
   - Check submission card entrance
   
   REVISI UPZ (TERBARU):
   - UPZ section styles (sub-page dari Dashboard)
   - UPZ fixed header (putih, bayangan, tombol kembali)
   - UPZ search area (input + button hijau)
   - UPZ result card (animasi slide-up staggered)
   - UPZ no results state
   - UPZ dark mode support
   ============================================ */

/* ==================== DASHBOARD SECTION ==================== */
.dashboard-section {
    padding-bottom: 160px;
    display: block;
}

/* ==================== CAROUSEL SLIDER SECTION ==================== */
.carousel-banner {
    margin: 0 20px 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 145, 72, 0.3);
    position: relative;
    min-height: 120px;
    animation: sectionEnter 0.4s ease-out 0.08s both;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%;
}

.carousel-slide {
    width: 33.333%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Arrow & dots removed - clean slide look */

/* ==================== SECTION TITLE (Home only) ==================== */
.section-title {
    padding: 0 20px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    animation: sectionEnter 0.35s ease-out 0.12s both;
}

/* ==================== QUICK MENU GRID ==================== */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    animation: sectionEnter 0.35s ease-out both;
}

.quick-menu-item:nth-child(1) { animation-delay: 0.16s; }
.quick-menu-item:nth-child(2) { animation-delay: 0.20s; }
.quick-menu-item:nth-child(3) { animation-delay: 0.24s; }
.quick-menu-item:nth-child(4) { animation-delay: 0.28s; }

.quick-menu-item:hover {
    transform: translateY(-4px);
}

.quick-menu-item:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.quick-menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 145, 72, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-menu-item:hover .quick-menu-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 145, 72, 0.35);
}

.quick-menu-icon i {
    font-size: 20px;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.quick-menu-item:active .quick-menu-icon i {
    transform: scale(0.9);
}

.quick-menu-name {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-align: center;
    transition: color 0.15s ease;
}

.quick-menu-item:hover .quick-menu-name {
    color: #259148;
}

/* ==================== CHECK SUBMISSION CARD ==================== */
.check-submission-card {
    margin: 0 20px 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 145, 72, 0.3);
    position: relative;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    padding: 24px;
    animation: sectionEnter 0.4s ease-out 0.3s both;
}

.check-submission-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.check-submission-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* ==================== NIK INPUT BOX ==================== */
.submission-search-box {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.submission-search-box i {
    font-size: 16px;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    z-index: 2;
}

.submission-search-box input {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    flex: 1;
    outline: none;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.submission-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s ease;
}

/* NIK INPUT ANIMATION - SAAT ADA TEKS */
.submission-search-box.has-value {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(37, 145, 72, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: nikBoxGlow 2.5s ease-in-out infinite;
}

.submission-search-box.has-value::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 60%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 1;
    animation: nikShimmer 3s ease-in-out infinite;
}

.submission-search-box.has-value i {
    animation: nikIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.submission-search-box.has-value input::placeholder {
    opacity: 0;
}

@keyframes nikBoxGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), 0 0 30px rgba(37, 145, 72, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.25), 0 0 40px rgba(37, 145, 72, 0.3), inset 0 0 25px rgba(255, 255, 255, 0.08);
    }
}

@keyframes nikShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes nikIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.submission-search-box:focus-within {
    background-color: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   UPZ SECTION STYLES
   REVISI TERBARU:
   - Semua CSS untuk tampilan UPZ ada di sini
   - Header fix putih dengan bayangan
   - Search input dengan placeholder
   - Button Cari hijau (#259148) putih (#ffffff)
   - Result card dengan animasi slide-up
   ============================================ */

/* ==================== UPZ SECTION ==================== */
.upz-section {
    padding-bottom: 100px;
    display: block;
}

/* ==================== UPZ FIXED HEADER ==================== */
.upz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.2s ease-out;
}

.upz-back-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.upz-back-button:hover {
    background-color: #eeeeee;
}

.upz-back-button:active {
    transform: scale(0.88);
    background-color: #e0e0e0;
    transition: transform 0.08s ease;
}

.upz-back-button i {
    font-size: 18px;
    color: #333;
}

.upz-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.upz-header-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* ==================== UPZ CONTENT SCROLL ==================== */
.upz-content-scroll {
    padding-top: 68px;
}

/* ==================== UPZ SEARCH AREA ==================== */
.upz-search-area {
    padding: 24px 20px 24px;
    animation: sectionEnter 0.35s ease-out 0.08s both;
}

.upz-search-input-wrapper {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.upz-search-input-wrapper:focus-within {
    background-color: #ffffff;
    border-color: #259148;
    box-shadow: 0 2px 16px rgba(37, 145, 72, 0.15);
}

.upz-search-icon {
    font-size: 16px;
    color: #888;
    transition: color 0.2s ease;
}

.upz-search-input-wrapper:focus-within .upz-search-icon {
    color: #259148;
}

.upz-search-input-wrapper input {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    flex: 1;
    outline: none;
    color: #333;
}

.upz-search-input-wrapper input::placeholder {
    color: #aaa;
}

/* ==================== UPZ SEARCH BUTTON ==================== */
.upz-search-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #259148;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 145, 72, 0.3);
    transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.upz-search-btn:hover {
    box-shadow: 0 6px 24px rgba(37, 145, 72, 0.4);
}

.upz-search-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(37, 145, 72, 0.25);
    background-color: #1e7a3c;
    transition: transform 0.08s ease;
}

.upz-search-btn i {
    font-size: 16px;
}

/* ==================== UPZ BUTTON LOADING STATE ==================== */
.upz-search-btn.loading {
    background: linear-gradient(135deg, #1e7a3c 0%, #155d2e 100%);
    box-shadow: 0 4px 20px rgba(37, 145, 72, 0.45), 0 0 0 0 rgba(37, 145, 72, 0.4);
    animation: upzBtnPulse 1.5s ease-in-out infinite;
    cursor: wait;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.upz-search-btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: upzBtnShimmer 1.8s ease-in-out infinite;
}

.upz-search-btn.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* SVG Spinner */
.upz-btn-spinner {
    width: 20px;
    height: 20px;
    animation: upzSpinnerRotate 0.8s linear infinite;
    flex-shrink: 0;
}

.upz-spinner-track {
    stroke: rgba(255, 255, 255, 0.2);
}

.upz-spinner-arc {
    stroke: #ffffff;
    stroke-dasharray: 31.4 31.4;
    stroke-dashoffset: 10;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

@keyframes upzSpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes upzBtnPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 145, 72, 0.45), 0 0 0 0 rgba(37, 145, 72, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 145, 72, 0.55), 0 0 0 6px rgba(37, 145, 72, 0);
    }
}

@keyframes upzBtnShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ==================== UPZ SEARCH LOADING ANIMATION ==================== */
.upz-search-loading {
    padding: 0 20px 20px;
    animation: fadeIn 0.2s ease-out;
}

.upz-loading-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    animation: upzCardSlideUp 0.3s ease-out both;
}

.upz-loading-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 0;
}

.upz-loading-icon-pulse {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    animation: upzLoadingPulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes upzLoadingPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

.upz-loading-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.upz-loading-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: upzShimmer 1.5s ease-in-out infinite;
}

.upz-loading-line-title {
    height: 16px;
    width: 75%;
    animation-delay: 0s;
}

.upz-loading-line-sub {
    height: 10px;
    width: 45%;
    animation-delay: 0.15s;
}

.upz-loading-body {
    padding: 16px 20px 20px;
}

.upz-loading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.upz-loading-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upz-loading-line-label {
    height: 10px;
    width: 80px;
    flex-shrink: 0;
}

.upz-loading-line-value {
    height: 10px;
    width: 120px;
}

@keyframes upzShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.upz-loading-text {
    text-align: center;
    padding: 20px 0 8px;
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out 0.1s both;
}

.upz-loading-text i {
    margin-right: 6px;
    color: #259148;
    animation: upzSearchBounce 1s ease-in-out infinite;
}

@keyframes upzSearchBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.upz-loading-dots span {
    animation: upzDotFade 1.2s ease-in-out infinite;
    opacity: 0;
}

.upz-loading-dots span:nth-child(1) { animation-delay: 0s; }
.upz-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.upz-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes upzDotFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Dark mode loading */
body.dark-mode .upz-loading-card {
    background-color: #2a2a2a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .upz-loading-line {
    background: linear-gradient(90deg, #333 25%, #3a3a3a 50%, #333 75%);
    background-size: 200% 100%;
}

body.dark-mode .upz-loading-row {
    border-bottom-color: #333;
}

body.dark-mode .upz-loading-text {
    color: #666;
}

body.dark-mode .upz-loading-text i {
    color: #4ade80;
}

/* ==================== UPZ RESULTS CONTAINER ==================== */
.upz-results-container {
    padding: 0 20px 20px;
    animation: sectionEnter 0.3s ease-out;
}

/* ==================== UPZ RESULTS HEADER / BADGE ==================== */
.upz-results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.upz-results-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 20px;
    animation: scaleIn 0.3s ease-out;
}

.upz-results-badge i {
    font-size: 14px;
    color: #259148;
}

.upz-results-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #259148;
}

/* ==================== UPZ RESULT CARD ==================== */
.upz-result-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    animation: upzCardSlideUp 0.4s ease-out both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

@keyframes upzCardSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== UPZ RESULT CARD HEADER ==================== */
.upz-result-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 0;
}

.upz-result-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 145, 72, 0.25);
}

.upz-result-card-icon i {
    font-size: 20px;
    color: #ffffff;
}

.upz-result-card-title-area {
    flex: 1;
    min-width: 0;
}

.upz-result-nama {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.upz-result-no-sk {
    font-size: 11px;
    font-weight: 500;
    color: #259148;
    background-color: #e8f5e9;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
}

/* ==================== UPZ RESULT CARD BODY ==================== */
.upz-result-card-body {
    padding: 16px 20px 20px;
}

.upz-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.upz-result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upz-result-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 12px;
}

.upz-result-label i {
    font-size: 13px;
    color: #aaa;
    width: 16px;
    text-align: center;
}

.upz-result-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ==================== UPZ STATUS UPZ ==================== */
.upz-result-status {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    line-height: 1.3;
}

.upz-result-status i {
    font-size: 11px;
}

.upz-status-aktif {
    background-color: #e8f5e9;
    color: #259148;
}

.upz-status-nonaktif {
    background-color: #ffebee;
    color: #f44336;
}

/* ==================== UPZ PEMBARUAN DATA BUTTON ==================== */
.upz-result-pembaruan-wrapper {
    padding-top: 8px;
}

.upz-pembaruan-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #e0e0e0;
    color: #999999;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
}

.upz-pembaruan-btn i {
    font-size: 14px;
}

/* ==================== UPZ NO RESULTS ==================== */
.upz-no-results {
    text-align: center;
    padding: 50px 20px;
    animation: fadeIn 0.4s ease-out;
}

.upz-no-results-icon {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.35s ease-out 0.1s both;
}

.upz-no-results-icon i {
    font-size: 32px;
    color: #ccc;
}

.upz-no-results h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.upz-no-results p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    padding: 0 10px;
}

/* ==================== UPZ DARK MODE ==================== */
body.dark-mode .upz-header {
    background-color: #242424;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .upz-header-title {
    color: #ffffff;
}

body.dark-mode .upz-back-button {
    background-color: #333;
}

body.dark-mode .upz-back-button:hover {
    background-color: #3a3a3a;
}

body.dark-mode .upz-back-button i {
    color: #ffffff;
}

body.dark-mode .upz-search-input-wrapper {
    background-color: #333;
}

body.dark-mode .upz-search-input-wrapper:focus-within {
    background-color: #3a3a3a;
    border-color: #259148;
}

body.dark-mode .upz-search-input-wrapper input {
    color: #ffffff;
}

body.dark-mode .upz-search-input-wrapper input::placeholder {
    color: #aaa;
}

body.dark-mode .upz-result-card {
    background-color: #2a2a2a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .upz-result-nama {
    color: #ffffff;
}

body.dark-mode .upz-result-no-sk {
    background-color: rgba(37, 145, 72, 0.2);
    color: #4ade80;
}

body.dark-mode .upz-result-item {
    border-bottom-color: #333;
}

body.dark-mode .upz-result-value {
    color: #ffffff;
}

body.dark-mode .upz-result-label {
    color: #888;
}

body.dark-mode .upz-result-label i {
    color: #666;
}

body.dark-mode .upz-status-aktif {
    background-color: rgba(37, 145, 72, 0.2);
    color: #4ade80;
}

body.dark-mode .upz-status-nonaktif {
    background-color: rgba(244, 67, 54, 0.15);
    color: #ef5350;
}

body.dark-mode .upz-pembaruan-btn {
    background-color: #333;
    color: #666;
}

body.dark-mode .upz-no-results-icon {
    background-color: #333;
}

body.dark-mode .upz-no-results-icon i {
    color: #555;
}

body.dark-mode .upz-no-results h4 {
    color: #ffffff;
}

body.dark-mode .upz-no-results p {
    color: #888;
}

body.dark-mode .upz-results-badge {
    background: linear-gradient(135deg, rgba(37, 145, 72, 0.2), rgba(37, 145, 72, 0.1));
}

body.dark-mode .upz-results-badge span {
    color: #4ade80;
}

/* ==================== HOME DARK MODE ==================== */
body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .quick-menu-name {
    color: #888;
}

/* ==================== HOME RESPONSIVE ==================== */

/* ============================================
   ZIS BAR CHART - Penerimaan ZIS BAZNAS Kota Surakarta
   Grouped bar chart with slow grow animation
   3 bars per month: Zakat (orange), Infaq (yellow), DSKL (green)
   ============================================ */

.zis-chart-section {
    margin: 0 20px 24px;
    animation: sectionEnter 0.4s ease-out 0.35s both;
}

.zis-chart-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.zis-chart-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px 6px;
}

.zis-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
}

.zis-chart-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #259148;
    text-align: center;
    margin-top: 2px;
}

.zis-chart-wrapper {
    padding: 4px 6px 0;
}

.zis-chart-canvas {
    width: 100%;
    height: auto;
}

.zis-chart-canvas svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Grid lines */
.zis-chart-grid-line {
    stroke: #f0f0f0;
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

/* Y-axis labels */
.zis-chart-y-label {
    font-family: 'Poppins', sans-serif;
    font-size: 8.5px;
    font-weight: 500;
    fill: #aaa;
    text-anchor: end;
    dominant-baseline: middle;
}

/* X-axis labels */
.zis-chart-x-label {
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 500;
    fill: #999;
    text-anchor: middle;
    dominant-baseline: hanging;
}

/* X-axis base line */
.zis-chart-x-axis {
    stroke: #e5e5e5;
    stroke-width: 1;
}

/* ==================== BARS ==================== */
.zis-bar {
    transform-box: fill-box;
    transform-origin: center bottom;
    transform: scaleY(0);
    transition: transform 4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.9;
    cursor: pointer;
}

.zis-bar.visible {
    transform: scaleY(1);
}

.zis-bar:hover {
    opacity: 1;
    filter: brightness(1.15);
}

.zis-bar:active {
    filter: brightness(1.25);
}

/* ==================== BAR TOOLTIP (SVG) ==================== */
.zis-bar-tooltip {
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.zis-bar-tooltip-bg {
    fill: #333;
}

.zis-bar-tooltip-text {
    fill: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
}

.zis-bar-tooltip-arrow {
    fill: #333;
}

/* ==================== CHART LEGEND ==================== */
.zis-chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 16px 16px;
}

.zis-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zis-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.zis-legend-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

/* ==================== ZIS CHART DARK MODE ==================== */
body.dark-mode .zis-chart-card {
    background-color: #2a2a2a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .zis-chart-title {
    color: #ffffff;
}

body.dark-mode .zis-chart-subtitle {
    color: #4ade80;
}

body.dark-mode .zis-chart-grid-line {
    stroke: #383838;
}

body.dark-mode .zis-chart-y-label {
    fill: #666;
}

body.dark-mode .zis-chart-x-label {
    fill: #777;
}

body.dark-mode .zis-chart-x-axis {
    stroke: #444;
}

body.dark-mode .zis-bar:hover {
    filter: brightness(1.2);
}

body.dark-mode .zis-bar-tooltip-bg {
    fill: #e0e0e0;
}

body.dark-mode .zis-bar-tooltip-text {
    fill: #1a1a1a;
}

body.dark-mode .zis-bar-tooltip-arrow {
    fill: #e0e0e0;
}

body.dark-mode .zis-legend-label {
    color: #aaa;
}

body.dark-mode .zis-legend-dot {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ============================================
   TERIMAKASIH IMAGE SECTION
   Gambar "Terima Kasih" dengan animasi fade-in
   dari tengah (scale up) ke depan secara perlahan
   Ditampilkan di bawah diagram Penghimpunan ZIS
   
   REVISI:
   - TANPA card atau container
   - Gambar murni tanpa border-radius, shadow, background
   - Hanya translateY tipis untuk efek melayang
   ============================================ */

.terimakasih-section {
    margin: 48px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.terimakasih-section.terimakasih-visible {
    opacity: 1;
    transform: scale(1);
}

.terimakasih-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    transform: translateY(-6px);
    transition: transform 0.6s ease;
}

.terimakasih-section.terimakasih-visible .terimakasih-img {
    box-shadow: none;
    transform: translateY(-6px);
}

/* ==================== TERIMAKASIH FALLBACK (jika gambar tidak ditemukan) ==================== */
.terimakasih-section.terimakasih-fallback .terimakasih-fallback-text {
    display: block !important;
    width: 100%;
    padding: 32px 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #259148;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 16px;
    letter-spacing: 1px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 48px 96px rgba(37, 145, 72, 0.10);
    transform: translateY(-8px);
}

.terimakasih-section.terimakasih-fallback {
    transform: scale(0.7);
}

body.dark-mode .terimakasih-section.terimakasih-fallback .terimakasih-fallback-text {
    background: linear-gradient(135deg, rgba(37, 145, 72, 0.15), rgba(37, 145, 72, 0.08));
    color: #4ade80;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 48px 96px rgba(37, 145, 72, 0.12);
}

/* Dark mode terimakasih - no shadow, same as light mode */
body.dark-mode .terimakasih-img {
    box-shadow: none;
}

body.dark-mode .terimakasih-section.terimakasih-visible .terimakasih-img {
    box-shadow: none;
}

/* ============================================
   PHOTO STACK SECTION
   5 gambar bertumpuk dengan efek scattered/stacked
   Rotasi bersilang, overlap, dan shadow tipis
   Animasi muncul satu per satu saat di-scroll
   
   Diletakkan di bawah gambar Terimakasih.png
   ============================================ */

.photo-stack-section {
    margin: 0 24px 32px;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.photo-stack-section.photo-stack-visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-stack-container {
    position: relative;
    width: 100%;
    padding: 10px 0 10px;
}

.photo-stack-item {
    position: relative;
    width: 88%;
    margin: 0 auto -50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px) rotate(0deg);
}

.photo-stack-section.photo-stack-visible .photo-stack-item {
    opacity: 1;
}

.photo-stack-section.photo-stack-visible .photo-stack-item:nth-child(1) {
    transform: translateY(0) rotate(-3deg);
    transition-delay: 0.2s;
    z-index: 1;
}

.photo-stack-section.photo-stack-visible .photo-stack-item:nth-child(2) {
    transform: translateY(0) rotate(2.5deg);
    transition-delay: 0.4s;
    z-index: 2;
    margin-left: 12%;
}

.photo-stack-section.photo-stack-visible .photo-stack-item:nth-child(3) {
    transform: translateY(0) rotate(-2deg);
    transition-delay: 0.6s;
    z-index: 3;
    margin-left: -4%;
}

.photo-stack-section.photo-stack-visible .photo-stack-item:nth-child(4) {
    transform: translateY(0) rotate(3deg);
    transition-delay: 0.8s;
    z-index: 4;
    margin-left: 10%;
}

.photo-stack-section.photo-stack-visible .photo-stack-item:nth-child(5) {
    transform: translateY(0) rotate(-1.5deg);
    transition-delay: 1.0s;
    z-index: 5;
    margin-left: 2%;
    margin-bottom: 0;
}

.photo-stack-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hover/Active - foto naik ke atas */
.photo-stack-item:active {
    transform: translateY(-10px) rotate(0deg) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 10 !important;
    transition-delay: 0s !important;
}

/* ==================== PHOTO STACK DARK MODE ==================== */
body.dark-mode .photo-stack-item {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .photo-stack-item:active {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 16px 40px rgba(0, 0, 0, 0.25);
}

/* ============================================
   PIMPINAN PHOTO SECTION
   Foto pimpinan BAZNAS dengan animasi fade-in
   Ditampilkan di bawah diagram ZIS pada Home
   ============================================ */

.pimpinan-photo-section {
    margin: 0 16px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.pimpinan-photo-section.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.pimpinan-photo-img {
    width: calc(100% + 8px);
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: contain;
}

/* ==================== PIMPINAN PHOTO DARK MODE ==================== */
/* No dark mode changes needed - image displays as-is */

/* ============================================
   VISI & MISI SECTION
   Visi & Misi BAZNAS dengan animasi typing
   Ditampilkan di bawah foto pimpinan pada Home
   ============================================ */

.visi-misi-section {
    margin: 0 20px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.visi-misi-section.visi-misi-visible {
    opacity: 1;
    transform: translateY(0);
}

.visi-misi-card {
    /* Plain text only - no card background/border/shadow */
    padding: 0;
}

.visi-block {
    margin-bottom: 20px;
}

.visi-block:last-child {
    margin-bottom: 0;
}

.visi-misi-title {
    font-size: 18px;
    font-weight: 700;
    color: #259148;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.visi-misi-line {
    flex: 1;
    max-width: 60px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, #259148, transparent);
    border-radius: 2px;
}

.visi-misi-content {
    padding-left: 4px;
}

/* Typing text styles */
.typing-text {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Misi list */
.misi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: misi-counter;
}

/* Fade-in staggered animation for text items */
.visi-misi-section.visi-misi-visible .typing-text {
    opacity: 1;
    transform: translateY(0);
}

.visi-misi-section.visi-misi-visible .visi-block .typing-text {
    text-align: center;
}

.visi-misi-section.visi-misi-visible .visi-block:first-child .typing-text {
    transition-delay: 0.3s;
}

.visi-misi-section.visi-misi-visible .misi-item:nth-child(1) .typing-text { transition-delay: 0.5s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(2) .typing-text { transition-delay: 0.65s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(3) .typing-text { transition-delay: 0.8s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(4) .typing-text { transition-delay: 0.95s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(5) .typing-text { transition-delay: 1.1s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(6) .typing-text { transition-delay: 1.25s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(7) .typing-text { transition-delay: 1.4s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(8) .typing-text { transition-delay: 1.55s; }
.visi-misi-section.visi-misi-visible .misi-item:nth-child(9) .typing-text { transition-delay: 1.7s; }

.misi-item {
    counter-increment: misi-counter;
    padding: 8px 0 8px 32px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.misi-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.misi-item::before {
    content: counter(misi-counter) ".";
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #259148;
    line-height: 1.7;
    min-width: 22px;
}

.misi-item .typing-text {
    min-height: 1.7em;
}

/* ==================== VISI & MISI DARK MODE ==================== */
body.dark-mode .visi-misi-card {
    /* Plain text - no dark card background */
}

body.dark-mode .visi-misi-title {
    color: #4ade80;
}

body.dark-mode .visi-misi-line {
    background: linear-gradient(to right, transparent, #4ade80, transparent);
}

body.dark-mode .typing-text {
    color: #e0e0e0;
}

body.dark-mode .misi-item {
    border-bottom-color: #333;
}

body.dark-mode .misi-item::before {
    color: #4ade80;
}

/* ============================================
   ANTI-COPY - Home section only
   ============================================ */
#dashboard {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* ============================================
   DESKTOP WARNING MODAL
   ============================================ */
.desktop-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.desktop-warning-overlay.active {
    display: flex;
}

.desktop-warning-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px 30px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: desktopWarningSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-warning-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #259148, #1a6a35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(37, 145, 72, 0.35);
}

.desktop-warning-icon i {
    font-size: 28px;
    color: #ffffff;
}

.desktop-warning-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.desktop-warning-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
}

.desktop-warning-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, #259148, #1a6a35);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 145, 72, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-warning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 145, 72, 0.45);
}

.desktop-warning-btn:active {
    transform: scale(0.96);
}

@keyframes desktopWarningFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes desktopWarningSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 420px) {
    .carousel-slide img {
        height: 110px;
    }

    .carousel-banner {
        min-height: 110px;
    }
}