/* General Styling */
.sleep-tool {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #0D1B2A; /* Dark blue for night mode */
    color: #E0E0E0; /* Light gray for readability */
    padding: 20px;
    margin: 0;
	  border-radius: 20px; /* Softer roundness */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    width: 90%; /* Responsive width */
    max-width: 400px; /* Prevents excessive stretching */
	  margin: auto;
    text-align: center;

}

/* ✅ Fixed Container Styling */
.container {
    background: #0d1b2a; /* Deep blue for contrast */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything inside */
    justify-content: center;
    overflow: hidden; /* Ensures no elements break out */
}

/* ✅ Mobile Fix: Add Right Padding & Center */
@media (max-width: 600px) {
    .container {
        width: 95%; /* Use more width for better centering */
        padding: 25px 30px 25px 15px; /* Adds right padding */
        margin: 0 auto; /* Centers on mobile */
    }
}

/* ✅ Headings */
h2 {
    color: #A3E635; /* Soft green for better visibility */
    padding: 10px;
}

input[type="time"], input[type="range"], select {
    display: block;
    margin: 10px auto;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #FFC56E; /* Warm amber */
    background: #2C3E50; /* Darker blue */
    color: #E0E0E0;
    width: 100%;
}
/* Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 8px;
    background: #FFC56E;
    border-radius: 10px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
}
/* ✅ Pregnant Dropdown Styling *//* ✅ Pregnant Dropdown Styling - Inline with Heading *//* ✅ Pregnant Dropdown Styling - Inline with Heading */
.pregnant-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Full width for better alignment */
    max-width: 500px;
    margin-bottom: 15px;
}

/* ✅ Pregnant Label */
.pregnant-container label {
    font-size: 1.1em; /* Slightly smaller */
    font-weight: bold;
    color: #A3E635;
    white-space: nowrap;
}

/* ✅ Pregnant Dropdown */
.pregnant-container select {
    width: 45%; /* Adjusted width */
    padding: 6px 10px; /* Smaller padding for better fit */
    border-radius: 8px; /* Softer corners */
    border: 2px solid #FFC56E;
    background: #2C3E50;
    font-size: 14px; /* Reduced font size */
    color: #E0E0E0;
    outline: none;
    text-align: center;
    appearance: none;
    cursor: pointer;
}

/* ✅ Improve dropdown arrow appearance */
.pregnant-container select::-ms-expand {
    display: none;
}

.pregnant-container select:hover {
    border-color: #FFA726; /* Light orange hover effect */
}

.pregnant-container select:focus {
    border-color: #FFD700; /* Golden border on focus */
}

/* ✅ Green Color for Labels */
.time-container label {
    font-size: 1.3em; /* Match Gender label */
    font-weight: bold;
    color: #A3E635; /* Soft Green for better visibility */
    margin-bottom: 5px;
}

.gender-container label {
    font-size: 1.3em; /* Match Gender label */
    font-weight: bold;
    color: #A3E635; /* Soft Green for better visibility */
    margin-bottom: 5px;
}

/* ✅ Fixed Time Input & Gender Dropdown Styling */
.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.gender-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.time-container input {
    width: 100%;
    padding: 12px;
    border-radius: 15px;
    border: 2px solid #A3E635;
    background: #2C3E50;
    font-size: 16px;
    color: #E0E0E0;
    text-align: center;
    outline: none;
    appearance: none;
}

.gender-container select {
    width: 70%;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #FFC56E;
    background: #2C3E50;
    font-size: 16px;
    color: #E0E0E0;
}


/* ✅ Improved Time Input Styling */
input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

/* ✅ Fixed Button Styling */
button {
    background-color: #FFC56E; /* Warm amber */
    color: #1B263B;
    padding: 12px 25px;
    border: none;
    border-radius: 25px; /* More rounded button */
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

button:hover {
    background-color: #FFB74D; /* Lighter amber */
}

/* ✅ Hide Results Initially */
.hidden {
    display: none;
}

/* ✅ Fixed Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

/* ✅ Result Boxes */
.result-box {
    background-color: #2C3E50;
    padding: 20px;
    border-radius: 15px;
    font-size: 18px;
    color: #E0E0E0;
    border: 2px solid #A3E635; /* Soft green border */
}

/* ✅ Result Box Highlight */
.result-box span {
    display: block;
    font-size: 14px;
    color: #FFC56E; /* Soft amber */
}

/* ✅ Mobile Fixes */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .time-container,
    .gender-container {
        max-width: 100%;
    }

    .result-grid {
        grid-template-columns: 1fr; /* Stack results vertically */
    }

    button {
        width: 100%;
    }
}
