/* My Agent AI Learning Journey - Custom LMS Styles */

:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --success-color: #198754;
    --agent-purple: #6f42c1;
    --agent-indigo: #6610f2;
    --card-border-color: #e9ecef;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 6px 18px rgba(102, 16, 242, 0.18);
}

.lesson-card {
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.stat-box {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--card-border-color);
    padding: 1.25rem;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Status Badges */
.badge-complete {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-in-progress {
    background-color: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-not-started {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

/* Progress Bar */
.progress {
    height: 18px;
    border-radius: 9px;
    background-color: #e9ecef;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
    transition: width 0.4s ease;
}

/* Lesson Viewer & Markdown Layout */
.markdown-body {
    line-height: 1.75;
    font-size: 1.05rem;
    color: #2b3035;
}

.markdown-body h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    color: #1a1e21;
}

.markdown-body h2 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.35rem;
}

.markdown-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.markdown-body pre {
    background-color: #1e1e24;
    color: #f8f9fa;
    padding: 1.15rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.markdown-body code {
    background-color: #eef2f6;
    color: #d63384;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.markdown-body pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    color: #495057;
    background-color: #f0f7ff;
    border-radius: 0 8px 8px 0;
    margin: 1.25rem 0;
}

.markdown-body table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #dee2e6;
}

.markdown-body table th {
    background-color: #f1f3f5;
    font-weight: 600;
}

.notes-panel {
    position: sticky;
    top: 1.5rem;
}

/* Flashcard Scene */
.flashcard-scene {
    perspective: 1000px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    min-height: 320px;
    cursor: pointer;
}

.flashcard-inner {
    width: 100%;
    min-height: 320px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flashcard-inner.is-flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 320px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.flashcard-front {
    background: #ffffff;
    border: 2px solid #0d6efd;
    color: #212529;
}

.flashcard-back {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #ffffff;
    transform: rotateY(180deg);
    border: 2px solid #6610f2;
}

.flashcard-back .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Card-Based Multi-Step Quiz Component */
.quiz-card-container {
    max-width: 780px;
    margin: 0 auto;
}

.quiz-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--card-border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease-in-out;
}

.quiz-step-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.quiz-step-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #dee2e6;
    background-color: #ffffff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-step-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quiz-step-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.quiz-step-btn.answered:not(.active) {
    border-color: #198754;
    background-color: #e8f5e9;
    color: #198754;
}

.quiz-option-tile {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-option-tile:hover {
    border-color: #9ec5fe;
    background-color: #f8fbff;
    transform: translateX(4px);
}

.quiz-option-tile.selected {
    border-color: var(--primary-color);
    background-color: #eef5ff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.16);
    transform: scale(1.01);
}

.quiz-option-tile input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@keyframes pulseGlow {
    0% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-animation {
    animation: pulseGlow 0.3s ease-out forwards;
}

.quiz-option-tile input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

