/* Base Layout */
body { 
    margin: 0; 
    font-family: 'Lexend', 'Quicksand', 'Segoe UI', sans-serif; 
    background: #E3F2FD; /* Sky Blue background from your image */
    overflow: hidden;
}

.app-container { display: flex; height: 100vh; }

/* Sidebar - Matches Stride K12 Blue */
.sidebar { 
    width: 110px; 
    background: #0066FF; 
    color: white; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 20px 0;
    z-index: 100;
}

.logo { font-weight: 900; font-size: 1.5rem; margin-bottom: 40px; }
.nav-item { 
    text-align: center; 
    font-size: 0.8rem; 
    margin-bottom: 25px; 
    cursor: pointer; 
    opacity: 0.8;
}
.nav-item.active { opacity: 1; font-weight: bold; }
.nav-icon { display: block; font-size: 1.5rem; margin-bottom: 5px; }

/* Main Content Area */
.content { 
    flex: 1; 
    padding: 30px; 
    position: relative; /* Necessary for the fox/landscape to anchor */
    display: flex;
    flex-direction: column;
}

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 30px; 
    z-index: 20;
}

.tabs { background: rgba(224, 231, 255, 0.6); padding: 5px; border-radius: 25px; display: flex; }
.tab { border: none; padding: 10px 25px; border-radius: 20px; cursor: pointer; background: transparent; font-weight: 600; }
.tab.active { background: white; color: #0066FF; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* Course Grid */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
    z-index: 10; /* Above the grass, below the fox */
}

/* The Course Card - Matches image_4f2f40.png */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.course-card:hover { transform: translateY(-5px); }

.card-header {
    height: 80px;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}
.card-header h3 { margin: 0; font-size: 1.1rem; }

.card-body { padding: 20px; text-align: center; }
.course-name { font-weight: bold; color: #444; margin-bottom: 20px; min-height: 40px; }

/* The Grade Circle */
.grade-circle {
    width: 75px;
    height: 75px;
    border: 5px solid #F0F0F0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.score { font-size: 1.3rem; font-weight: 800; color: #333; }
.letter { font-size: 0.75rem; color: #888; text-transform: uppercase; }

/* THE FOREST THEME ELEMENTS */

.forest-landscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background-image: url('image_4f2f5b.jpg'); /* The forest image you uploaded */
    background-size: cover;
    background-position: bottom;
    z-index: 1;
    pointer-events: none; /* Allows you to click things "through" the grass */
}

.fox-island {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 260px;
    z-index: 50; /* Top layer */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}
.fox-island img { width: 100%; }

/* Modal Settings Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 200; 
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    width: 350px;
    border-radius: 20px;
    text-align: center;
}
.theme-options { display: flex; justify-content: space-around; margin: 20px 0; }
.theme-opt { 
    padding: 10px; border: 2px solid #eee; border-radius: 10px; cursor: pointer; 
}
.theme-opt.active { border-color: #0066FF; background: #E3F2FD; }
