.star-rating {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.star-rating .star-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.star-rating .star-btn:hover {
    transform: scale(1.2);
}

.star-rating .star-btn .star-svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #D1D5DB; /* Gray-300 for empty stars */
    transition: all 0.2s ease;
}

/* Fill effect for stars on hover */
.star-rating .star-btn:hover .star-svg,
.star-rating .star-btn.active .star-svg {
    color: #FBBF24; /* Yellow-400 */
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

/* This reverses the hover effect on subsequent stars */
.star-rating .star-btn:hover ~ .star-btn .star-svg {
    color: #D1D5DB;
    fill: none;
}

/* Selected stars should be filled and colored */
.star-rating .star-btn.active .star-svg {
    color: #F59E0B; /* Yellow-500 for selected stars */
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* Rating value text */
.star-rating .rating-value {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563; /* Gray-600 */
    height: 1.25rem;
    display: inline-block;
}

/* For hover behavior in Javascript */
.star-rating .rating-value.visible {
    opacity: 1;
}

/* Rating label styles */
.rating-field {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.rating-field:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rating-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Rating container */
.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rating value text */
.rating-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    min-width: 2.5rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rating-value.visible {
    opacity: 1;
} 