/* 🎨 General Styling */
.sleep-tool {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #1b263b;
    color: #E0E0E0;
    margin: 0;
    padding: 20px;
}

/* 📌 Container Styling */
.container {
    width: 90%;
    max-width: 450px;
    margin: auto;
}

/* 🌙 Headings */
h2, h3 {
    color: #A3E635;
}

/* 🔳 Input Group Styling */
.input-group {
    margin: 15px 0;
    text-align: left;
}

/* 📏 Input Fields (Text, Number, Time) */
input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
    border: 2px solid #FFC56E;
    background: #2C3E50;
    color: #E0E0E0;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease-in-out;
}

/* 🎚 Slider Styling */
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 5px;
    background: #FFC56E;
    outline: none;
    transition: 0.2s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: #A3E635;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

/* 📌 Buttons */
button {
    background-color: #FFC56E;
    color: #1B263B;
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: 0.3s ease-in-out;
}

button:hover {
    background-color: #A3E635;
}

/* 🎯 Results Box Styling */
.results-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: #2C3E50;
    border: 2px solid #FFC56E;
    color: #E0E0E0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

/* ✅ Dynamic Color Changes */
.results-container.low-debt {
    border-color: #A3E635;
    color: #A3E635;
}

.results-container.high-debt {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.results-container.no-debt {
    border-color: #4CAF50;
    color: #4CAF50;
}

/* 📊 Progress Bar Styling */
.progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #2C3E50;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    transition: width 0.5s;
}

/* 🔴 Red for Sleep Debt */
.progress.sleep-debt {
    background: #FF4C4C; /* Red when sleep is missed */
}

/* ✅ Green for Recovered Sleep */
.progress.sleep-recovered {
    background: #A3E635; /* Green when sleep is recovered */
}
/* 🔴 Red when sleep debt exists */
.progress.sleep-debt {
    background: #FF4C4C; /* Red for debt */
}

/* ✅ Green when no sleep debt */
.progress.sleep-recovered {
    background: #A3E635; /* Green when fully recovered */
}


/* 📌 Mobile View Fix */
@media screen and (max-width: 480px) {
    select {
        font-size: 14px;
        padding: 10px;
    }
}
