/* ==========================================================================
   GGAM & Associates LLP — Financial Tools Stylesheet (tools.css)
   Interactive calculator tabs, range sliders, regime comparison highlights.
   ========================================================================== */

/* Calculator Mode Switcher Tabs */
.calc-nav-btn {
    transition: all 0.25s ease;
}

.calc-nav-btn.active {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.calc-nav-btn:not(.active):hover {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

/* Custom Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 9999px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563EB;
    cursor: pointer;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #1D4ED8;
}

input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563EB;
    cursor: pointer;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease;
}

/* Comparison Regime Cards */
.regime-result-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.regime-result-card.winner {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, #FFFFFF 100%);
    box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.regime-result-card.winner-blue {
    border-color: #2563EB;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, #FFFFFF 100%);
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

/* Statutory Reference Matrix Tables */
.statutory-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.statutory-matrix-table th {
    background-color: #F8FAFC;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid #E2E8F0;
}

.statutory-matrix-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid #F1F5F9;
}

.statutory-matrix-table tr:last-child td {
    border-bottom: none;
}

.statutory-matrix-table tr:hover td {
    background-color: #F8FAFC;
}

/* Tools FAQ Accordion Styling */
.tools-faq-item {
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.tools-faq-item.is-open {
    border-color: #93C5FD;
    background-color: #FFFFFF;
}

.tools-faq-item.is-open .faq-icon {
    transform: rotate(180deg);
    color: #2563EB;
}

.tools-faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.tools-faq-item.is-open .faq-answer {
    max-height: 600px;
    opacity: 1;
}

/* ==========================================================================
   Tools & Calculators Print Formats (@media print)
   ========================================================================== */
@media print {
    .calculator-module {
        display: block !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .calc-nav-btn, .sticky {
        position: static !important;
        box-shadow: none !important;
    }

    .regime-result-card {
        box-shadow: none !important;
        border: 1px solid #94a3b8 !important;
    }

    .statutory-matrix-table th, 
    .statutory-matrix-table td {
        border: 1px solid #cbd5e1 !important;
        padding: 6px 8px !important;
        font-size: 9pt !important;
    }
}
