/* 
  Twoja Sprawa - Educational Platform Styles
  Theme: Navy & White
*/

:root {
    --color-brand-navy: #0B2545;
    --color-brand-navy-hover: #17385F;
    --color-white: #ffffff;
    --color-bg-light: #F5F8FB;
    --color-text-main: #0B2545;
    --color-text-light: #6b7280;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --border-radius-card: 12px;
    --border-radius-btn: 6px;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--color-brand-navy-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-brand-navy);
    color: var(--color-brand-navy);
}

.btn-outline:hover {
    background-color: rgba(11, 37, 69, 0.05);
}

.btn-success {
    background-color: #10B981;
    /* Green */
    border-color: #10B981;
    color: white;
}

.btn-error {
    background-color: #EF4444;
    /* Red */
    border-color: #EF4444;
    color: white;
}

/* Layout */
.main-header {
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-link {
    text-decoration: none;
    color: var(--color-brand-navy);
}

.brand-section {
    color: var(--color-text-light);
}

.app-container {
    min-height: 80vh;
}

.view-header {
    margin-bottom: 2rem;
}

/* Dashboard Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
}

.course-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-brand-navy);
}

.course-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-brand-navy);
    transition: width 0.3s ease;
}

/* Course View (Sidebar + Content) */
#course-view {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    #course-view {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.back-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.1s;
}

.sidebar a:hover {
    background: #f3f4f6;
}

.sidebar li.active a {
    background: #e0e7ff;
    color: var(--color-brand-navy);
    font-weight: 600;
}

.sidebar li.done .status-icon {
    color: #10B981;
}

.content-area {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
}

/* Lesson Content Typography */
.lesson-content {
    max-width: 800px;
    margin: 0 auto;
}

.lesson-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-brand-navy);
}

.lesson-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-brand-navy);
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.info-box {
    padding: 1rem;
    border-left: 4px solid var(--color-brand-navy);
    background: #eff6ff;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.info-box.warning {
    border-left-color: #F59E0B;
    background: #fffbeb;
}

.info-box.error {
    border-left-color: #EF4444;
    background: #fef2f2;
}

.info-box.success {
    border-left-color: #10B981;
    background: #ecfdf5;
}

.info-box.example {
    border-left-color: #8B5CF6;
    background: #f5f3ff;
}

/* Quiz Styles */
.question-block {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.option-btn {
    text-align: left;
    justify-content: flex-start;
}