/* ==========================================================================
@import (Font Awesome + Google Fonts) — altijd bovenaan
========================================================================== */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Cascade layers (SMACSS) */
@layer base, layout, modules, theme, state, utilities, responsive;

/* ==========================================================================
reset
========================================================================== */

/* Avoid `all: unset` — it's too destructive for third-party widgets.
   Use targeted resets so components can still inherit expected defaults. */
#login-cont,
#welcome {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keep images responsive and predictable */
#welcome img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
BASE (fonts, icons, elementaire defaults)
========================================================================== */
@layer base {

    /* Variables & root colors */
    :root {
        --yellow: #fdeb99;
        --lightyellow: #fffcf7;
        --gb-zwart: #1F0538;
        --purple: #631d6e;
        --blue: #221166;
        --white: #fff;
    }

    /* --- Globaal: apply Poppins to base elements, not to every node --- */
    /* Avoid using * which forces Font Awesome and third-party widgets to inherit; */
    /* target structural elements instead (inputs/buttons/etc.) and remove !important. */
    html,
    body,
    input,
    button,
    textarea,
    select,
    a {
        font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    /* --- Uitzonderingen: Font Awesome moet z'n eigen font houden --- */
    /* v6 "families" + v5 aliassen; plaats DIT ná de *-regel */
    .fa,
    .fas,
    .far,
    .fal,
    .fat,
    .fad,
    .fab,
    /* v5/v6 aliassen */
    .fa-solid,
    .fa-regular,
    .fa-light,
    .fa-thin,
    /* v6 stijlklassen */
    .fa-duotone,
    .fa-brands {
        font-style: normal !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Solid (Free/Pro) */
    .fas,
    .fa-solid,
    .fa {
        /* .fa als fallback */
        font-family: "Font Awesome 6 Free" !important;
        /* of "Font Awesome 6 Pro" */
        font-weight: 900 !important;
    }

    /* Regular (Free/Pro) */
    .far,
    .fa-regular {
        font-family: "Font Awesome 6 Free" !important;
        /* of "Font Awesome 6 Pro" */
        font-weight: 400 !important;
    }

    /* Brands */
    .fab,
    .fa-brands {
        font-family: "Font Awesome 6 Brands" !important;
        font-weight: 400 !important;
    }

    /* (optioneel) Light/Thin/Duotone alleen als je Pro gebruikt
.fa-light  { font-family:"Font Awesome 6 Pro" !important; font-weight:300 !important; }
.fa-thin   { font-family:"Font Awesome 6 Pro" !important; font-weight:100 !important; }
.fa-duotone{ font-family:"Font Awesome 6 Duotone" !important; font-weight:900 !important; }
*/

    /* Zorg dat pseudo-elementen de juiste font-family erven */
    .fa::before,
    .fas::before,
    .far::before,
    .fal::before,
    .fat::before,
    .fad::before,
    .fab::before,
    .fa-solid::before,
    .fa-regular::before,
    .fa-light::before,
    .fa-thin::before,
    .fa-duotone::before,
    .fa-brands::before {
        font-family: inherit !important;
        font-weight: inherit !important;
    }
}

/* <-- Close @layer base */


/* ==========================================================================
LAYOUT (grote pagina-secties/structuur)
========================================================================== */
@layer layout {

    .sc-fpaRTa.iTmfKK,
    .MuiContainer-root .MuiContainer-maxWidthLg .stream-ui-1u5t03o,
    [data-testid="dashboard-content-block-511"] {
        width: 100% !important;
        /* beide vullen de container */
        max-width: 100% !important;
    }

    #stream-container {
        position: absolute !important;
        top: 26% !important;
    }

    /* Simplify #login-cont: avoid duplicate background declarations and reduce !important use.
       If a stricter override is required, prefer increasing selector specificity rather than !important. */
    #login-cont {
        position: unset !important;
        width: 50% !important;
        min-height: 450px;
        height: auto !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 2% auto !Important;
        background-color: var(--white);
        box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.5);
    }

    .container.list-content {
        padding-top: 1px;
    }

    .grouped-course-view {
        width: 75%;
    }

    .grouped-course-view .row {
        display: flex;
    }

    .grouped-course-view .levels-container {
        display: flex;
        flex-wrap: wrap
    }

    .grouped-course-view .row .span4 {
        width: 50% !important;
    }

    .grouped-course-view .row .span8 {
        width: 50% !important;
    }

    .banner-list {
        position: relative;
        top: -5vh;
    }

    #Dashboard_Banner,
    #the-stage-cont {
        margin-top: 1%;
    }

    #Dashboard_Banner {
        background-position: center !important;
        background-size: contain !important;
        position: relative;
        background-repeat: no-repeat;
        padding-bottom: 13% !important;
    }

    html,
    body,
    .stream-ui-5qg6c {
        clip-path: inherit !important;
    }



    .stream-ui-1u5t03o>[data-testid="status-bar-container"] {
        display: block;
        /* of inline/flex afhankelijk van behoefte */
    }

    .dpeTxz {
        height: 100% !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}


/* ==========================================================================
MODULES (component-specifiek)
========================================================================== */
@layer modules {


    #welcome {
        background: none !important;
        float: none !important;
        padding: 0 !important;
        text-align: center !important;
        margin: 2rem !important;
        width: 55% !important;
    }


    #form-cont #form-inner {
        padding: 5% 10px !important;
        background-color: initial;
        border-radius: unset;
    }

    #gamebar {
        border-top: unset !important;
    }

    .sc-bWWQYT.ckonbR {
        max-width: inherit !important;
    }

    [data-testid="statuses-launchButton"] {
        max-height: 10%;
    }

    [data-testid="statuses-courseName"] {
        white-space: normal !important;
        max-width: 90% !important;
    }

    .course-banner-container {
        margin-bottom: 0px !important;
    }

    .dmlhlp> :first-child {
        padding-top: 0px !important;
    }

    .card .section {
        border-bottom: unset !important;
    }

    .heading-large {
        padding: 5px !important;
    }

    .img-circle {
        -webkit-border-radius: 0px !important;
        -moz-border-radius: 0px !important;
        border-radius: 0px !important;
    }

    .card.card-flat .section[style*="max-height: 300px"] {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .jss39.jss43.jss40.level-card,
    .card,
    .kiwaJv,
    .gYlXIP {
        -webkit-border-radius: 0px !important;
        -moz-border-radius: 0px !important;
        border-radius: 0px !important;
        box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.5) !important;
    }

    /* Gevraagde aanvulling voor banner image */
    .banner-list .course-banner-container .course-banner-img {
        padding: 13% !important;
        background-size: contain !important;
    }
    .stream-ui-1tsn705{
       line-height: 2rem !important;
    }
    .sc-cPIbRQ.gzMzcM {
       padding: 5px !important;
    }
}


/* ==========================================================================
THEME (kleuren/achtergronden)
========================================================================== */
@layer theme {

    /* Pagina-achtergrond (niet breed op alle children) */
    html,
    body {
        background-color: var(--lightyellow) !important;
    }

    /* Gerichte achtergrondtint zoals origineel */
    #stream-container,
    .sc-fpaRTa,
    .sc-cfQIsQ,
    .sc-jneFjB,
    .sc-cBBlDJ,
    .banner-list .course-banner-container .course-banner-img,
    .dmlhlp> :first-child,
    .flGLJw,
    #form-inner .text-center,
    .jhxEdq> :first-child,
    .jhxEdq > :first-child
    .gbKCmM> :first-child:not(.MuiAlert-root),
    .sc-cLNonn.crDmBm,
    .stream-ui-5qg6c,
    .jayLbL> :first-child,
    .IpanL> :first-child:not(.MuiAlert-root),
    .ehtKSG> :first-child,
    .gVazUC,
    .ioXkJK,
    .MuiBox-root.stream-ui-130f8nx,
    .dmKSIB,
    .FytiU> :first-child,
    .iBgeaJ> :first-child:not(.MuiAlert-root),
    .UmFLF> :first-child {
        background-color: var(--lightyellow) !important;
    }

    .sc-cLNonn.crDmBm {
        background: none !important;
    }

    .back-link {
        color: var(--gb-zwart) !important;
    }

    svg.sc-bcXHqe.cCDhpY, .sc-cPIbRQ.gzMzcM  {
       background-color: var(--blue) !important;
       color: var(--lightyellow) !important;
    }

}


/* ==========================================================================
STATE (zichtbaarheid/toestanden)
========================================================================== */
@layer state {

    /* Alles wat je niet wil laten zien komt hier */
    .MuiContainer-root.MuiContainer-maxWidthLg.stream-ui-1k27770-font {
        display: none;
    }

    .grouped-course-view .section-header {
        display: none !important;
    }

    .fuRExX,
    .kuEzUY,
    #actions-menu,
    #NavBar_SearchButtonMobile,
    #NavBar_AddFocusAreaButton,
    #NavBar_UserMenuContainer_ListItem_my-team,
    #NavBar_UserMenuContainer_ListItem_my-reports,
    #NavBar_UserMenuContainer_ListItem_archive,
    .stream-ui-1gj8hnm,
    #nudge-region,
    #welcome-text,
    span#obj-nudge,
    .kwjdhw {
        display: none !important;
    }

    .stream-ui-fete8q {
        display: none !important;
    }

    .level-group-box .header,
    .level-group-box .instruction {
        display: none !important;
    }

    #course-leaderboards-button,
    #course-back-button {
        display: none !important;
    }

    .level-progress-container,
    .status {
        display: none !important;
    }

    .object-item .item-progress,
    #object-viewer-description {
        display: none !important;
    }

    .object-item .item-description .contents,
    .grouped-course-view .level-group-box .levels-container .level-item .img-full-width {
        -webkit-border-radius: 0px !important;
        -moz-border-radius: 0px !important;
        -ms-border-radius: 0px !important;
        border-radius: 0px !important;
        background: var(--white) !important;
    }

.level-item {
    min-width: 180px !important;
}

    .object-item .card.complete .xp {
        display: none !important;
    }

    #course-completion-panel {
        display: none !important;
    }

    .admin-wrapper .btn.btn-primary:nth-of-type(2) {
        display: none !important;
    }

    ul.MuiList-root.MuiList-padding.stream-ui-1ontqvh li:first-child {
        display: none;
    }

    
    [aria-label="Support"] {
        visibility: hidden;
    }

    [data-testid="info-lx"] {
        display: none !important;
    }

    /* Deze stond in je originele "Styling & Layout", maar is semantisch staat */
    .class-info-panel .card.card-flat .section:nth-of-type(3) {
        display: none !important;
    }
}


/* ==========================================================================
UTILITIES (kleine helpers)
========================================================================== */
@layer utilities {
    .ieyrg {
        font-size: 1rem !important;
    }
}


/* ==========================================================================
RESPONSIVE (media queries onderaan)
========================================================================== */
@layer responsive {
    @media (max-width: 767px) {
        #login-cont {
            width: 90% !important;
            min-height: 60vh;
            /* prettige hoogte op mobiel */
            height: auto !important;
        }

        #form-cont {
            overflow: inherit !important;
        }

        .grouped-course-view {
            width: 100vw !important;
        }

        .grouped-course-view .row {
            display: unset !important;
            width: 0 !important;
        }
        .grouped-course-view .row .span4 {
            width: 100vw !important;
         }
         .class-info-panel {
             width: 100vw !important;
         }
    }

    @media (min-width: 600px) {
        .dpeTxz {
            margin: 0 !important; 
            width: auto !important;
            height: auto !important;
        }
    }
}


/* Laptop (bijvoorbeeld 1024px tot 1440px breed) */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
    .grouped-course-view {
        width: 100% !important;
    }

    /* Stack the levels and force full width on their columns */
    .grouped-course-view .levels-container {
        display: flex !important;
        /* allow children to flow vertically */
    }

    /* Override earlier flex on .row so each block becomes its own row */
    .grouped-course-view .row {
        display: block !important;
    }

    /* Make both span4 and span8 occupy full width and add breathing room */
    .grouped-course-view .row .span4,
    .grouped-course-view .row .span8 {
        width: 100% !important;
        margin-bottom: 1.25rem;
    }


    body .sc-kTxHUi.gjRoSl,
    body .sc-hbqYmb.faSVOw {
        max-width: 100% !important;
    }
}

/* iPhone (bijvoorbeeld tot 480px breed) */
@media screen and (max-width: 480px) {}

/* Desktop (groter dan 1440px breed) */
@media screen and (min-width: 1441px) {}

/* Tablet (bijvoorbeeld tussen 481px en 1023px breed) */
@media screen and (min-width: 481px) and (max-width: 1023px) {}