.evaluation-header {
    text-align: center;
    margin-bottom: 20px;
}

.evaluation-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.evaluation-subtitle {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.active-lessons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evaluation-list-skeleton {
    display: contents;
}

.evaluation-skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.78) 0%, rgba(20, 24, 33, 0.68) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.2);
    padding: 16px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: evaluation-skeleton-pulse 1.5s ease-in-out infinite;
}

.evaluation-skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.1) 48%, transparent 82%);
    animation: evaluation-skeleton-shimmer 1.8s ease-in-out infinite;
}

.evaluation-skeleton-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.78) 0%, rgba(217, 119, 6, 0.68) 100%);
}

.evaluation-skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.evaluation-skeleton-subject,
.evaluation-skeleton-time,
.evaluation-skeleton-teacher,
.evaluation-skeleton-date,
.evaluation-skeleton-button {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.evaluation-skeleton-subject {
    width: 58%;
    height: 26px;
}

.evaluation-skeleton-time {
    width: 56px;
    height: 14px;
    margin-top: 5px;
}

.evaluation-skeleton-teacher {
    width: 74%;
    height: 18px;
}

.evaluation-skeleton-date {
    width: 74px;
    height: 16px;
}

.evaluation-skeleton-button {
    margin-top: auto;
    width: 100%;
    height: 34px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.26);
}

@keyframes evaluation-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes evaluation-skeleton-pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.95;
    }
}

@media (max-width: 480px) {
    .evaluation-skeleton-card {
        min-height: 160px;
        padding: 14px;
        gap: 9px;
    }

    .evaluation-skeleton-subject {
        height: 24px;
    }

    .evaluation-skeleton-teacher {
        height: 16px;
    }

    .evaluation-skeleton-button {
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .evaluation-skeleton-card,
    .evaluation-skeleton-card::before {
        animation: none;
        transform: none;
    }
}

.lesson-evaluation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.lesson-evaluation-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.lesson-evaluation-card:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.lesson-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.lesson-eval-subject {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    line-height: 1.3;
}

.lesson-eval-time {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.lesson-eval-teacher {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
    font-weight: 500;
}

.lesson-eval-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.evaluation-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.evaluation-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.group-rating-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
    padding: 10px 16px;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}



.group-rating-card:active {
    background: rgba(255, 255, 255, 0.06);
}




.group-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.group-rating-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}



.group-rating-placeholder {
    text-align: right;
}



.rating-position {
    font-size: 24px;
    font-weight: 800;
    color: #9ca3af;
    line-height: 1;
}



.rating-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}



.group-rating-card.excellent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}



.group-rating-card.good {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(21, 128, 61, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}



.group-rating-card.satisfactory {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}



.group-rating-card.fair {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}



.rating-position.excellent {
    color: #10b981;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}



.rating-position.good {
    color: #22c55e;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}



.rating-position.satisfactory {
    color: #f59e0b;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}



.rating-position.fair {
    color: #ef4444;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}



.group-rating-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 16px 0;
}



.rating-toggle-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}



.rating-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}



.rating-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}



.rating-item.current-user {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}



.rating-position-badge {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}



.rating-position-badge.top3 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}



.rating-position-badge.top5 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #000;
}



.rating-position-badge.top10 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
}



.rating-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}



.rating-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}



.rating-info {
    flex: 1;
    min-width: 0;
}



.rating-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.rating-amount {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}



.rating-score {
    font-weight: 700;
    font-size: 18px;
    color: #3b82f6;
    text-align: right;
}



.rating-label,
.tags-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}



.rating-container {
    margin-bottom: 20px;
}



.rating-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}



.rating-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



.rating-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}



.rating-btn.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-color: #3b82f6;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}




.rating-toggle-container .toggle-switch {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.9) 0%, rgba(25, 25, 45, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    display: inline-flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}



.rating-toggle-container .toggle-label {
    display: flex;
    align-items: stretch;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 100%;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
}



.rating-toggle-container .toggle-text-left,
.rating-toggle-container .toggle-text-right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    width: 50%;
    text-align: center;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}



.rating-toggle-container .toggle-text-left {
    left: 0;
}



.rating-toggle-container .toggle-text-right {
    right: 0;
}



.rating-toggle-container .toggle-text-left .toggle-icon,
.rating-toggle-container .toggle-text-right .toggle-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}



.rating-toggle-container .toggle-input:not(:checked)~.toggle-label .toggle-text-left .toggle-icon,
.rating-toggle-container .toggle-input:checked~.toggle-label .toggle-text-right .toggle-icon {
    opacity: 1;
}



.rating-toggle-container .toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}



.rating-toggle-container .toggle-input:not(:checked)~.toggle-label .toggle-slider {
    transform: translateX(0);
}



.rating-toggle-container .toggle-input:checked~.toggle-label .toggle-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}



.rating-toggle-container .toggle-input:not(:checked)~.toggle-label .toggle-text-left {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}



.rating-toggle-container .toggle-input:checked~.toggle-label .toggle-text-right {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}



.rating-toggle-container .toggle-label:hover .toggle-slider {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}



.rating-toggle-container .toggle-label:active .toggle-slider {
    transform: translateX(0) scale(0.98);
}



.rating-toggle-container .toggle-input:checked~.toggle-label:active .toggle-slider {
    transform: translateX(100%) scale(0.98);
}



.rating-avatar-container {
    position: relative;
    display: inline-flex;
    margin-right: 12px;
    vertical-align: middle;
}



.rating-avatar-container .rating-avatar {
    margin: 0 !important;
    display: block;
}



.rating-avatar-container .rating-avatar-placeholder {
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}



.rating-avatar-container.kodari-connected::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed #8b5cf6;
    animation: rotate-dashed 20s linear infinite, color-cycle 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}



.review-rating {
    display: flex;
    gap: 2px;
    margin: 8px 0;
}



.rating-toggle-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

@media (min-width: 768px) {
    .active-lessons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .active-lessons {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
