/* Cortisol Management specific styles */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border-color);
}

.key-term {
    color: var(--primary-color);
    font-weight: 600;
}

.infographic {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.graph-container {
    flex: 3;
    min-width: 300px;
}

.controls {
    flex: 1;
    min-width: 280px;
}

.control-group {
    margin-bottom: 1rem;
}

.slider-container {
    margin-bottom: 0.5rem;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--card-border-color);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.cortisol-curve {
    stroke: var(--primary-color);
    stroke-width: 2.5;
    fill: none;
}

.healthy-curve {
    stroke: var(--secondary-color);
    stroke-width: 1.5;
    stroke-dasharray: 4,4;
    fill: none;
}

.grid-line {
    stroke: var(--card-border-color);
    stroke-width: 0.5;
}

.axis, .time-marker, .cortisol-level {
    stroke: var(--secondary-color);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .infographic {
        flex-direction: column;
    }
}