/* clariBI Calculator pages - shared styles.
   Loaded after the global Tailwind 2.2.19 + GlobalStyles.css so any
   conflict resolves in this file's favor. */

.calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    padding: 2rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calc-input-group label {
    font-weight: 500;
    color: #0f172a;
    font-size: 0.95rem;
}

.calc-input-group .hint {
    font-size: 0.85rem;
    color: #64748b;
}

.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.calc-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}

.calc-input.is-error {
    border-color: #ef4444;
}

.calc-input-prefix,
.calc-input-suffix {
    position: relative;
}

.calc-input-prefix .calc-input {
    padding-left: 2.25rem;
}

.calc-input-suffix .calc-input {
    padding-right: 2.75rem;
}

.calc-input-prefix-label {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-weight: 500;
}

.calc-input-suffix-label {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-weight: 500;
}

.calc-result {
    background: linear-gradient(135deg, #f0f7ff 0%, #ede9fe 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.calc-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.calc-result-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.calc-result-interpretation {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.6;
}

.calc-result-interpretation strong {
    color: #4f46e5;
}

.calc-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.calc-benchmark-table th,
.calc-benchmark-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.calc-benchmark-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.calc-benchmark-table tbody tr:hover {
    background: #f8fafc;
}

/* Formula breakdown card */
.calc-formula {
    background: #f8fafc;
    border-left: 4px solid #4f46e5;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: #334155;
    margin: 1rem 0;
    overflow-x: auto;
}

/* Print styles - people print financial calculations */
@media print {
    .global-navigation,
    #global-footer,
    .btn,
    .calc-cta {
        display: none !important;
    }
    .calc-card {
        box-shadow: none;
        border: 1px solid #cbd5e1;
    }
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .calc-card {
        padding: 1.25rem;
    }
    .calc-result-value {
        font-size: 1.875rem;
    }
}
