body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

h1 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    direction: rtl; /* Use RTL to make CSS sibling selectors easier for star highlights */
}

.star {
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: transform 0.1s ease;
}

.star svg {
    width: 100%;
    height: 100%;
    fill: #ddd;
    transition: fill 0.2s ease;
}

/* Hover and active effects using sibling selector */
.star:hover svg,
.star:hover ~ .star svg {
    fill: #ffcc00;
}

.star.selected svg,
.star.selected ~ .star svg {
    fill: #ffcc00;
}

.star:active {
    transform: scale(0.9);
}

.rating-message {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #444;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

.reset-button {
    background: #eee;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #ddd;
    color: #333;
}

.hidden {
    display: none;
}
