/* Exponential Calculator Styles */
.exponential-calculator {
    margin: 0 0 2rem;
}

.calc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.calc-inputs {
    padding: 2rem;
    border-right: 1px solid #e5e7eb;
    background: #ffffff;
    overflow-y: auto;
}

.calc-results {
    padding: 2rem;
    background: #f9fafb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .calc-results {
        max-height: none;
    }
}

.inputs-header {
    margin-bottom: 1rem;
}

.inputs-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.inputs-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

/* Parameter Selector Tabs */
.parameter-selector {
    margin-bottom: 2rem;
}

.selector-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: #f9fafb;
    padding: 0.375rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #ffffff;
}

.tab-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
}

.tab-btn.active .tab-icon {
    color: #2563eb;
}

.tab-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.tab-btn.active .tab-label {
    color: #111827;
    font-weight: 600;
}

/* Input Groups */
.param-input-group,
.value-input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.75rem;
}

.label-main {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.label-desc {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #111827;
    outline: none;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-unit {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    font-weight: 500;
}

.input-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Calculation Type Selector */
.calculation-selector {
    margin-bottom: 2rem;
}

.selector-header {
    margin-bottom: 1rem;
}

.selector-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 0.75rem;
}

.option-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.option-card:hover .option-content {
    background: #ffffff;
    border-color: #d1d5db;
}

.option-card input[type="radio"]:checked + .option-content {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
}

.option-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.option-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn-icon {
    font-size: 1.125rem;
}

.btn-text {
    font-weight: 600;
}

/* Results Panel */
.results-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    color: #9ca3af;
}

.results-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.results-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.results-badge {
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.result-primary {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.result-label {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

/* Formula Section */
.formula-section {
    margin-bottom: 1.5rem;
}

.formula-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.formula-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}

.formula-content {
    font-size: 0.9375rem;
    color: #111827;
    line-height: 1.6;
}

/* Metrics Section */
.metrics-section {
    margin-top: 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.metric-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.metric-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.metric-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.metric-list strong {
    color: #111827;
    font-weight: 600;
}

.metric-list span {
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-inputs {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .calc-results {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .calc-inputs,
    .calc-results {
        padding: 1.5rem;
    }

    .inputs-title {
        font-size: 1.25rem;
    }

    .selector-tabs {
        flex-direction: column;
    }

    .tab-btn {
        flex-direction: row;
        justify-content: flex-start;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .result-value {
        font-size: 2.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .calc-inputs,
    .calc-results {
        padding: 1.25rem;
    }

    .calc-card {
        border-radius: 12px;
    }

    .result-value {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }
}
