@charset "UTF-8";

:root {
    /* Pastel Backgrounds */
    --pastel-bg: #fdfbf7;
    --pastel-primary: #a8d5e2;
    --pastel-primary-hover: #96c4d1;
    --pastel-secondary: #f9a8d4;
    --pastel-success: #bbf7d0;
    --pastel-success-hover: #86efac;
    --pastel-warning: #fef08a;
    --pastel-info: #bfdbfe;

    /* Bold Colorful Button Palette (Splash/Lang focus) */
    --color-1: #ffb3ba;
    --color-2: #ffdfba;
    --color-3: #ffffba;
    --color-4: #baffc9;
    --color-5: #bae1ff;
    --color-6: #e0baff;
    --color-7: #ffbdf0;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 20px;
    --border-radius-sm: 12px;
}

body.theme-spring {
    background-color: #f0fdf4;
    /* Spring green base */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.fw-bold {
    font-weight: bold;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-100 {
    height: 100%;
}

.flex-wrap {
    flex-wrap: wrap;
}

.d-flex {
    display: flex !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.list-item-action {
    margin-left: auto !important;
}

.hidden {
    display: none !important;
}

/* --- App Layout (Sidebar + Content) --- */
#app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Sidebar Styles */
#main-sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
}

#main-sidebar.hidden {
    display: none !important;
}

/* Overlay for Mobile sidebar */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 150;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background-color: var(--pastel-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.4rem;
    margin: 0;
    flex-grow: 1;
}

.mobile-close {
    display: none;
    border: none;
    font-size: 1.4rem;
}

.sidebar-nav {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: var(--text-main);
    transform: translateX(5px);
}

.nav-item.active {
    background-color: var(--pastel-primary);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(168, 213, 226, 0.4);
}

.nav-item .icon {
    font-size: 1.3rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Main Content Wrapper */
#main-content {
    flex-grow: 1;
    margin-left: 280px;
    /* Sidebar width */
    width: calc(100% - 280px);
    transition: margin-left 0.3s, width 0.3s;
    display: flex;
    flex-direction: column;
}

#main-content.full-width {
    margin-left: 0;
    width: 100%;
}

/* Header inside Main Content */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

header.hidden {
    display: none !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin: 0 auto;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-main);
}

.user-badge {
    background-color: var(--pastel-warning);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    color: #854d0e;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-badge:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: scale(0.97);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 28px;
    font-size: 1.15rem;
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--pastel-primary);
    color: #0f172a;
}

.btn-primary:hover {
    background-color: var(--pastel-primary-hover);
}

.btn-success {
    background-color: var(--pastel-success);
    color: #166534;
}

.btn-success:hover {
    background-color: var(--pastel-success-hover);
}

.btn-info {
    background-color: var(--pastel-info);
}

.btn-secondary {
    background-color: #e2e8f0;
}

.btn-outline {
    border: 2px solid #cbd5e1;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.btn-logout {
    padding: 10px 16px;
    font-size: 0.95rem;
    background-color: #dc2626;
    color: #fff;
    border: 2px solid #b91c1c;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25);
}

.btn-logout:hover {
    background-color: #b91c1c;
    color: #fff;
    border-color: #991b1b;
}

.sidebar-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-lang-label {
    font-weight: 700;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Sections & Container */
section {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
}

.full-width {
    width: 100%;
    display: block;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.card-title {
    font-size: 1.35rem;
    color: var(--text-main);
}

.splash-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

/* Header layout (Logo left, EU right) */
.splash-header {
    width: 100%;
}

.eu-band.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background-color: transparent;
    padding: 10px 0;
    box-shadow: none;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.splash-header-right {
    margin-left: auto;
    order: 2;
}

.eu-band.header-layout img:last-of-type {
    order: 3;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    padding: 32px 28px !important;
}

.auth-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.auth-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.auth-lang-row label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.header-select-inline {
    max-width: 160px;
    padding: 10px 12px !important;
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.auth-dot {
    color: #94a3b8;
}

.link-btn {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.link-btn:hover {
    color: #0369a1;
}

.header-select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
}

.header-select-light {
    background: rgba(255, 255, 255, 0.95);
}

.welcome-inspiration-image {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Parent ASK/SAY: wider layout than default 1100px container */
.container-parent-wide {
    max-width: 1240px;
    width: 100%;
}

.parent-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.parent-tab {
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.parent-tab:hover {
    border-color: #cbd5e1;
    color: #334155;
}

.parent-tab.active {
    background: var(--pastel-primary);
    border-color: var(--pastel-primary);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(168, 213, 226, 0.45);
}

.carousel-shell {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: clamp(20px, 4vw, 48px) clamp(4px, 1vw, 12px);
    perspective: 1400px;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.5vw, 28px);
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
    flex: 0 1 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.carousel-card img {
    display: block;
    width: 100%;
    height: clamp(220px, 36vw, 380px);
    object-fit: cover;
}

/* Side previews: smaller, faded */
.carousel-card.side {
    opacity: 0.4;
    flex: 0 0 22%;
    max-width: 340px;
    min-width: 120px;
    filter: grayscale(0.15) blur(0.6px);
    z-index: 1;
    cursor: pointer;
}

.carousel-card.carousel-card--left {
    transform: scale(0.84) rotateY(14deg);
    transform-origin: center right;
}

.carousel-card.carousel-card--right {
    transform: scale(0.84) rotateY(-14deg);
    transform-origin: center left;
}

.carousel-card.center {
    flex: 0 0 50%;
    max-width: min(680px, 56vw);
    min-width: min(100%, 280px);
    opacity: 1;
    transform: scale(1.04);
    filter: none;
    z-index: 3;
    cursor: default;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.14), 0 12px 24px rgba(168, 213, 226, 0.25);
}

.carousel-arrow {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--pastel-primary);
    border-color: var(--pastel-primary);
}

@media (max-width: 900px) {
    .carousel-card.side {
        flex: 0 0 20%;
        max-width: 200px;
        min-width: 72px;
    }

    .carousel-card.center {
        flex: 0 0 54%;
        max-width: none;
    }

    .carousel-card.carousel-card--left {
        transform: scale(0.8) rotateY(10deg);
    }

    .carousel-card.carousel-card--right {
        transform: scale(0.8) rotateY(-10deg);
    }

    .carousel-card img {
        height: clamp(180px, 42vw, 280px);
    }
}

@media (max-width: 520px) {
    .carousel-shell {
        gap: 8px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .carousel-card.side {
        flex: 0 0 18%;
        min-width: 56px;
        opacity: 0.35;
    }

    .carousel-card.center {
        flex: 1 1 58%;
        min-width: 0;
        transform: scale(1);
    }

    .carousel-card.carousel-card--left {
        transform: scale(0.78) rotateY(8deg);
    }

    .carousel-card.carousel-card--right {
        transform: scale(0.78) rotateY(-8deg);
    }

    .carousel-card img {
        height: clamp(160px, 48vw, 240px);
    }
}

.eu-logo-placeholder {
    width: 60px;
    height: 40px;
    background-color: #003399;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    flex-shrink: 0;
}

.eu-text {
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: right;
}

.splash-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.project-info-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.project-title {
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 10px;
}

.project-code {
    display: inline-block;
    background-color: var(--pastel-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #0f172a;
}

.splash-footer {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    padding-bottom: 20px;
    text-align: center;
}

.splash-footer .project-info-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.splash-footer .project-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.splash-footer .project-subtitle {
    font-size: 1.1rem;
    margin-top: 5px;
    margin-bottom: 10px;
}

.splash-footer .project-code {
    margin-top: 10px;
    margin-bottom: 10px;
}

.splash-footer .project-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

.language-selection-box {
    width: 100%;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn-lang {
    padding: 25px 15px;
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 800;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.btn-lang:hover {
    transform: translateY(-5px) scale(1.02);
}

.btn-color-1 {
    background-color: var(--color-1);
}

.btn-color-2 {
    background-color: var(--color-2);
}

.btn-color-3 {
    background-color: var(--color-3);
}

.btn-color-4 {
    background-color: var(--color-4);
}

.btn-color-5 {
    background-color: var(--color-5);
}

.btn-color-6 {
    background-color: var(--color-6);
}

.btn-color-7 {
    background-color: var(--color-7);
}


/* === 3. Dashboard === */
.season-badge {
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: inline-block;
    margin-bottom: 25px;
}

.card.inspiration-card {
    background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 45%, #e0f2fe 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 36px 28px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.35rem;
}

.inspiration-card__head {
    order: 1;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.inspiration-card__figure {
    order: 2;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
    line-height: 0;
}

.inspiration-card__quote {
    order: 3;
    margin: 0;
    padding: 0 0.5rem;
    border: none;
    flex-shrink: 0;
}

.inspiration-card__tag-row {
    order: 4;
    margin: 0;
    flex-shrink: 0;
}

.card.inspiration-card::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 7rem;
    line-height: 1;
    color: rgba(168, 213, 226, 0.35);
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
    z-index: 1;
}

.quote-text {
    font-size: 1.6rem;
    font-style: italic;
    color: #1e293b;
    line-height: 1.45;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tag-primary {
    color: #0284c7;
}

.weather-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 0;
}

.weather-btn:hover {
    background: #f1f5f9;
}

.weather-btn.active {
    background: #eff6ff;
    border-color: var(--pastel-primary);
}

.radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.weather-btn.active .radio-circle {
    border-color: var(--pastel-primary);
    background: var(--pastel-primary);
}

.weather-btn.active .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

textarea.form-control,
input.form-control,
select.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #f8fafc;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: var(--pastel-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(168, 213, 226, 0.3);
}

/* === 4. Tracker === */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #334155;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.progress-bar-container {
    width: 100%;
    height: 32px;
    background-color: #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #86efac 0%, #22c55e 100%);
    border-radius: 16px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e293b;
    font-weight: bold;
    font-size: 0.95rem;
    text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.challenge-card {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: none;
}

/* Challenge list: one full-width row per challenge (col-12 style) */
.challenge-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.challenge-item:hover {
    transform: translateY(-2px);
}

.challenge-text {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 500;
}

.challenge-item.completed {
    background: #e2e8f0;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.challenge-item.completed .challenge-text {
    text-decoration: line-through;
    color: #64748b;
}

/* === 5. Library === */
.library-filter-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
}

.library-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    row-gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 52px;
}

.library-categories::-webkit-scrollbar {
    height: 6px;
}

.library-categories::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.category-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: #64748b;
}

.category-btn:hover {
    border-color: #94a3b8;
    color: #334155;
}

.category-btn.active {
    background: var(--pastel-primary);
    border-color: var(--pastel-primary);
    color: #0f172a;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.library-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.tag-video {
    background-color: var(--pastel-secondary);
    color: #831843;
}

.tag-pdf {
    background-color: var(--pastel-info);
    color: #1e3a8a;
}

.tag-jpeg {
    background-color: var(--pastel-primary);
    color: #082f49;
}

/* === 6. Profile === */
.role-block {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
    background-color: #fff;
}

.checklist-items label {
    display: flex;
    align-items: flex-start;
    padding: 8px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist-items label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.checklist-items label span {
    line-height: 1.4;
    flex-grow: 1;
}

.checklist-items label:hover {
    background-color: #e2e8f0;
    padding-left: 10px;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === Media Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-box {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay:not(.hidden) .modal-content-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.media-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    min-height: 150px;
}

/* Specific Media Types inside modal */
.media-wrapper img,
.media-wrapper video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.media-wrapper audio {
    width: 100%;
    max-width: 400px;
}

/* Custom minimal audio player to completely hide download features (controlsList="nodownload" does most, but let's assure visual) */
audio::-webkit-media-controls-enclosure {
    border-radius: 30px;
    background-color: var(--pastel-primary);
    color: #0f172a;
}

audio::-webkit-media-controls-panel {
    background-color: var(--pastel-primary);
}


/* === RESPONSIVE RULES (Mobile First Fixes) === */
@media (max-width: 950px) {

    /* Mobile Sidebar Activation */
    #main-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    #main-sidebar.mobile-open {
        transform: translateX(0);
    }

    #main-sidebar.mobile-open .mobile-close {
        display: block;
    }

    #main-content {
        margin-left: 0;
        width: 100%;
    }

    .header-container {
        padding: 15px 20px;
    }

    .mobile-toggle {
        display: inline-block;
    }

    /* Grids & Typography downscales */
    .container {
        padding: 20px;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    /* Splash Fixes */
    .eu-band {
        padding: 12px 15px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .splash-content-wrapper {
        padding: 15px 0;
        gap: 25px;
    }

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .btn-lang {
        padding: 15px 10px;
        font-size: 1.1rem;
    }

    /* Widget Fixes */
    .quote-text {
        font-size: 1.4rem;
    }

    .card.inspiration-card::before {
        font-size: 5rem;
        top: 4px;
        left: 10px;
    }

    .card.inspiration-card {
        padding: 28px 18px 32px;
        gap: 1.1rem;
    }

    .weather-btn {
        min-width: 45%;
        padding: 15px 5px;
        font-size: 2rem;
    }


    /* Card Paddings */
    .card {
        padding: 20px;
    }

    .card.inspiration-card {
        padding: 28px 18px 32px;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    /* Modal Fixes */
    .modal-content-box {
        padding: 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {

    /* Super small phones */
    .language-grid {
        grid-template-columns: 1fr;
    }

    /* Stack languages to 1 column on tiny screens */
    .project-title {
        font-size: 1.7rem;
    }

    .weather-btn {
        min-width: 100%;
    }
}

/* === Toast Notification System === */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #15803d;
}

/* Custom Modal System (Bottom Sheet for Mobile) */
.custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.custom-modal .modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.custom-modal .modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 25px;
    border-radius: 24px 24px 0 0;
    z-index: 10;
    animation: slideUp 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 768px) {
    .custom-modal {
        align-items: center;
    }
    .custom-modal .modal-content {
        border-radius: 20px;
        animation: scaleIn 0.3s ease-out;
    }
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Style the language buttons inside the modal like a native app list */
.custom-modal .language-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.custom-modal .btn-lang {
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: none !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transform: none !important;
}

.custom-modal .btn-lang:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.custom-modal .btn-lang::after {
    content: "›"; 
    color: #94a3b8;
    font-size: 1.6rem;
    font-weight: 400;
}

/* Parent prompt full-screen image */
#parent-image-lightbox .parent-lightbox-inner {
    position: relative;
    max-width: min(96vw, 960px);
    padding: 48px 16px 16px;
    background: #0f172a;
    text-align: center;
}
#parent-image-lightbox .parent-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    color: #e2e8f0;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}
#parent-image-lightbox #parent-image-lightbox-img {
    max-width: 100%;
    max-height: min(85vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
