/* Rating Page Styles */
.rating-page {
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 0.25rem .75rem;
    background: rgb(179 177 177 / 17%);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #222;
    transition: all 0.3s ease;
    font-size: .6rem;
    font-weight: bold;
    border: 1px solid #ddd;
}

/* Rating Options */
.rating-slider-container {
    position: relative;
}

.rating-options {
    position: relative;
    height: 3rem;
    display: flex;
    gap: 0.5rem;
}

.rating-option {
    position: relative;
    flex: 1;
}

.rating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    color: #64748b;
    /* max-width: 80px; */
}

.rating-button::before {
    content: attr(data-value);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 0;
}

/* Rating Colors */
.rating-option.selected .rating-button,
.rating-option.active .rating-button {
    color: white;
}

.rating-option[data-value="20"].active .rating-button,
.rating-option[data-value="20"].selected .rating-button {
    background: #ef4444 !important;
}

.rating-option[data-value="40"].active .rating-button,
.rating-option[data-value="40"].selected .rating-button {
    background: #f97316 !important;
}

.rating-option[data-value="60"].active .rating-button,
.rating-option[data-value="60"].selected .rating-button {
    background: #eab308 !important;
}

.rating-option[data-value="80"].active .rating-button,
.rating-option[data-value="80"].selected .rating-button {
    background: #84cc16 !important;
}

.rating-option[data-value="100"].active .rating-button,
.rating-option[data-value="100"].selected .rating-button {
    background: #22c55e !important;
}

.rating-option:hover .rating-button {
    transform: translateY(-2px);
}

/* Tags Section */
.tag-checkbox {
    position: relative;
}

.tag-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem .75rem;
    background: #f8fafc;
    border-radius: 100pxpx;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 12px !important;
}

.tag-circle {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.tag-checkbox input:checked + .tag-button {
    background: rgba(var(--tag-color), 0.1);
    color: var(--tag-color);
    border-color: var(--tag-color);
}

.tag-checkbox input:checked + .tag-button .tag-circle {
    transform: scale(1.2);
}

.tag-button:hover {
    transform: translateY(-2px);
    background: rgba(var(--tag-color), 0.05);
}

/* Form Elements */
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1a202c;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Submit Button Animation */
.main-btn {
    position: relative;
    overflow: hidden;
}

.main-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.main-btn:hover::after {
    transform: translateX(100%);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.factor-rating,
.tags-container {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rating-options {
        height: 2.5rem;
    }

    .rating-button {
        height: 2.5rem;
    }

    .tag-button {
        padding: 0.25rem .5rem;
        font-size: 0.75rem;
    }
}

/* Dark Mode Support */
/* @media (prefers-color-scheme: dark) {
    .rating-page {
        background-color: #1a1a1a;
    }

    .rating-button {
        background: rgba(255, 255, 255, 0.05);
    }

    .tag-button {
        background: rgba(255, 255, 255, 0.05);
        color: #a0aec0;
    }

    input[type="text"],
    select,
    textarea {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
} */

/* Loading States */
.rating-page.loading {
    position: relative;
}

.rating-page.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Error States */
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Success States */
.has-success input,
.has-success select,
.has-success textarea {
    border-color: var(--primary-color);
}

/* Tooltip */
.rating-tooltip {
    display: none;
}

/* Grade Choices */
.grade-choice {
    position: relative;
}

.grade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 50px;
}

.grade-choice input:checked + .grade-button {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.grade-button:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.grade-choice input:checked + .grade-button:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .grade-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
} 

.professor-card h3 {
    font-size: 1.25rem;
}