/* ═══════════════════════════════════════════════
   Donasiku – Zakat Calculator Styles
   ═══════════════════════════════════════════════ */

/* ── Wrapper ────────────────────────────────── */
.dnk-zakat-wrapper {
    display: flex;
    /*ustify-content: center;
    align-items: flex-start;*/
    width: 100%;
}

.dnk-zakat-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ── Left Panel – Komponen Zakat ─────────────── */
.dnk-zakat-form {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 32px;
}

.dnk-zakat-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.dnk-zakat-form>p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* ── Tabs – Jenis Zakat ──────────────────────── */
.dnk-zakat-tabs {
    display: flex;
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.dnk-zakat-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    text-align: center;
}

.dnk-zakat-tab.active {
    color: #ffffff;
    background: var(--theme-palette-color-1, #2563eb);
}

/* ── Tab Content ─────────────────────────────── */
.dnk-zakat-tab-content {
    display: none;
}

.dnk-zakat-tab-content.active {
    display: block;
}

/* ── Form Group ──────────────────────────────── */
.dnk-zakat-group {
    margin-bottom: 20px;
}

.dnk-zakat-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dnk-zakat-group label small {
    font-weight: 400;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.dnk-zakat-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dnk-zakat-input-wrap .prefix {
    position: absolute;
    left: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.dnk-zakat-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 36px;
    font-size: 14px;
    color: #1e293b;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dnk-zakat-input-wrap input:focus {
    border-color: var(--theme-palette-color-1, #2563eb);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dnk-zakat-input-wrap input::placeholder {
    color: #cbd5e1;
}

/* ── Penghasilan Row (2 col) ─────────────────── */
.dnk-zakat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Separator ───────────────────────────────── */
.dnk-zakat-separator {
    border: none;
    border-top: 1px dashed #e5e7eb;
    margin: 24px 0;
}

/* ── Hutang Section ──────────────────────────── */
.dnk-zakat-subtract-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 6px;
}

.dnk-zakat-subtract-label svg {
    width: 16px;
    height: 16px;
}

/* ── Right Panel – Hasil ─────────────────────── */
.dnk-zakat-result {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 28px 24px;
}

.dnk-zakat-result h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.dnk-zakat-result>p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* ── Nisab Toggle ────────────────────────────── */
.dnk-zakat-nisab-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.dnk-nisab-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.dnk-nisab-toggle-options {
    display: flex;
    gap: 6px;
    flex: 1;
}

.dnk-nisab-option {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
    margin: 0px;
}

.dnk-nisab-option input[type="radio"] {
    display: none;
}

.dnk-nisab-option small {
    font-size: 10px;
    opacity: 0.75;
}

.dnk-nisab-option.active {
    background: var(--theme-palette-color-1, #16a34a);
    color: #fff;
    border-color: var(--theme-palette-color-1, #16a34a);
}

.dnk-nisab-option:not(.active):hover {
    background: #f1f5f9;
}

/* ── Result Items ────────────────────────────── */
.dnk-zakat-result-item {
    margin-bottom: 16px;
}

.dnk-zakat-result-item .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dnk-zakat-result-item .value {
    display: block;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid #f1f5f9;
}

/* ── Nisab Status ────────────────────────────── */
.dnk-zakat-nisab-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    padding: 0 2px;
}

.dnk-zakat-nisab-status.below {
    color: #ef4444;
}

.dnk-zakat-nisab-status.above {
    color: #16a34a;
}

/* ── Zakat Amount Highlight ──────────────────── */
.dnk-zakat-result-item.highlight .value {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #15803d;
    font-size: 18px;
}

/* ── CTA Button ──────────────────────────────── */
.dnk-zakat-cta {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--theme-palette-color-1, #2563eb);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.dnk-zakat-cta:hover {
    background: var(--theme-palette-color-2, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.dnk-zakat-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Info Box ────────────────────────────────── */
.dnk-zakat-info {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
}

.dnk-zakat-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .dnk-zakat-container {
        grid-template-columns: 1fr;
    }

    .dnk-zakat-result {
        position: static;
    }

    .dnk-zakat-form {
        padding: 24px 20px;
    }

    .dnk-zakat-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dnk-zakat-form {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .dnk-zakat-result {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .dnk-zakat-tab {
        font-size: 12px;
        padding: 8px 12px;
    }
}