/* Calculator Specific Styles */

/* Calculator Navigation Container */
.calc-nav-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.75rem 0;
}

.calc-nav-container::-webkit-scrollbar {
    height: 6px;
}

.calc-nav-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.calc-nav-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

/* Calculator Navigation Items */
.calc-nav-item {
    padding: 0.5rem 1rem;
    background: #f9fafb;
    color: #374151;
    border-radius: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.calc-nav-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.calc-nav-item.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Calculator Input Styles */
.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #111827;
    transition: all 0.2s;
}

.calc-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Validation states */
.calc-input.border-green-400 {
    border-color: #34d399 !important;
}

.calc-input.border-red-400 {
    border-color: #f87171 !important;
}

.calc-input.border-orange-400 {
    border-color: #fb923c !important;
}

/* Validation message styling */
.validation-message {
    font-size: 0.75rem;
    color: #ea580c;
    margin-top: 0.25rem;
    animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Styles */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.1);
}

/* Button Styles */
.btn-primary {
    padding: 0.5rem 1.5rem;
    background-color: #059669;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    padding: 0.5rem 1.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

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

/* Result Cards */
.result-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.result-stat {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.result-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.result-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .calc-nav-container {
        gap: 0.25rem;
    }
    
    .calc-nav-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #059669;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info boxes */
.info-box {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.error-box {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.success-box {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}