/* Thiết lập cơ bản và reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #2c3e50;
    line-height: 1.6;
}

/* --- GIAO DIỆN TRANG CHỦ --- */
.home-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.home-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.student-info h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 8px;
}

.student-info p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.week-menu h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #34495e;
}

/* Grid layout hiển thị các tuần chuyên nghiệp */
.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.week-card {
    background-color: #fff;
    color: #34495e;
    text-decoration: none;
    padding: 15px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    text-align: center;
}

.week-card:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.week-card.active-week {
    border-left: 4px solid #2ecc71;
    background-color: #f8fafc;
}


/* --- GIAO DIỆN CÓ THANH SIDEBAR (CỘT SÁT VIỀN) --- */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar sát viền màn hình bên trái */
.sidebar {
    width: 260px;
    background-color: #1e293b;
    color: #f8fafc;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
}

.sidebar-header {
    padding: 20px;
    background-color: #0f172a;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #38bdf8;
}

/* Vùng danh sách các tuần có thể cuộn độc lập */
.sidebar-menu {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 10px 0;
}

.sidebar-menu li a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: #334155;
    color: #fff;
}

.sidebar-menu li a.active {
    background-color: #0284c7;
    color: #fff;
    font-weight: bold;
    border-left: 4px solid #38bdf8;
}

.sidebar-menu li a.home-link {
    color: #f43f5e;
    font-weight: bold;
    border-bottom: 1px dashed #334155;
    margin-bottom: 5px;
}

.sidebar-menu li a.home-link:hover {
    background-color: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}


/* --- KHU VỰC NỘI DUNG CHÍNH (BÊN PHẢI) --- */
.content-area {
    margin-left: 260px; /* Nhường chỗ cho cột bên trái */
    padding: 40px;
    width: calc(100% - 260px);
    background-color: #f8fafc;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    color: #0f172a;
    font-size: 1.8rem;
}

/* Menu điều hướng nhanh giữa các bài trong tuần */
.exercise-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.exercise-nav a {
    text-decoration: none;
    color: #0284c7;
    background: #f0f9ff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}

.exercise-nav a:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Khung bọc từng bài tập riêng biệt như một trang nhỏ */
.exercise-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.exercise-title {
    font-size: 1.2rem;
    color: #0f172a;
    border-left: 4px solid #0284c7;
    padding-left: 10px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Phần hiển thị thực tế của bài tập */
.exercise-display {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
}