/* ============================================================
   India Income Tax Calculator — WordPress Shortcode Styles
   FY 2025-26 | income-tax-calculator.css
   ============================================================ */

.itc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 0;
    color: #111111;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Badges & Labels ── */
.itc-fy-badge {
    font-size: 12px;
    color: #333333;
    margin: 0 0 1rem;
    font-weight: 500;
}
.itc-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #222222;
    margin: 0 0 6px;
    text-transform: uppercase;
}

/* ── Regime Toggle ── */
.itc-regime-toggle {
    display: flex;
    border: 2px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}
.itc-regime-btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    color: #333333;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.itc-regime-btn.itc-active {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 700;
}
.itc-regime-btn:hover:not(.itc-active) {
    background: #eeeeee;
    color: #111111;
}

/* ── Input Grid ── */
.itc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
@media (max-width: 480px) {
    .itc-input-row { grid-template-columns: 1fr; }
}
.itc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.itc-input-group label {
    font-size: 13px;
    color: #222222;
    font-weight: 600;
}
.itc-input-group input,
.itc-input-group select {
    height: 40px;
    font-size: 14px;
    border: 2px solid #555555;
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: #111111;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-weight: 500;
    transition: border-color 0.15s;
}
.itc-input-group input:focus,
.itc-input-group select:focus {
    border-color: #1a56db;
}

/* ── Divider ── */
.itc-divider {
    border: none;
    border-top: 2px solid #cccccc;
    margin: 1.25rem 0;
}

/* ── Result Cards ── */
.itc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 0.5rem;
}
.itc-metric {
    background: #eeeeee;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
    padding: 12px 14px;
}
.itc-mlabel {
    font-size: 11px;
    color: #333333;
    margin: 0 0 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.itc-mval {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: #111111;
}
.itc-mval.itc-danger  { color: #b91c1c; }
.itc-mval.itc-success { color: #15803d; }

/* ── Slab Table ── */
.itc-table-wrap {
    overflow-x: auto;
}
.itc-slab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0.5rem 0;
}
.itc-slab-table th {
    text-align: left;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #111111;
    background: #dddddd;
    border-bottom: 2px solid #aaaaaa;
    white-space: nowrap;
}
.itc-slab-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #cccccc;
    color: #111111;
    white-space: nowrap;
    font-weight: 500;
}
.itc-slab-table tr.itc-slab-active td {
    background: #1a56db;
    color: #ffffff;
    font-weight: 700;
}
.itc-slab-table .itc-muted {
    color: #444444;
    font-style: italic;
}
.itc-slab-table tr.itc-total-row td {
    border-top: 2px solid #555555;
    border-bottom: none;
    padding-top: 10px;
    background: #eeeeee;
    font-weight: 700;
    color: #111111;
}

/* ── Comparison Box ── */
.itc-compare-box {
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 1rem;
    background: #f5f5f5;
}
.itc-compare-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #cccccc;
}
.itc-compare-row:last-child {
    border-bottom: none;
}
.itc-compare-bottom {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #aaaaaa;
    border-bottom: none !important;
}
.itc-cl { color: #333333; font-weight: 600; }
.itc-cv { font-weight: 700; color: #111111; }
.itc-cv.itc-success { color: #15803d; }
.itc-cv.itc-danger  { color: #b91c1c; }

/* ── Dark mode support ── */
@media (prefers-color-scheme: dark) {
    .itc-wrapper             { color: #f0f0f0; background: transparent; }
    .itc-fy-badge            { color: #cccccc; }
    .itc-section-label       { color: #dddddd; }
    .itc-regime-btn          { color: #dddddd; background: #1a1a1a; }
    .itc-regime-btn.itc-active { background: #ffffff; color: #111111; }
    .itc-regime-toggle       { border-color: #888888; }
    .itc-regime-btn:hover:not(.itc-active) { background: #2a2a2a; color: #ffffff; }
    .itc-input-group label   { color: #dddddd; }
    .itc-input-group input,
    .itc-input-group select  { background: #1a1a1a; border-color: #888888; color: #f0f0f0; }
    .itc-metric              { background: #222222; border-color: #555555; }
    .itc-mlabel              { color: #cccccc; }
    .itc-mval                { color: #f0f0f0; }
    .itc-mval.itc-success    { color: #4ade80; }
    .itc-mval.itc-danger     { color: #f87171; }
    .itc-slab-table th       { background: #333333; color: #f0f0f0; border-bottom-color: #666666; }
    .itc-slab-table td       { color: #494949; border-bottom-color: #444444; }
    .itc-slab-table tr.itc-slab-active td { background: #1d4ed8; color: #ffffff; }
    .itc-slab-table tr.itc-total-row td   { background: #2a2a2a; color: #f0f0f0; border-top-color: #888888; }
    .itc-slab-table .itc-muted { color: #aaaaaa; }
    .itc-compare-box         { border-color: #888888; background: #1a1a1a; }
    .itc-compare-row         { border-bottom-color: #444444; }
    .itc-compare-bottom      { border-top-color: #666666; }
    .itc-cl                  { color: #cccccc; }
    .itc-cv                  { color: #494949; }
    .itc-cv.itc-success      { color: #4ade80; }
    .itc-cv.itc-danger       { color: #f87171; }
    .itc-divider             { border-top-color: #555555; }
}
