/* ==========================================
   ASSIGNMENTS PAGE STYLES
========================================== */

.assignments-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-num.green { color: #34d399; }
.stat-num.yellow { color: #fbbf24; }
.stat-num.red { color: #f87171; }

.stat-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Institution Badge */
.institution-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(200, 255, 0, 0.05);
    border: 1px solid rgba(200, 255, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.institution-badge .badge-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 255, 0, 0.1);
    border-radius: 10px;
}

.badge-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-name {
    display: block;
    font-weight: 600;
    color: var(--text-white);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-icon {
    font-size: 1rem;
    color: var(--text-muted);
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* Assignments List */
.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.assignment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: border-color 0.3s;
}

.assignment-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.assignment-card.hidden {
    display: none;
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.assignment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-code {
    padding: 6px 15px;
    background: rgba(200, 255, 0, 0.1);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.course-name {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.completed {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-badge.in-progress {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge.pending {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.assignment-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.assignment-card:hover .assignment-title {
    color: var(--accent);
}

.assignment-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.assignment-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.expand-btn:hover {
    color: var(--accent-dark);
}

.expand-btn .arrow {
    transition: transform 0.3s;
}

.expand-btn.active .arrow {
    transform: rotate(180deg);
}

/* Essay Content */
.essay-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.essay-content.active {
    max-height: 5000px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.notes-box {
    background: rgba(200, 255, 0, 0.05);
    border: 1px solid rgba(200, 255, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.notes-box strong {
    color: var(--accent);
}

.essay-body h2 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.4;
}

.essay-body h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-top: 30px;
    margin-bottom: 15px;
}

.essay-body h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-top: 20px;
    margin-bottom: 10px;
}

.essay-body p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.essay-body ul,
.essay-body ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.essay-body li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.essay-body strong {
    color: var(--text-white);
}

.essay-body em {
    font-style: italic;
}

/* Progress Section */
.progress-section {
    margin-top: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h4 {
    font-size: 1rem;
    color: var(--text-white);
}

.progress-percent {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 50px;
    transition: width 1s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .assignment-header {
        flex-direction: column;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .assignment-card {
        padding: 20px;
    }
    
    .assignment-title {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
