/* ========== BASIS ========== */
html, body {
    height: 100%;
    margin: 0;
    font-size: 15px;
    font-weight:400;
}
.table-responsive {
    overflow-x:visible !important;
}
main {
    flex-grow: 1;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}
.image-option {
    position: relative;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border 0.2s ease, box-shadow 0.2s;
    cursor: pointer;
}

    .image-option:hover {
        border-color: #adb5bd;
    }

    .image-option input[type="radio"] {
        display: none;
    }

    .image-option.selected {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

    .image-option img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

.image-option-caption {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #555;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.text-black{
    color:black;
}
.select2-selection__choice {
    color: #fff !important; /* tekst in geselecteerde badges */
    background-color: #6366F1 !important; /* achtergrond van geselecteerde items */
}
div.logo_wrapper {
    width: 270px;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.session-card-img {
    object-fit: cover;
    width: 100%;
    height: 180px;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.d-flex.flex-grow-1 {
    flex: 1;
}

footer.footer {
    position: relative !important;
    margin-top: auto;
    padding: 1rem 0;
    background-color: #1E1E2F;
    color: azure !important;
    line-height: 30px !important;
}
.table {
    table-layout: auto !important; /* Kolombreedte gebaseerd op inhoud */
    width: 100%;
}
.dropdown-toggle {
    min-width: 100px;
}
    .table > th,
    .table > td {
        max-width: 1px; /* zo klein mogelijk */
        white-space: nowrap; /* alles op één lijn */
        overflow: hidden; /* verberg overflow */
        text-overflow: ellipsis; /* toon '...' bij overflow */
        padding: 0.3rem 0.4rem; /* minimale padding */
        font-size: 0.85rem; /* kleinere tekst */
        vertical-align: middle;
    }

        .table td .btn {
            font-size: 0.75rem;
            padding: 0.25rem 0.4rem;
            white-space: nowrap;
        }

/* ========== SIDEBAR ========== */
.sidebar,
.offcanvas.offcanvas-start {
    background-color: #1E1E2F;
    color: #F4F4F9;
    width: 100vw;
    padding: 1rem;
    height: auto;
}

.offcanvas-body .sidebar-items {
    display: block;
    padding: 0.5rem 1rem;
}

#logo {
    width: 100%;
    height: auto;
}

#privacy {
    width: 75%;
}

/* ========== NAVIGATIE ========== */
.sidebar-items {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    transition: font-size 0.2s ease-in-out;
}

    .sidebar-items:hover {
        font-size: 1.3rem;
    }

a {
    color: #6366F1;
    text-decoration: none;
}

    a:hover {
        color: #4F46E5;
    }

    a.nav-link {
        font-weight: 500;
        color: black;
    }

    a.text_white {
        color: #F4F4F9;
    }

.nodeco {
    font-size: large;
    font-weight: 300;
    color: #F4F4F9;
    text-decoration: none;
}

    .nodeco:hover {
        color: #F4F4F9;
    }

.no-btn {
    border: none;
    background: transparent;
    font-weight: 400;
    color: white;
}

/* ========== COMPONENTEN ========== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary {
    background-color: #6366F1;
    border-color: #6366F1;
}

    .btn-primary:hover {
        background-color: #4F46E5;
        border-color: #4F46E5;
    }

.btn-sm i,
.card .btn i {
    margin-right: 4px;
}

/* ========== KAARTEN ========== */
.card {
    background-color: #2A2E3F;
    border: 1px solid #3F3F57;
    color: #F4F4F9;
}

.card-body {
    background-color: #2A2E3F;
    border: 1px solid #3F3F57;
}

    .card > h4, label,
    .card-body > h3, p,
    h4 {
        color: azure;
    }

.card .form-label {
    font-weight: 500;
}

/* ========== LOGIN ========== */
.login-card {
    width: 100vw;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    background-color: #2A2E3F;
}

.login-logo {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ========== KLEUREN ========== */
.bg-blue {
    background-color: #1E1E2F;
}

/* ========== TABELLEN ========== */
.table {
    width: 100%;
    border-radius: 6px;
    table-layout: auto;
}

    .table th,
    .table td {
        white-space: nowrap;
        text-overflow: ellipsis;        
        padding: 0.4rem 0.6rem;
        
    }

    .table th {
        background-color: #f8f9fa;
    }

    .table td {
        background-color: white !important;
        color: black !important;
    }

        .table td .btn {
            white-space: nowrap;
        }

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}
.ck-editor__editable_inline>p {
    color: #000 !important;
    background-color: #fff !important;   
}
.ck-editor__editable_inline> h4 > i {
    color: #000 !important;
    background-color: #fff !important;
}
.ck-editor__editable p {
    margin-bottom: 0.5rem; /* of 0.75rem voor iets meer ruimte */
}
.ck-editor__editable p {
    margin-top: 0;
    margin-bottom: 0.5rem; /* kleiner dan standaard ~1rem */
}

.ck-editor__editable {
    line-height: 1.5;
}
/* ========== MEDIA QUERIES ========== */
@media (max-width: 480px) {
    .login-card {
        width: 98vw;
        margin: 0 auto;
    }

    .card {
        margin: 1rem;
    }

    main {
        padding: 1rem;
    }

    .sidebar {
        flex-direction: column;
        width: 100vw;
        height: auto;
    }

    .sidebar-items {
        font-size: 1rem;
        padding: 0.25rem;
    }

    #reservationChart,
    #privacy {
        width: 100%;
    }

    .session-card-img {
        height: 140px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .form-control {
        font-size: 0.85rem;
    }

    h2, h5 {
        font-size: 1.25rem;
    }

    .table thead {
        font-size: 0.8rem;
    }

    .table td,
    .table th {
        padding: 0.3rem;
        font-size: 0.85rem;
    }

    .table-sm th,
    .table-sm td {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
}

@media (min-width: 481px) and (max-width: 767px) {
    .login-card {
        width: 85%;
    }

    .card {
        margin-bottom: 1rem;
    }

    main {
        padding: 1.5rem;
    }

    .sidebar-items {
        font-size: 1rem;
    }

    .sidebar,
    .offcanvas.offcanvas-start {
        width: 100%;
    }

    #reservationChart,
    #privacy {
        width: 100%;
    }

    .session-card-img {
        height: 140px;
    }

    table.table {
        border: 0;
    }
   
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar,
    .offcanvas.offcanvas-start {
        width: 300px;
    }

    .login-card {
        width: 70%;
    }

    .card {
        margin: 1rem auto;
    }

    main {
        padding: 2rem;
    }

    .login-card {
        width: 25vw;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .card {
        font-size: 0.95rem;
    }

    .sidebar-items {
        font-size: 1rem;
    }

    .sidebar,
    .offcanvas.offcanvas-start {
        width: 300px;
    }

    .login-card {
        width: 25vw;
    }
}

@media (min-width: 1281px) {
    .sidebar,
    .offcanvas.offcanvas-start {
        width: 300px;
    }

    .login-card {
        width: 25vw;
    }

    #reservationChart {
        width: 50%;
        margin: 0 auto;
    }
}

@media print {
    body {
        font-size: 10pt;
        color: #000;
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    table {
        white-space: nowrap;
        font-size: 9pt;
    }

    th, td {
        padding: 4px 6px;
        font-size: 9pt;
        border: 1px solid #000;
    }

    thead {
        display: table-header-group;
    }

    tr, td, th {
        page-break-inside: avoid !important;
    }

    .container, .row, .card, main {
        padding: 0;
        margin: 0;
    }   
    nav.sidebar{
        display:none !important;
    }
    td, th, table, tr {
        padding: 0 0 0 5px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}
/*STATISTIEK*/
.stat-flex-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    flex: 1 1 100%; /* standaard volledig op mobiel */
}

@media (min-width: 768px) {
    .stat-card {
        flex: 1 1 calc(33.333% - 1rem);
    }
}

@media (min-width: 992px) {
    .chart-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .chart-card {
        flex: 1 1 48%;
    }
}

canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
}