/* General Page Styling */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    display: flex;
    background-color: #f0f2f5;
    color: #333;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: #1a237e; /* Professional Dark Blue */
    color: white;
    position: fixed;
    padding: 20px;
}

.sidebar h2 {
    font-size: 22px;
    border-bottom: 1px solid #3f51b5;
    padding-bottom: 15px;
}

.sidebar nav a {
    display: block;
    color: #c5cae9;
    text-decoration: none;
    padding: 12px 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background-color: #3949ab;
    color: white;
}

/* Content Area Styling */
.main-content {
    margin-left: 300px;
    padding: 40px;
    flex-grow: 1;
}

header h1 {
    color: #1a237e;
    margin-bottom: 5px;
}

/* Grid for Lesson Cards */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Individual Card Styling */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 6px solid #2e7d32; /* Excel Green */
    transition: transform 0.2s;
}

.it-card {
    border-top: 6px solid #f57c00; /* IT Knowledge Orange */
}

.card:hover {
    transform: translateY(-5px);
}

/* Status Tags */
.category-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.category-tag.it {
    color: #e65100;
    background: #fff3e0;
}

/* Button Styling */
button {
    width: 100%;
    background-color: #1a237e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #3949ab;
}

/* Locked Card Style */
.card.locked {
    background-color: #e0e0e0;
    opacity: 0.7;
    border-top-color: #9e9e9e;
}

button:disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
}
/* Lesson Player Styling */
#lesson-player {
    background-color: #ffffff !important;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

#lesson-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

#lesson-content h1 {
    color: #1a237e;
}

#quiz-input {
    padding: 10px;
    width: 200px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}
/* Excel Sandbox Styling */
.excel-table {
    border-collapse: collapse;
    margin: 20px 0;
}
.excel-table td, .excel-table th {
    border: 1px solid #ccc;
    padding: 10px 20px;
    text-align: center;
}
.excel-table th {
    background-color: #f8f9fa;
    font-weight: normal;
    color: #666;
}

.sandbox {
    display: flex;
    align-items: center;
    background: #eee;
    padding: 5px;
    border: 1px solid #bbb;
    border-radius: 4px;
}
.sandbox span {
    padding: 0 10px;
    font-style: italic;
    font-weight: bold;
    color: #666;
}
#formula-input {
    flex-grow: 1;
    border: none;
    padding: 8px;
    outline: none;
}
/* Add these to your style.css */
.pro-tip {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
#admin-search:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 8px rgba(26, 35, 126, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* This makes the lesson content easy to read */
#module-content-area {
    font-size: 1.2rem;       /* Roughly 19px-20px */
    line-height: 1.6;        /* Adds space between lines */
    max-width: 800px;        /* Prevents lines from being too wide */
    color: #2c3e50;          /* Darker grey for better contrast */
    padding: 20px;
}

/* Make headers stand out */
#module-content-area h2 {
    font-size: 2rem;
    color: #1a237e;          /* Navy Blue */
    margin-bottom: 20px;
}

/* Make quiz questions larger */
.quiz-question {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 30px;
}
.content-body p {
    margin-bottom: 25px; /* Adds space between paragraphs so it's not a 'wall of text' */
    font-size: 21px;
}

.content-body strong {
    color: #1a237e; /* Makes bolded words pop for better scanning */
}
.quiz-option-btn:hover {
    border-color: #1a237e !important;
    background-color: #f0f2ff !important;
    transform: translateX(5px); /* Subtle nudge to show it's active */
}

.quiz-option-btn:active {
    background-color: #e0e4ff !important;
}

/* Ensure images inside questions aren't too big */
.quiz-container img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}
.lesson-text h3 {
    color: #1a237e;
    margin-top: 25px;
    border-bottom: 2px solid #e8f0fe;
    display: inline-block;
}

/* This makes the lesson look like a professional card */
.module-view {
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1300px;
    margin: 0 auto;
}

/* This makes Excel formulas stand out like a pro */
.excel-formula {
    background: #f1f5f9;
    border-left: 5px solid #217346;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1e293b;
    margin: 20px 0;
    display: block;
}

/* This makes the buttons look modern */
.nav-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
/* The Main Lesson Box */
.module-view {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.module-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

/* Video Styling */
.video-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Image Styling */
.lesson-image {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Text Body */
.content-body {
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
}

/* Navigation Buttons */
.module-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.nav-btn-primary {
    background: #1a237e;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.nav-btn-outline {
    background: white;
    color: #1a237e;
    border: 1px solid #1a237e;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
}
/* Styling for the content inside the module */
.content-body {
    font-size: 19px;
    line-height: 1.8;
    color: #334155;
}

/* Bold blue for important headers found in your text */
.content-body strong {
    color: #1a237e;
    display: inline-block;
    margin-top: 10px;
}

/* The divider line */
.lesson-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 40px 0;
}

/* Success Checkmarks */
.check-mark {
    color: #27ae60;
    font-weight: bold;
    margin-right: 5px;
}

/* Tip boxes for your "PRO TIP" sections */
.lesson-tip {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
}

/* Progress Pill in the header */
.progress-pill {
    background: #e8eaf6;
    color: #1a237e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}
/* The Excel Table Container */
.excel-window {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.excel-grid {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

/* Gray Column Headers (A, B, C) and Row Numbers (1, 2, 3) */
.excel-grid th, .excel-grid .row-num {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-weight: normal;
    text-align: center;
    padding: 6px;
    width: 40px;
}

.excel-grid td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    min-width: 100px;
}

/* Highlights the very first row of your data */
.excel-grid tr:nth-child(2) td {
    font-weight: bold;
    background: #f9fafb;
}

/* Styles the headers we just created with ### */
.lesson-header {
    color: #1a237e;
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 8px;
}

/* Makes bold text pop without being overwhelming */
.content-body strong {
    color: #334155;
    font-weight: 700;
}

/* Spacing for list items to prevent "bunching" */
.content-body li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Final Polish on the Excel Grid */
.excel-grid tr:nth-child(2) td {
    background-color: #f8fafc;
    font-weight: bold;
    color: #1a237e;
}
/* The Formula Box */
.excel-formula-box {
    background: #f0fdf4; /* Light Excel Green */
    border: 1px solid #bbf7d0;
    border-left: 5px solid #166534; /* Dark Green accent */
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #166534;
    font-size: 20px;
}

.excel-formula-box code {
    display: block;
    width: 100%;
}

.practice-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.practice-header {
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.practice-flex {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.formula-input-field {
    flex: 1;
    padding: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.formula-feedback {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
}

.formula-feedback.success { color: #166534; }
.formula-feedback.error { color: #991b1b; }

.formula-feedback.success {
    color: #166534;
    background: #f0fdf4;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

.formula-feedback.error {
    color: #991b1b;
    background: #fef2f2;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #fecaca;
}
.row-num {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    width: 30px;
    border-right: 2px solid #d1d5db; /* This gives that "gutter" look */
}
.solution-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.solution-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Final Module Header - Darker and more "Premium" */
.assignment-style {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 3px solid #22c55e;
}

.assignment-style h2 { color: #ffffff !important; }

/* The Callout Box */
.assignment-callout {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px dashed #22c55e;
}

/* The Pulsing Success Button */
.pulse {
    animation: shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
    0% { box-shadow: 0 0 0 0px rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0px rgba(34, 197, 94, 0); }
}
