/* Velserbroek Rooster Plugin Styles - All classes prefixed with vbr- to avoid conflicts */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;600;700&display=swap');

/* === UTILITIES === */
.vbr-hidden {
    display: none !important;
}

/* === WRAPPER & CONTAINER === */
.vbr-rooster-wrapper {
    background-color: #000;
    padding: 170px 0 60px;
}

@media (max-width: 768px) {
    .vbr-rooster-wrapper {
        padding: 20px 0 60px;
    }
}

.vbr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === HEADER === */
.vbr-header {
    margin-top: 60px;
    margin-bottom: 40px;
}

.vbr-header h1 {
    font-family: "Encode Sans", sans-serif !important;
    font-size: 60px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.2 !important;
}

/* === FILTERS === */
.vbr-filters {
    display: none;
}

.vbr-filters select {
    border: 1px solid #000;
    font-size: 18px;
    font-family: "Encode Sans", sans-serif;
    font-weight: 600;
    height: 56px;
    width: 335px;
    box-sizing: border-box;
    text-indent: 36px;
    text-transform: uppercase;
}

.vbr-select-text {
    text-transform: uppercase;
    font-size: 15px;
    font-family: "Encode Sans", sans-serif;
    color: #fff;
    margin: 20px 0;
    display: none;
}

/* === WEEK TOGGLE === */
.vbr-weeks {
    margin-bottom: 20px;
}

.vbr-filter-btn {
    border: none;
    background-color: transparent;
    font-size: 15px;
    text-transform: uppercase;
    font-family: "Encode Sans", sans-serif;
    font-weight: 300;
    padding: 0;
    color: #0851DF;
    text-decoration: underline;
    cursor: pointer;
}

.vbr-filter-btn.vbr-active {
    color: #fff;
    text-decoration: none;
}

/* === DAYS SELECTOR === */
.vbr-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.vbr-days input[type="radio"] {
    display: none;
}

.vbr-day {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #0851DF !important;
    color: #fff !important;
    height: 56px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    font-family: "Encode Sans", sans-serif !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    background: transparent !important;
}

.vbr-day.vbr-active {
    background-color: #0851DF !important;
    color: #fff !important;
}

.vbr-date-planning {
    font-size: 15px;
    color: #fff;
    font-family: "Encode Sans", sans-serif;
    text-transform: uppercase;
    display: block;
    margin: 20px 0;
}

/* === WEEK NAVIGATION === */
.vbr-week-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.vbr-week-nav h3 {
    color: #fff;
    font-size: 20px;
    font-family: "Encode Sans", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 30px;
    line-height: 30px;
}

.vbr-week-nav button {
    color: #0851DF;
    font-size: 30px;
    border: none;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
}

/* === LESSON BLOCKS === */
.vbr-lesson {
    background-color: #EDEDED;
    padding: 9px;
    display: grid;
    grid-template-columns: 100px 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 10px;
    font-family: "Encode Sans", sans-serif;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vbr-lesson:hover {
    background-color: #e0e0e0;
}

.vbr-lesson.vbr-active {
    background-color: #91aee9;
}

.vbr-lesson-img {
    border-radius: 18px;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.vbr-lesson-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.vbr-lesson-time .vbr-time {
    color: #0851DF;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}

.vbr-lesson-time .vbr-duration {
    color: #505050;
    font-size: 18px;
    text-transform: uppercase;
}

.vbr-lesson-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.vbr-lesson-title {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 30px;
}

.vbr-lesson-location {
    color: #505050;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 30px;
}

.vbr-lesson-arrow {
    color: #0851DF;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

/* === WEEK DATE HEADERS === */
.vbr-weekday-date {
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    display: block;
    margin: 30px 0 15px;
    font-family: "Encode Sans", sans-serif;
}

/* === POPUP === */
.vbr-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vbr-popup.vbr-hidden {
    display: none !important;
}

.vbr-popup-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.vbr-popup-content {
    position: relative !important;
    background-color: #fff !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    z-index: 100000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.vbr-popup-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    background-color: #0851DF !important;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100001 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.vbr-popup-close:hover {
    background-color: #063da8 !important;
}

.vbr-popup-close span {
    font-size: 28px !important;
    line-height: 1 !important;
    color: #fff !important;
}

.vbr-popup-body {
    padding: 60px 40px 40px !important;
}

.vbr-popup-title {
    margin: 0 0 15px 0 !important;
    font-size: 32px !important;
    color: #000 !important;
    font-family: "Encode Sans", sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.vbr-popup-time {
    margin-bottom: 10px;
}

.vbr-popup-time .vbr-time {
    color: #0851DF;
    font-family: "Encode Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 20px;
}

.vbr-popup-time .vbr-duration {
    color: #505050;
    font-family: "Encode Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.vbr-popup-location {
    display: block;
    color: #505050;
    font-family: "Encode Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.vbr-popup-description {
    color: #000;
    font-family: "Encode Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 25px;
}

.vbr-popup-actions {
    margin-top: 20px;
}

.vbr-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #0851DF !important;
    color: #fff !important;
    font-family: "Encode Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    height: 56px !important;
    padding: 0 30px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.vbr-btn-primary:hover {
    background-color: #063da8 !important;
    color: #fff !important;
}

/* === DAGPAS POPUP === */
.vbr-dagpas-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.vbr-dagpas-popup-inner {
    background-color: #fff;
    width: 50%;
    height: 100%;
    position: fixed;
    right: 0;
    padding: 50px;
    overflow-y: auto;
}

.vbr-dagpas-popup-inner label {
    color: rgb(55 65 81);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    flex-wrap: nowrap;
}

.vbr-dagpas-popup-inner input[type="text"],
.vbr-dagpas-popup-inner select {
    height: 43px;
    width: 100%;
    border: 2px solid rgb(209 213 219);
    border-radius: 5px;
    font-size: 18px;
    font-family: "Encode Sans", sans-serif;
    font-weight: 600;
    padding: 0 10px;
}

.vbr-dagpas-popup-inner input[type="text"].vbr-invalid {
    border: 2px solid red;
}

.vbr-dagpas-popup-inner select {
    text-indent: 15px;
}

/* === CHECKBOX STYLING === */
.vbr-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none !important;
}

.vbr-checkbox-label {
    display: flex !important;
    flex-wrap: nowrap !important;
    cursor: pointer;
    font-size: 14px;
}

.vbr-checkbox:checked + .vbr-checkbox-label::before {
    background-color: #0851DF;
    content: "\2713";
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0851DF;
}

.vbr-checkbox-label::before {
    content: "";
    display: block;
    min-width: 24px;
    height: 24px;
    border: 2px solid rgb(209 213 219);
    margin-right: 10px;
}

.vbr-checkbox-label.vbr-invalid::before {
    border: 2px solid red;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .vbr-header h1 {
        font-size: 36px !important;
    }

    .vbr-days {
        grid-template-columns: 1fr;
    }

    .vbr-week-nav h3 {
        font-size: 14px;
        margin: 0 15px;
    }

    .vbr-lesson {
        grid-template-columns: 80px 1fr auto;
    }

    .vbr-lesson-img {
        width: 80px;
        height: 80px;
    }

    .vbr-lesson-info {
        display: none;
    }

    .vbr-popup-content {
        width: 95% !important;
        max-height: 90vh !important;
    }

    .vbr-popup-body {
        padding: 50px 20px 20px !important;
    }

    .vbr-popup-title {
        font-size: 24px !important;
    }

    .vbr-dagpas-popup-inner {
        width: 90%;
        padding: 20px;
    }
}
