body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

select,
button {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #333;
    color: white;
}

/* Reset any existing range input styles */
input[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 80%;
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(to right, #ff6b6b, #ffd166, #06d6a0) !important;
    outline: none;
    margin: 3rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff !important;
    cursor: pointer;
    border: 3px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #ff6b6b, #ffd166, #06d6a0) !important;
    height: 30px;
    border-radius: 15px;
}

input[type="range"]::-moz-range-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff !important;
    cursor: pointer;
    border: 3px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-top: 1rem;
    color: #333;
}

.mood-labels span {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.mood-labels span:hover {
    transform: scale(1.2);
}

.mood-emoji {
    font-size: 5rem;
    text-align: center;
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.mood-emoji:hover {
    transform: scale(1.2);
}

.percentage {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 1rem;
}

.status-message {
    margin-top: 10px;
    text-align: center;
    min-height: 1.5rem;
    font-size: 1.5rem;
    color: #8B4513;
    /* Red-brown color */
}

.trends-display {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trends-display h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#moodChart {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.trends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trend-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trend-entry .date {
    color: #666;
    font-size: 0.9em;
}

.trend-entry .mood {
    font-size: 1.5em;
}

.trend-entry .value {
    font-weight: bold;
    color: #4c788c;
}