/* CSS for the Howard Dental School Admissions Chance Calculator */
/* --- General Setup & Variables --- */
:root {
    --hds-bg-primary: #1e2128;
    --hds-bg-secondary: #2a2e37;
    --hds-border: #3c414e;
    --hds-text-primary: #f0f0f0;
    --hds-text-secondary: #a9b1c5;
    --hds-accent-primary: #4a90e2; /* A professional, engaging blue */
    --hds-accent-secondary: #50e3c2; /* A complementary vibrant teal */
    --hds-success: #7ed321;
    --hds-warning: #f5a623;
    --hds-danger: #d0021b;
    --hds-font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --hds-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#hds-calculator-tool {
    font-family: var(--hds-font-family);
    background: var(--hds-bg-primary);
    color: var(--hds-text-primary);
    padding: clamp(15px, 4vw, 30px);
    border-radius: 16px;
    box-shadow: var(--hds-shadow);
    max-width: 900px;
    margin: 2em auto;
    border: 1px solid var(--hds-border);
}

/* --- Header --- */
.hds-header {
    text-align: center;
    margin-bottom: 30px;
}

.hds-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.hds-header p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--hds-accent-primary);
    margin: 0;
}

/* --- Main Calculator Layout --- */
.hds-calculator-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .hds-calculator-body {
        grid-template-columns: 1fr 1fr;
    }
}

.hds-panel {
    background-color: var(--hds-bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--hds-border);
}

.hds-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: var(--hds-text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hds-border);
}

/* --- Input Panel (Sliders) --- */
.hds-input-group {
    margin-bottom: 25px;
}

.hds-input-group:last-child {
    margin-bottom: 0;
}

.hds-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--hds-text-secondary);
}

.hds-input-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hds-accent-secondary);
    background-color: var(--hds-bg-primary);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Custom Slider Styling */
.hds-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--hds-bg-primary);
    border-radius: 5px;
    outline: none;
    transition: opacity .2s;
}

.hds-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--hds-accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--hds-bg-secondary);
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.hds-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--hds-accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--hds-bg-secondary);
}

/* --- Results Panel --- */
.hds-results-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hds-gauge {
    width: 180px;
    height: 180px;
    position: relative;
    margin-bottom: 20px;
}

.hds-gauge-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--hds-border) 0deg, var(--hds-bg-primary) 180deg, var(--hds-border) 180deg);
}

.hds-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: rotate(-90deg);
    background: conic-gradient(transparent 0deg, var(--hds-accent-primary) 0deg);
    transition: background 0.5s ease;
}

.hds-gauge-cover {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 150px;
    height: 150px;
    background: var(--hds-bg-secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hds-chance-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
}
#hds-chance-value sup { font-size: 1.5rem; }
.hds-gauge-label {
    font-size: 0.9rem;
    color: var(--hds-text-secondary);
    margin-top: -5px;
}

#hds-feedback-text {
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 50px; /* Prevent layout shift */
    transition: color 0.5s ease;
}

.hds-feedback-breakdown {
    width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--hds-text-secondary);
    text-align: left;
}

.hds-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

/* --- Benchmark Section --- */
.hds-benchmark-section {
    grid-column: 1 / -1; /* Span full width */
    background: var(--hds-bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--hds-border);
    margin-top: 10px;
}

.hds-benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hds-benchmark-item {
    text-align: center;
    background: var(--hds-bg-primary);
    padding: 20px;
    border-radius: 8px;
}

.hds-benchmark-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hds-accent-primary);
}

.hds-benchmark-label {
    font-size: 0.9rem;
    color: var(--hds-text-secondary);
    margin-top: 5px;
}


/* --- Footer --- */
.hds-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hds-border);
    font-size: 0.85rem;
    color: var(--hds-text-secondary);
    line-height: 1.5;
}