/* Class pages body background - same as main page */
body {
    background-color: #f0f1e9;
    background-image: linear-gradient(
        90deg,
        transparent 0px,
        transparent 40px,
        rgba(105, 148, 95, 0.15) 40px,
        rgba(105, 148, 95, 0.15) 80px
    );
    background-size: 80px 100%;
}

/* Additional styles for class pages */

.page-header {
    background: linear-gradient(135deg, #8b9f7a 0%, #6b7c5a 100%);
    padding: 80px 0 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Content Strip */
.content-strip {
    background: #f6f9f3;
    min-height: calc(100vh - 150px);
    padding: 40px 0 60px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.content-strip .container {
    text-align: center;
}

.content-strip .page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d4a1f;
    text-align: center;
}

.content-strip .page-description {
    font-size: 1.2rem;
    color: #4a5d3a;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

/* Content Section */
.content-section {
    text-align: center;
}

/* 2x2 Grid Layout */
.content-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Reset text alignment for content inside cards */
}

/* 1x2 Grid Layout - for simplified layouts */
.content-grid-1x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Reset text alignment for content inside cards */
}

@media (max-width: 768px) {
    .content-grid-2x2, .content-grid-1x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-header .container {
    position: relative;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #2d4a1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #1a2e12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.back-btn i {
    margin-right: 8px;
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.content-section {
    padding: 0;
    background: transparent;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 25px;
}

.card-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: #8b9f7a;
}

/* Audio and Lyrics Sections */
.audio-section, .lyrics-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.audio-library, .lyrics-library {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area.dragover {
    border-color: #8b9f7a;
    background: #f0f1e9;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-text {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#fileInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upload-btn {
    background: linear-gradient(135deg, #8b9f7a 0%, #6b7c5a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 159, 122, 0.4);
}

.uploaded-files {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #e9ecef;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: #8b9f7a;
    font-size: 1.2rem;
}

.file-name {
    font-weight: 500;
    color: #2d4a1f;
    margin-bottom: 2px;
}

/* External Resources Styling */
.external-resources {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9f2e6;
}

.external-resources h3 {
    color: #2d4a1f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.external-resources h3 i {
    color: #8b9f7a;
    font-size: 1rem;
}

.resources-list {
    background-color: #f9fbf7;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #d4e3ce;
    min-height: 60px;
}

.no-resources {
    color: #5a6c57;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
    font-size: 0.95rem;
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #b5c7a7;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-item:hover {
    background-color: #f0f5ef;
    border-color: #4a7c59;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.resource-icon {
    font-size: 1rem;
    color: #4a7c59;
}

.resource-name {
    font-weight: 500;
    color: #2d4a1f;
    font-size: 0.9rem;
}

.resource-link {
    color: #8b9f7a;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
}

.resource-actions {
    display: flex;
    gap: 8px;
}

.resource-btn {
    background: none;
    border: none;
    color: #8b9f7a;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.resource-btn:hover {
    background-color: #8b9f7a;
    color: white;
}

/* Timer Styles */
.timer-display {
    text-align: center;
    margin-bottom: 30px;
}

.timer-circle {
    width: 150px;
    height: 150px;
    border: 8px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    background: linear-gradient(135deg, #8b9f7a 0%, #6b7c5a 100%);
    box-shadow: 0 10px 30px rgba(139, 159, 122, 0.3);
}

.timer-time {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.timer-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-btn.start {
    background: #27ae60;
    color: white;
}

.timer-btn.pause {
    background: #f39c12;
    color: white;
}

.timer-btn.reset {
    background: #e74c3c;
    color: white;
}

.timer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Link Section */
.link-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.link-input:focus {
    outline: none;
    border-color: #8b9f7a;
}

.link-btn {
    background: linear-gradient(135deg, #8b9f7a 0%, #6b7c5a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 159, 122, 0.4);
}

.resource-links {
    margin-bottom: 30px;
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
}

.resource-link {
    color: #8b9f7a;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.resource-link:hover {
    color: #6b7c5a;
}

.resource-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #dee2e6;
    color: #495057;
}

.tracking-stats h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tracking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tracking-link {
    color: #495057;
    font-weight: 500;
}

.tracking-time {
    color: #8b9f7a;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Study Time Tracking Styles */
.time-tracking-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.current-session {
    background-color: #f0f5ef;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #b5c7a7;
}

.current-session h3 {
    color: #2d4a1f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.session-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d4a1f;
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #b5c7a7;
    min-width: 100px;
    text-align: center;
}

.session-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.session-btn.start {
    background-color: #4a7c59;
    color: white;
}

.session-btn.start:hover {
    background-color: #2d4a1f;
}

.session-btn.pause {
    background-color: #f39c12;
    color: white;
}

.session-btn.pause:hover {
    background-color: #d68910;
}

.session-btn.stop {
    background-color: #e74c3c;
    color: white;
}

.session-btn.stop:hover {
    background-color: #c0392b;
}

.session-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.document-time-logs {
    background-color: #f8fdf7;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d4e3ce;
}

.document-time-logs h3 {
    color: #2d4a1f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.time-logs {
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
}

.no-logs {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

.time-log-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin: 5px 0;
    background-color: white;
    border-radius: 5px;
    border-left: 3px solid #4a7c59;
}

.log-date {
    font-size: 0.9rem;
    color: #5a6c57;
}

.log-duration {
    font-weight: bold;
    color: #2d4a1f;
}

.study-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.stat-card {
    background-color: #e8f5e3;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 80px;
    border: 1px solid #b5c7a7;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d4a1f;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #4a5d3a;
}

/* Audio and Lyrics Library Styles */
.audio-library, .lyrics-library {
    padding: 20px;
    background-color: #f8fdf7;
    border-radius: 8px;
    border: 1px solid #d4e3ce;
    min-height: 120px;
}

.library-message {
    color: #5a6c57;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
    font-size: 1rem;
}

.audio-list, .lyrics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.audio-item, .lyrics-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #b5c7a7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.audio-item:hover, .lyrics-item:hover {
    background-color: #f0f5ef;
    border-color: #4a7c59;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-icon {
    font-size: 1.2rem;
    color: #4a7c59;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #2d4a1f;
    margin-bottom: 2px;
}

.file-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.play-btn {
    background-color: #4a7c59;
    color: white;
}

.play-btn:hover {
    background-color: #2d4a1f;
}

.download-btn {
    background-color: #b5c7a7;
    color: #2d4a1f;
}

.download-btn:hover {
    background-color: #9fb591;
}

/* Empty state styling */
.empty-library {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

/* Audio player controls for when audio is playing */
.audio-player {
    margin-top: 10px;
    padding: 10px;
    background-color: #e8f5e3;
    border-radius: 6px;
    border: 1px solid #b5c7a7;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: #d4e3ce;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4a7c59;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    font-size: 0.85rem;
    color: #5a6c57;
    font-family: monospace;
}

/* Page Title Section with Home Button */
.page-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.home-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #4a7c59;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #4a7c59;
    white-space: nowrap;
}

.home-back-btn:hover {
    background-color: #2d4a1f;
    border-color: #2d4a1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(45, 74, 31, 0.2);
}

.home-back-btn i {
    font-size: 1rem;
}

/* Adjust page title when used with home button */
.page-title-section .page-title {
    margin: 0;
    flex: 1;
}

/* Responsive adjustments for title section */
@media (max-width: 768px) {
    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .home-back-btn {
        align-self: flex-start;
    }
    
    .page-title-section .page-title {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-back-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .home-back-btn i {
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for study tracking */
@media (max-width: 768px) {
    .session-timer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .session-btn {
        margin: 2px 0;
    }
    
    .study-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: unset;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .link-section {
        flex-direction: column;
    }
    
    .timer-stats {
        grid-template-columns: 1fr;
    }
    
    .resource-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .resource-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .timer-circle {
        width: 120px;
        height: 120px;
    }
    
    .timer-time {
        font-size: 1.5rem;
    }
}

/* Tests and Grading Page Styles */
.tests-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.rankings-section {
    flex: 1.2;
}

.classes-section {
    flex: 0.8;
}

.section-title {
    color: #2d4a1f;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4a7c59;
}

/* Rankings/Podium Styles */
.podium-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rank-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    border-radius: 20px;
    border: 4px solid;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    width: 100%;
}

.rank-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.first-place {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.second-place {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
}

.third-place {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #faf0e6 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.3);
}

.place-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.place-text {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
}

.first-place .place-text {
    color: #b8860b;
    text-shadow: 2px 2px 4px rgba(184, 134, 11, 0.3);
}

.second-place .place-text {
    color: #708090;
    text-shadow: 2px 2px 4px rgba(112, 128, 144, 0.3);
}

.third-place .place-text {
    color: #a0522d;
    text-shadow: 2px 2px 4px rgba(160, 82, 45, 0.3);
}

.winner-name-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
}

.winners-list {
    width: 100%;
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    background-color: #f8fdf7;
    border: 2px solid #d4e3ce;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-winners {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
}

.winner-item {
    background-color: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #b5c7a7;
    font-size: 1rem;
    text-align: center;
    color: #2d4a1f;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Remove admin-specific styles since they're not needed */

/* Class Tests Grid */
.class-tests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.class-test-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e8f5e3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.class-test-box:hover {
    border-color: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.class-test-box h3 {
    color: #2d4a1f;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    text-align: center;
    font-weight: 600;
}

.curriculum-area {
    min-height: 60px;
    background-color: #f8fdf7;
    border: 1px dashed #b5c7a7;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-curriculum {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
}

.curriculum-content {
    color: #2d4a1f;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tests-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .rankings-section,
    .classes-section {
        flex: none;
    }
    
    .rank-box {
        padding: 25px 40px;
        min-height: 120px;
    }
    
    .place-text {
        font-size: 2rem;
    }
    
    .winner-name-section {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .rank-box {
        padding: 20px 25px;
        min-height: 110px;
    }
    
    .place-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .winner-name-section {
        max-width: 250px;
    }
    
    .winner-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .class-tests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .class-test-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tests-layout {
        gap: 25px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .rank-box {
        padding: 15px 20px;
        min-height: 100px;
    }
    
    .place-content {
        gap: 10px;
    }
    
    .place-text {
        font-size: 1.4rem;
        letter-spacing: 0px;
    }
    
    .winner-name-section {
        max-width: 220px;
    }
    
    .winners-list {
        max-height: 80px;
        padding: 10px;
    }
    
    .winner-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .no-winners {
        font-size: 0.8rem;
    }
    
    .class-test-box h3 {
        font-size: 1rem;
    }
}
