/* ============================================
   HITUNG.CSS - Stylesheet Khusus Menu Hitung (Kalkulator Zakat)
   SIMZIS Mobile App - BAZNAS Kota Surakarta
   ============================================
   
   File ini berisi styles KHUSUS untuk:
   - Kalkulator Zakat Section (.kalkulator-section)
   - Zakat Type Selector & Dropdown
   - Zakat Description (Typing Animation)
   - Zakat Calculator Form & Inputs
   - Zakat Result Cards (Wajib/Not Wajib/Info)
   - Coming Soon Section
   - Dark Mode Kalkulator Zakat
   
   DEPENDENSI: 
   - Harus dimuat SETELAH Main.css
   
   Penggunaan:
   <link rel="stylesheet" href="Main.css">
   <link rel="stylesheet" href="CSS/Home.css">
   <link rel="stylesheet" href="CSS/Berita.css">
   <link rel="stylesheet" href="CSS/Hitung.css">   ← Styles khusus Hitung
   ============================================ */


/* ============================================================
   KALKULATOR ZAKAT SECTION - STYLES
   ============================================================ */

/* Section */
.kalkulator-section {
    padding-bottom: 160px;
    display: none;
}

/* Zakat Type Selector */
.zakat-type-selector {
    padding: 0 20px 20px;
}

.zakat-selector-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zakat-selector-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    border-radius: 2px;
}

/* Zakat Dropdown */
.zakat-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.zakat-dropdown-selected {
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    background-color: #ffffff;
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zakat-dropdown.selected .zakat-dropdown-selected {
    border-color: #259148;
}

.zakat-dropdown.open .zakat-dropdown-selected {
    border-color: #259148;
    box-shadow: 0 0 0 3px rgba(37, 145, 72, 0.1), 0 4px 16px rgba(37, 145, 72, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.zakat-dropdown-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zakat-dropdown-icon {
    font-size: 20px;
    color: #259148;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.zakat-dropdown-text {
    font-size: 14px;
    color: #bbb;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.zakat-dropdown.selected .zakat-dropdown-text {
    color: #1a1a1a;
    font-weight: 600;
}

.zakat-dropdown-arrow {
    font-size: 14px;
    color: #888;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.zakat-dropdown.open .zakat-dropdown-arrow {
    transform: rotate(180deg);
}

.zakat-dropdown-options {
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    background-color: #ffffff;
    border: 2px solid #259148;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.4s cubic-bezier(0.2, 0, 0, 1),
                opacity 0.3s ease,
                transform 0.3s ease;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.zakat-dropdown.open .zakat-dropdown-options {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.zakat-dropdown-option {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-16px);
    border-bottom: 1px solid #f0f0f0;
}

.zakat-dropdown.open .zakat-dropdown-option:nth-child(1) {
    opacity: 1; transform: translateX(0); transition-delay: 0.06s;
}
.zakat-dropdown.open .zakat-dropdown-option:nth-child(2) {
    opacity: 1; transform: translateX(0); transition-delay: 0.12s;
}
.zakat-dropdown.open .zakat-dropdown-option:nth-child(3) {
    opacity: 1; transform: translateX(0); transition-delay: 0.18s;
}
.zakat-dropdown.open .zakat-dropdown-option:nth-child(4) {
    opacity: 1; transform: translateX(0); transition-delay: 0.24s;
}

.zakat-dropdown-option:last-child {
    border-bottom: none;
}

.zakat-dropdown-option:hover {
    background-color: #e8f5e9;
}

.zakat-dropdown-option:active {
    background-color: #c8e6c9;
}

.zakat-dropdown-option > i {
    font-size: 20px;
    color: #259148;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.zakat-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zakat-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
}

.zakat-option-desc {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

/* Zakat Description - Typing Animation */
.zakat-description {
    margin: 0 20px 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-radius: 16px;
    border-left: 4px solid #259148;
    position: relative;
}

.zakat-description-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.zakat-description-header i {
    font-size: 16px;
    color: #259148;
}

.zakat-description-header span {
    font-size: 13px;
    font-weight: 600;
    color: #259148;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zakat-description-text {
    font-size: 13px;
    line-height: 1.8;
    color: #444;
    min-height: 20px;
}

.zakat-description-cursor {
    display: inline;
    color: #259148;
    font-weight: 700;
    font-size: 16px;
    animation: cursorBlink 0.7s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes zakatDescFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Zakat Calculator */
.zakat-calculator {
    margin: 0 20px 20px;
    padding: 24px 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

@keyframes zakatCalcFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.zakat-calc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.zakat-calc-title i {
    font-size: 22px;
    color: #259148;
}

.zakat-calc-title span {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Nisab Info Cards */
.zakat-nisab-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.nisab-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-radius: 14px;
    border: 1px solid #d4edda;
}

.nisab-badge > i {
    font-size: 20px;
    color: #259148;
    flex-shrink: 0;
}

.nisab-badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nisab-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nisab-value {
    font-size: 14px;
    font-weight: 700;
    color: #259148;
}

/* Zakat Form */
.zakat-form-group {
    margin-bottom: 20px;
}

.zakat-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

.zakat-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.zakat-input-wrapper:focus-within {
    border-color: #259148;
    box-shadow: 0 0 0 3px rgba(37, 145, 72, 0.1);
}

.zakat-input-prefix {
    padding: 0 16px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    height: 52px;
    display: flex;
    align-items: center;
    border-right: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.zakat-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    color: #333;
    background-color: transparent;
    min-width: 0;
}

.zakat-input::placeholder {
    color: #bbb;
    font-size: 13px;
}

.zakat-input:focus {
    outline: none;
}

.zakat-form-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    display: block;
}

/* Calculate Button */
.zakat-calc-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 145, 72, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.zakat-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 145, 72, 0.45);
}

.zakat-calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 145, 72, 0.3);
}

.zakat-calc-btn i {
    font-size: 18px;
}

/* Zakat Result */
.zakat-result {
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes zakatResultFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Result - Wajib Zakat (hijau) */
.zakat-result-wajib {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border: 2px solid #c8e6c9;
}

.zakat-result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: zakatResultPulse 2s ease-in-out infinite;
}

.zakat-result-icon-wajib {
    background-color: #e8f5e9;
}

.zakat-result-icon-wajib i {
    font-size: 32px;
    color: #259148;
}

@keyframes zakatResultPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 145, 72, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 4px rgba(37, 145, 72, 0.1); }
}

.zakat-result-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.zakat-result-wajib .zakat-result-title {
    color: #259148;
}

.zakat-result-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Amount Card */
.zakat-result-amount-card {
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.zakat-result-amount-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.zakat-result-amount-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.zakat-result-amount-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.zakat-result-amount-value {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.zakat-result-amount-period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Amount Card - Info (selisih nisab) */
.zakat-result-amount-card-info {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Result Detail */
.zakat-result-detail {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 4px 0;
    border: 1px solid #e5e5e5;
}

.zakat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.zakat-detail-row:last-child {
    border-bottom: none;
}

.zakat-detail-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.zakat-detail-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Result - Not Wajib (oranye) */
.zakat-result-not-wajib {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 2px solid #ffe0b2;
}

.zakat-result-icon-not-wajib {
    background-color: #fff3e0;
}

.zakat-result-icon-not-wajib i {
    font-size: 32px;
    color: #ff9800;
}

.zakat-result-not-wajib .zakat-result-title {
    color: #e65100;
}

/* Result - Info (masukkan pendapatan) */
.zakat-result-info {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border: 2px solid #e0e0e0;
}

.zakat-result-icon-info {
    background-color: #eeeeee;
}

.zakat-result-icon-info i {
    font-size: 32px;
    color: #888;
}

.zakat-result-info .zakat-result-title {
    color: #666;
}

/* Coming Soon */
.zakat-coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.zakat-coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successPulse 2s ease-in-out infinite;
}

.zakat-coming-soon-icon i {
    font-size: 32px;
    color: #259148;
}

.zakat-coming-soon h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.zakat-coming-soon p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* ==================== KALKULATOR DARK MODE ==================== */
body.dark-mode .zakat-selector-label { color: #ffffff; }
body.dark-mode .zakat-selector-label::before { background: linear-gradient(135deg, #259148 0%, #1a6a35 100%); }

body.dark-mode .zakat-dropdown-selected { background-color: #333; border-color: #444; }
body.dark-mode .zakat-dropdown.selected .zakat-dropdown-selected { border-color: #259148; }
body.dark-mode .zakat-dropdown.open .zakat-dropdown-selected { border-color: #259148; box-shadow: 0 0 0 3px rgba(37, 145, 72, 0.1); }
body.dark-mode .zakat-dropdown-text { color: #888; }
body.dark-mode .zakat-dropdown.selected .zakat-dropdown-text { color: #ffffff; }
body.dark-mode .zakat-dropdown-options { background-color: #333; border-color: #259148; }
body.dark-mode .zakat-dropdown-option { border-bottom-color: #444; }
body.dark-mode .zakat-dropdown-option:hover { background-color: #3a3a3a; }
body.dark-mode .zakat-option-name { color: #ffffff; }
body.dark-mode .zakat-option-desc { color: #888; }

body.dark-mode .zakat-description { background: linear-gradient(135deg, #1a2e1a 0%, #1e3320 100%); border-left-color: #259148; }
body.dark-mode .zakat-description-text { color: #cccccc; }
body.dark-mode .zakat-description-header span { color: #259148; }

body.dark-mode .zakat-calculator { background-color: #2a2a2a; border-color: #333; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
body.dark-mode .zakat-calc-title span { color: #ffffff; }
body.dark-mode .zakat-calc-title { border-bottom-color: #333; }

body.dark-mode .nisab-badge { background: linear-gradient(135deg, #1a2e1a 0%, #1e3320 100%); border-color: #2a4030; }

body.dark-mode .zakat-form-label { color: #ffffff; }
body.dark-mode .zakat-input-wrapper { background-color: #333; border-color: #444; }
body.dark-mode .zakat-input-wrapper:focus-within { border-color: #259148; }
body.dark-mode .zakat-input { color: #ffffff; }
body.dark-mode .zakat-input::placeholder { color: #777; }
body.dark-mode .zakat-input-prefix { background-color: #3a3a3a; color: #aaa; border-right-color: #444; }

body.dark-mode .zakat-result-wajib { background: linear-gradient(135deg, #1a2e1a 0%, #1e3320 100%); border-color: #2a4030; }
body.dark-mode .zakat-result-not-wajib { background: linear-gradient(135deg, #2e2510 0%, #332a12 100%); border-color: #3d3018; }
body.dark-mode .zakat-result-info { background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%); border-color: #333; }

body.dark-mode .zakat-result-detail { background-color: #333; border-color: #444; }
body.dark-mode .zakat-detail-row { border-bottom-color: #444; }
body.dark-mode .zakat-detail-label { color: #888; }
body.dark-mode .zakat-detail-value { color: #ffffff; }

body.dark-mode .zakat-coming-soon h4 { color: #ffffff; }
body.dark-mode .zakat-coming-soon-icon { background: linear-gradient(135deg, #1a2e1a 0%, #1e3320 100%); }