* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
}

header h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: white;
    color: #667eea;
}

/* Main Content */
main {
    padding: 40px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.student-id, .grade-level {
    color: #666;
    font-size: 1.1em;
    margin: 5px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-card p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.highlight {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

/* Test Results Section */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.test-results-container {
    display: grid;
    gap: 20px;
}

.test-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translateX(5px);
}

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

.test-title {
    font-size: 1.3em;
    color: #333;
}

.test-score {
    font-size: 1.8em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
}

.test-score.excellent {
    background: #d4edda;
    color: #155724;
}

.test-score.good {
    background: #d1ecf1;
    color: #0c5460;
}

.test-score.average {
    background: #fff3cd;
    color: #856404;
}

.test-score.needs-improvement {
    background: #f8d7da;
    color: #721c24;
}

.test-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #666;
}

.test-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Learning Progress Section */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 1em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
}

.course-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.course-name {
    font-size: 1.3em;
    color: #333;
}

.course-percentage {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.course-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

/* Teacher Comments Section */
.comments-container {
    display: grid;
    gap: 20px;
}

.comment-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #764ba2;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.teacher-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.teacher-details h4 {
    color: #333;
    margin-bottom: 5px;
}

.teacher-details p {
    color: #666;
    font-size: 0.9em;
}

.comment-date {
    color: #999;
    font-size: 0.9em;
}

.comment-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
}

.comment-subject {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #667eea;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .test-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .test-details {
        flex-direction: column;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
