.homework-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 140px;
}



.homework-filters {
    display: flex;
    gap: 6px;
    margin: 0 0 12px 0;
    padding: 6px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    z-index: 10;
}



.homework-filters::-webkit-scrollbar {
    display: none;
}

.homework-filters .filter-btn {
    gap: 8px;
    padding: 7px 10px;
    min-height: 34px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.1;
}

.homework-filters .filter-btn-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

.homework-filters .filter-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-weight: 700;
    line-height: 1;
    min-width: 26px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    letter-spacing: 0;
    font-size: 0.82em;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.homework-filters .filter-btn.active .filter-btn-count {
    background: rgba(255, 255, 255, 0.24);
}

.homework-filters .filter-btn.has-overdue .filter-btn-count {
    background: rgba(239, 68, 68, 0.18);
}

.homework-filters .filter-btn.has-overdue.active .filter-btn-count {
    background: rgba(255, 255, 255, 0.24);
}

.homework-filters .filter-btn.count-loading .filter-btn-count {
    width: 28px;
    height: 12px;
    min-width: 28px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    position: relative;
    overflow: hidden;
    color: transparent;
}

.homework-filters .filter-btn.count-loading .filter-btn-count::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: homework-count-shimmer 1.3s ease-in-out infinite;
}

@keyframes homework-count-shimmer {
    100% {
        transform: translateX(100%);
    }
}



.homework-advanced-filters {
    display: flex;
    gap: 8px;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    overflow: visible;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
    justify-content: center;
    align-items: center;
}

.homework-advanced-filters .advanced-filter-item {
    display: flex;
    align-items: center;
}

.homework-advanced-filters .advanced-filter-btn {
    min-height: 36px;
    box-sizing: border-box;
}

.homework-advanced-filters .advanced-filter-btn svg {
    flex-shrink: 0;
}



.create-task-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
    flex-shrink: 0;
}



.create-task-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #93c5fd !important;
}



.homework-actions {
    display: flex;
    gap: 12px;
    margin: 0 0 16px 0;
    padding: 0 12px;
    justify-content: flex-end;
}





.create-homework-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    color: rgba(59, 130, 246, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}



.create-homework-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s;
}



.create-homework-btn:hover::before {
    left: 100%;
}



.create-homework-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}



.create-homework-btn:active {
    transform: translateY(0);
}



.create-homework-btn svg {
    transition: transform 0.2s ease;
    z-index: 1;
    position: relative;
}



.create-homework-btn:hover svg {
    transform: scale(1.1);
}



.create-homework-btn span {
    z-index: 1;
    position: relative;
}



.create-homework-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}



.homework-visibility-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: rgba(168, 85, 247, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}



.homework-visibility-notice svg {
    flex-shrink: 0;
    opacity: 0.8;
}



.homework-card.custom-homework {
    border-left: 3px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
}



.custom-homework-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #10b981;
    margin-left: 8px;
}



.personal-homework-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #3b82f6;
    margin-left: 8px;
}



.homework-card.personal-homework {
    border-left: 3px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}



.homework-card.lab-work {
    border-left: 3px solid #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(139, 92, 246, 0.02));
}



.homework-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}



.delete-homework {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px 8px;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
}



.delete-homework:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.05);
}



.personal-homework-delete-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}



.personal-homework-delete-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}



.homework-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}



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



.homework-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
}



.homework-card.active::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}



.homework-card.overdue::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}



.homework-card.completed::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}



.homework-card.waiting::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}



.homework-card.pending::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}



.homework-card.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow:
        0 0 8px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    --card-width: 100%;
    --card-height: auto;
}



.homework-card.urgent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 1), transparent);
    border-radius: 2px;
    z-index: 10;
    animation: urgentRunAroundBorder 3s linear infinite;
}



.homework-card.urgent::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    width: 4px;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}



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



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



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



.homework-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}



.homework-status.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}



.homework-status.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}



.homework-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}



.homework-status.waiting {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}



.homework-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}



.homework-theme {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 500;
}



.homework-teacher {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}



.homework-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}



.homework-deadline {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
}



.homework-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}



.homework-grade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}



.homework-grade.overdue {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}



.homework-grade.grade-excellent {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}



.homework-grade.grade-good {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}



.homework-grade.grade-satisfactory {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}



.homework-grade.grade-poor {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}



.homework-grade:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}



.homework-grade.grade-excellent:hover {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}



.homework-grade.grade-good:hover {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}



.homework-grade.grade-satisfactory:hover {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}



.homework-grade.grade-poor:hover,
.homework-grade.overdue:hover {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}



.homework-details {
    margin-bottom: 24px;
}



.homework-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}



.homework-files>button {
    margin: 0;
    width: 100%;
}




.homework-upload-form {
    margin-top: 24px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
}



.homework-upload-form h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}



.homework-rating-section {
    margin-bottom: 20px;
}



.homework-rating-section {
    text-align: center;
}



.homework-rating-section .rating-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}



.homework-rating-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}



.homework-rating-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}



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



.homework-tags-section {
    margin-bottom: 20px;
    text-align: center;
}



.homework-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}



.homework-tag-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}



.homework-tag-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}



.homework-tag-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}



.homework-comment-section {
    margin-bottom: 24px;
    text-align: center;
}



.homework-comment-section label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}



.homework-comment-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}



.homework-comment-section textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.15);
}



.homework-comment-section textarea::placeholder {
    color: #6b7280;
}



.submit-homework-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 16px rgba(59, 130, 246, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
}



.submit-homework-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.3);
}



.submit-homework-btn:active:not(:disabled) {
    transform: translateY(0);
}



.submit-homework-btn:disabled {
    background: rgba(107, 114, 128, 0.3);
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}



.submitted-homework-info {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
    border: 2px solid rgba(34, 197, 94, 0.15);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



.submitted-homework-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.6), transparent);
    animation: shimmer 2s infinite;
}



.submitted-homework-info h4 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 12px;
}



.submitted-homework-info h4::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}



.submitted-homework-info.overdue {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
    border: 2px solid rgba(239, 68, 68, 0.15);
    box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}



.submitted-homework-info.overdue::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.6), transparent);
}



.submitted-homework-info.overdue h4 {
    color: #ef4444;
}



.submitted-homework-info.overdue h4::before {
    content: "⏰";
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    font-size: 16px;
}



.submitted-homework-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.submitted-homework-file,
.submitted-homework-text {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.submitted-homework-file:hover,
.submitted-homework-text:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05);
}



.submitted-homework-mark {
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    box-shadow:
        0 4px 16px rgba(255, 193, 7, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}



.overdue-homework-mark {
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    box-shadow:
        0 4px 16px rgba(239, 68, 68, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}



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

.homework-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%);
    padding: 16px;
    min-height: 158px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.2);
    animation: homework-skeleton-pulse 1.5s ease-in-out infinite;
}

.homework-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: homework-skeleton-shimmer 1.8s ease-in-out infinite;
}

.homework-skeleton-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.5) 0%, rgba(139, 92, 246, 0.42) 100%);
}

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

.homework-skeleton-subject,
.homework-skeleton-status,
.homework-skeleton-theme,
.homework-skeleton-teacher,
.homework-skeleton-deadline,
.homework-skeleton-chip {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.homework-skeleton-subject {
    width: 62%;
    height: 22px;
}

.homework-skeleton-status {
    width: 120px;
    height: 24px;
    flex-shrink: 0;
}

.homework-skeleton-theme {
    width: 88%;
    height: 18px;
}

.homework-skeleton-teacher {
    width: 54%;
    height: 16px;
}

.homework-skeleton-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.homework-skeleton-deadline {
    width: 46%;
    height: 16px;
}

.homework-skeleton-chip {
    width: 95px;
    height: 20px;
    flex-shrink: 0;
}

.homework-skeleton-card:nth-child(2) .homework-skeleton-subject,
.homework-skeleton-card:nth-child(2) .homework-skeleton-theme,
.homework-skeleton-card:nth-child(2) .homework-skeleton-teacher,
.homework-skeleton-card:nth-child(2) .homework-skeleton-deadline,
.homework-skeleton-card:nth-child(2) .homework-skeleton-chip {
    animation-delay: 0.16s;
}

.homework-skeleton-card:nth-child(3) .homework-skeleton-subject,
.homework-skeleton-card:nth-child(3) .homework-skeleton-theme,
.homework-skeleton-card:nth-child(3) .homework-skeleton-teacher,
.homework-skeleton-card:nth-child(3) .homework-skeleton-deadline,
.homework-skeleton-card:nth-child(3) .homework-skeleton-chip {
    animation-delay: 0.3s;
}

.homework-skeleton-card:nth-child(4) .homework-skeleton-subject,
.homework-skeleton-card:nth-child(4) .homework-skeleton-theme,
.homework-skeleton-card:nth-child(4) .homework-skeleton-teacher,
.homework-skeleton-card:nth-child(4) .homework-skeleton-deadline,
.homework-skeleton-card:nth-child(4) .homework-skeleton-chip {
    animation-delay: 0.44s;
}

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

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

    50% {
        opacity: 0.95;
    }
}

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

    .homework-skeleton-subject {
        height: 20px;
    }

    .homework-skeleton-status {
        width: 102px;
        height: 22px;
    }

    .homework-skeleton-theme {
        height: 16px;
    }

    .homework-skeleton-teacher,
    .homework-skeleton-deadline {
        height: 14px;
    }

    .homework-skeleton-chip {
        width: 82px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homework-filters .filter-btn.count-loading .filter-btn-count::after,
    .homework-skeleton-card::before,
    .homework-skeleton-card {
        animation: none;
        transform: none;
    }
}



.homework-description-section,
.homework-files-section,
.teacher-comment-section {
    margin-bottom: 24px;
}



.homework-description-section h3,
.homework-files-section h3,
.teacher-comment-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}



.homework-description {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}



.homework-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



#homeworkStatus {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}



#homeworkStatus.status-badge.active {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}



#homeworkStatus.status-badge.overdue {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}



#homeworkStatus.status-badge.completed {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}



#homeworkStatus.status-badge.waiting {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}



.homework-scope-section {
    margin: 16px 0;
}



.homework-visibility-notice {
    padding: 12px 16px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
}



.homework-visibility-notice svg {
    flex-shrink: 0;
}



.homework-advanced-filters {
    position: relative;
    z-index: 9000 !important;
}








.teacher-comment-content {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px;
}








.teacher-comment-content .comment-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}








.teacher-comment-content .comment-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}






.form-textarea {
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
}






.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}






.files-preview {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}






.files-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}






.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}






.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
}






.file-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}






.file-item-name {
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}






.file-item-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}






.file-item-remove {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 4px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}






.file-item-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}






.file-preview {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 8px;
}






.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    margin-top: 12px;
}






.files-preview {
    margin-top: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
}






.files-count {
    font-size: 14px;
    font-weight: 500;
    color: #22c55e;
    margin-bottom: 12px;
    text-align: center;
}






.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}






.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}






.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}






.file-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}






.file-preview-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}






.file-preview-footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}






.file-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}






.file-preview-container {
    position: relative;
    z-index: 2;
    background: #1f2937;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}






.file-preview-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

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

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