@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #000;
    --secondary-color: #555;
    --accent-color: #f0f0f0;
    --border-color: #e5e7eb;
    --focus-ring: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--primary-color);
    line-height: 1.5;
}

.font-geist-mono {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    letter-spacing: -0.025em;
}

/* Form section & navigation styling */
.form-section {
    transition: all 0.2s ease;
}

.form-section:target {
    border-color: black;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.nav-link {
    transition: all 0.2s ease;
}

.nav-link.active {
    font-weight: 500;
}

/* Slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: black;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: black;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: black;
}

/* Results container animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#results-container {
    animation: fadeIn 0.5s ease-out;
}

/* Product recommendation highlight */
#product-name {
    border-left: 4px solid black;
}

/* Cost table styling */
#cost-table {
    border-collapse: separate;
    border-spacing: 0;
}

#cost-table th:first-child {
    border-top-left-radius: 0.375rem;
}

#cost-table th:last-child {
    border-top-right-radius: 0.375rem;
}

#cost-table tfoot tr:last-child td:first-child {
    border-bottom-left-radius: 0.375rem;
}

#cost-table tfoot tr:last-child td:last-child {
    border-bottom-right-radius: 0.375rem;
}

/* Architecture diagram container */
#architecture-diagram {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    border-radius: 0.375rem;
    border: 1px solid #eee;
}

/* Recommendation reasons styling */
#recommendation-reasons li {
    margin-bottom: 0.5rem;
}

/* Implementation steps styling */
#implementation-steps li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        padding: 0.5rem 0;
    }
    
    #cost-table {
        font-size: 0.875rem;
    }
    
    #cost-table th, #cost-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Active section highlight */
.highlighted-section {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Results animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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