@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Premium sticky header with glassmorphism */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.header-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.header-brand:hover {
    transform: scale(1.02);
}

.header-brand img {
    height: 48px;
    width: auto;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title-main {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.1;
}

.header-title-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #1e40af;
    background: rgba(30, 66, 175, 0.05);
}

.nav-link.active {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    font-weight: 600;
}

/* Offset for anchor links so they aren't hidden behind the sticky header */
#lesoverzicht {
    scroll-margin-top: 104px;
    /* header height + comfortable breathing room */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-header h2 {
    margin: 0;
}

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

.dashboard-user-line {
    font-size: 12px;
    color: #475569;
    line-height: 1.2;
}

.dashboard-logout-btn {
    width: auto;
    margin: 0;
}

.tabs-card {
    padding: 12px;
}

.tab-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tab-button {
    width: auto;
    margin: 0;
    margin-bottom: 0;
}

.tab-button.active {
    background: #1e3a8a;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-weight: 700;
    color: #1e293b;
}

h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child) {
    margin-top: 32px;
}

h1 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #475569;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.92rem;
}

label.checkbox-label {
    font-weight: normal;
}

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

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
    padding-right: 46px;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

select:hover {
    border-color: #94a3b8;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

button,
.tab-button,
.inline-buttons a {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.tab-button:hover,
.inline-buttons a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

button:active,
.tab-button:active,
.inline-buttons a:active {
    transform: translateY(0);
}

/* Ensure SVG icons inside buttons/links match the button text color */
button svg,
.tab-button svg,
.nav-login-btn svg,
.delete-icon-btn svg,
.inline-buttons a svg,
.wa-group-link svg,
[class*="-btn"] svg,
[class*="button"] svg {
    color: inherit;
}

button svg[stroke],
.tab-button svg[stroke],
.nav-login-btn svg[stroke],
.delete-icon-btn svg[stroke],
.inline-buttons a svg[stroke],
.wa-group-link svg[stroke],
[class*="-btn"] svg[stroke],
[class*="button"] svg[stroke] {
    stroke: currentColor;
}

button svg[fill],
.tab-button svg[fill],
.nav-login-btn svg[fill],
.delete-icon-btn svg[fill],
.inline-buttons a svg[fill],
.wa-group-link svg[fill],
[class*="-btn"] svg[fill],
[class*="button"] svg[fill] {
    fill: currentColor;
}

button svg[fill="none"],
.tab-button svg[fill="none"],
.nav-login-btn svg[fill="none"],
.delete-icon-btn svg[fill="none"],
.inline-buttons a svg[fill="none"],
.wa-group-link svg[fill="none"],
[class*="-btn"] svg[fill="none"],
[class*="button"] svg[fill="none"] {
    fill: none;
}

.inline-buttons {
    display: flex;
    gap: 12px;
}

.inline-buttons a {
    margin-bottom: 0;
}

.form-home-link {
    margin: 0 0 16px;
}

.form-home-link a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.form-home-link a:hover {
    color: #1e40af;
    text-decoration: underline;
}

a.form-home-link-anchor {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

a.form-home-link-anchor:hover {
    text-decoration: underline;
}

.notice {
    padding: 16px;
    border-radius: 10px;
    /* margin-top: 16px; */
    font-weight: 500;
}

.section-gap-top {
    margin-top: 24px;
}

.notice.ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notice.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

table {
    border-collapse: collapse;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
}

th,
td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:nth-child(even) td {
    background: #f8fafc;
}

.name-column {
    white-space: normal;
    overflow-wrap: anywhere;
}

.member-child-name {
    font-weight: 700;
    color: #0f172a;
}

.member-child-birthdate {
    font-weight: normal;
    color: #64748b;
}

.today-column {
    background: #fef9c3 !important;
}

label input[type="radio"] {
    width: auto;
    margin: 0 8px 0 0;
}

input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
}

.attendance-save-indicator {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #64748b;
    min-width: 70px;
}

.attendance-save-indicator.saving {
    color: #0f172a;
}

.attendance-save-indicator.saved {
    color: #166534;
}

.attendance-save-indicator.error {
    color: #991b1b;
}

.attendance-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-collapse: separate;
    border-spacing: 0;
}

.attendance-table th,
.attendance-table td {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.attendance-table tr:first-child th {
    border-top: 1px solid #e2e8f0;
}

.attendance-table th:first-child,
.attendance-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #ffffff;
    white-space: nowrap;
    overflow-wrap: normal;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #cbd5e1;
}

.attendance-table th:first-child {
    background: #e2e8f0;
    z-index: 11;
}

#trainer-admin-login-row {
    text-align: right;
    margin-top: 24px;
}

#trainer-admin-login-row a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

#trainer-admin-login-row a:hover {
    color: #334155;
    text-decoration: underline;
}

#overview-grid {
    margin-bottom: 2rem;
}

#member-logout-link {
    margin-left: 0.5rem;
}

/* Overview page lesson list link styling */
.overview-lessons-table td a {
    color: #1d4ed8;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.overview-lessons-table td a:hover {
    color: #1e3a8a;
    text-decoration: none;
}

.overview-lessons-table td .invite-only-label {
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .overview-lessons-table tr:first-child {
        display: none;
    }

    .overview-lessons-table td {
        text-align: center !important;
    }



    .mobile-stack-table {
        width: 100%;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

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

    .mobile-stack-table tr {
        display: block;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        background: none;
    }

    .mobile-stack-table td {
        display: block;
        border: 0;
        padding: 8px 10px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mobile-stack-table tr td:first-child,
    .mobile-stack-table td.name-column {
        font-weight: 700;
        text-align: center;
        padding-top: 14px;
        padding-bottom: 8px;
    }

    .mobile-stack-table .member-child-name {
        font-size: 1.25rem;
        display: inline-block;
        margin-bottom: 2px;
        color: #0f172a;
    }

    .mobile-stack-table .member-child-birthdate {
        font-size: 1rem;
        display: inline-block;
    }

    .mobile-stack-table tr td:first-child::before {
        font-weight: 600;
    }

    .mobile-stack-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #334155;
        display: none;
    }

    .mobile-stack-table tr:nth-child(even) td {
        background: none;
    }

    table.no-mobile-stack {
        display: table !important;
        width: 100% !important;
    }

    .no-mobile-stack tr {
        display: table-row !important;
        border: none !important;
        margin-bottom: 0 !important;
        background: none !important;
    }

    .no-mobile-stack th {
        display: table-cell !important;
    }

    .no-mobile-stack td {
        display: table-cell !important;
        border: 1px solid #e2e8f0 !important;
        padding: 12px !important;
    }

    .no-mobile-stack td::before {
        display: none !important;
    }
}

.child-info-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.child-info-box-label {
    font-size: 0.875rem;
    color: #475569;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.child-info-box-name {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.demo-banner {
    background-color: #eff6ff;
    color: #1e40af;
    border-bottom: 1px solid #bfdbfe;
    padding: 10px 24px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.admin-container {
    max-width: 100%;
}

/* History page style specific overrides */
.history-img-container {
    text-align: center;
    margin: 24px 0;
}

.history-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.history-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Info page list and layout styling */
.info-step-list {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}

.info-step-item {
    position: relative;
    padding-left: 54px;
}

.info-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #bfdbfe;
}

.info-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.info-step-desc {
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
}

.info-accordion-item {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-accordion-item:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.info-accordion-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-accordion-answer {
    margin-top: 10px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Header action buttons and toggle classes */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.menu-toggle-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: auto;
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Login icon: hidden on desktop, shown on mobile */
.login-icon {
    display: none;
    flex-shrink: 0;
}

/* Login text: shown on desktop */
.login-text {
    display: inline;
}

/* Style for login link as a premium button */
.nav-login-btn {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.15);
    transition: all 0.2s ease;
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
    box-shadow: 0 6px 12px -1px rgba(29, 78, 216, 0.25);
    transform: translateY(-1px);
}

.nav-menu {
    margin-left: auto;
}

.nav-overlay {
    display: none;
}

.nav-menu-close-row {
    display: none;
}


/* Mobile responsive navigation styles */
@media (max-width: 870px) {
    .header-title-sub {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        position: relative;
        z-index: 95;
    }

    .nav-overlay {
        display: none !important;
    }

    .nav-overlay.open {
        display: none !important;
    }

    .menu-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* Primary button style on mobile */
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
        color: #fff;
        border-radius: 10px;
        padding: 0 16px;
        height: 40px;
        box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2);
        box-sizing: border-box;
        line-height: 1;
    }

    /* Demote login link to secondary/outlined on mobile */
    .nav-login-btn {
        background: transparent;
        color: #1d4ed8 !important;
        border: 1.5px solid #1d4ed8;
        border-radius: 10px !important;
        box-shadow: none;
        padding: 0 14px;
        height: 40px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        line-height: 1;
    }

    .nav-login-btn:hover {
        background: rgba(29, 78, 216, 0.06) !important;
        box-shadow: none;
        transform: none;
    }

    /* Mobile: hide icon, show text */
    .login-icon {
        display: none;
    }

    .login-text {
        display: inline;
        position: relative;
        top: -2px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        z-index: 200;
        margin: 0;
        padding: 0 0 48px 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    /* Header bar inside the fullscreen menu */
    .nav-menu-close-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 1;
    }

    .nav-menu-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
    }

    .nav-menu-logo img {
        height: 48px;
        width: auto;
    }

    .menu-close-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: 1.5px solid #1d4ed8;
        border-radius: 10px;
        cursor: pointer;
        color: #1d4ed8;
        font-size: 0.9rem;
        font-weight: 600;
        font-family: inherit;
        line-height: 1;
        padding: 0 14px;
        height: 40px;
        box-sizing: border-box;
        transition: background 0.15s ease;
        margin-bottom: 0px;
    }

    .menu-close-btn:hover {
        background: rgba(29, 78, 216, 0.06);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 13px 24px;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-link.active {
        background: rgba(29, 78, 216, 0.07);
        color: #1d4ed8;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px 16px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Dropdown menu styling */
@media (min-width: 769px) {
    .nav-menu li.dropdown-item {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        min-width: 200px;
        z-index: 100;
        list-style: none;
        margin: 8px 0 0 0;
    }

    .dropdown-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent #ffffff transparent;
    }

    /* Invisible bridge to prevent closing on hover gap */
    .dropdown-menu::after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }

    .dropdown-menu li {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .dropdown-menu li a {
        display: block;
        padding: 7px 14px;
        margin-right: 4px;
        color: #475569;
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .dropdown-menu li a:hover {
        background-color: #f1f5f9;
        color: #1d4ed8;
    }

    .dropdown-menu li a.active {
        background-color: rgba(29, 78, 216, 0.08);
        color: #1d4ed8;
        font-weight: 600;
    }

    .dropdown-item:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .dropdown-toggle {
        display: block !important;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8 !important;
        padding: 20px 24px 6px 24px;
        pointer-events: none;
        border-radius: 0;
        background: none !important;
    }

    .dropdown-toggle span {
        display: none;
    }

    .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
        transform: none !important;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        display: block;
        padding: 11px 24px 11px 36px;
        font-size: 0.97rem;
        font-weight: 500;
        color: #475569;
        text-decoration: none;
        border-radius: 0;
    }

    .dropdown-menu li a:hover {
        background: rgba(29, 78, 216, 0.06);
        color: #1d4ed8;
    }

    .dropdown-menu li a.active {
        background: rgba(29, 78, 216, 0.08);
        color: #1d4ed8;
        font-weight: 600;
    }
}

/* Overview Top Grid (Attendance Chart & Recent Emails side-by-side) */
.overview-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .overview-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage top grid layout (Welkom + Ledenomgeving side-by-side) */
.home-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .home-top-grid {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .home-top-grid .card {
        margin-bottom: 20px !important;
    }

    .video-thumbnail-container {
        width: 100%;
    }
}

/* Homepage bottom grid layout (Hoe werkt + Meer side-by-side) */
.home-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.home-bottom-grid ul li {
    margin-bottom: 6px;
}

.home-bottom-grid ul li a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.home-bottom-grid ul li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .home-bottom-grid .card {
        margin-bottom: 20px !important;
    }
}

/* Video Thumbnail in Welcome Card */
.video-thumbnail-container {
    position: relative;
    width: 65%;
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-thumbnail-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.video-thumbnail-container:hover .video-thumbnail {
    opacity: 0.95;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(29, 78, 216, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-thumbnail-container:hover .video-play-btn {
    background: #1d4ed8;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 800px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-wrapper {
    transform: scale(1);
}

.video-modal-content {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) scale(1.1);
}

.video-modal-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Trial indicator dot in attendance list */
.trial-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    /* Amber/orange color for trial */
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

/* Dynamic margins for homepage notification blocks */
#msg,
#homepage-announcement {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
}

/* Remove padding for the homepage msg notice block, except when success/error classes are present */
#msg.notice {
    padding: 0 !important;
    border-radius: 0 !important;
}

#msg.notice.ok,
#msg.notice.error {
    padding: 16px !important;
    border-radius: 10px !important;
}

.toggle-wel-btn,
.toggle-niet-btn,
.member-absence-btn {
    margin: 0 !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

/* Dialog / Modal Mobile Margin & Responsiveness */
dialog {
    box-sizing: border-box;
    max-width: 540px;
    width: calc(100% - 32px) !important;
    margin: auto !important;
}

@media (max-width: 600px) {
    dialog {
        width: calc(100% - 24px) !important;
        margin: auto !important;
        padding: 18px 16px !important;
        border-radius: 10px !important;
    }
}

/* Sticky Bookmark / Home Screen Bar */
.sticky-bookmark-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    background: #0f172a;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px)) 14px;
    font-size: 0.88rem;
    animation: slideUpBookmarkBar 0.3s ease-out;
}

.sticky-bookmark-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.2;
}

.sticky-bookmark-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.sticky-bookmark-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sticky-bookmark-text {
    font-weight: 500;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bookmark-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sticky-bookmark-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sticky-bookmark-btn:hover {
    background: #1d4ed8;
}

.sticky-bookmark-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-bookmark-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideUpBookmarkBar {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .sticky-bookmark-bar {
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) 10px;
    }
    .sticky-bookmark-text {
        font-size: 0.82rem;
    }
    .sticky-bookmark-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}