@import url('https://fonts.googleapis.com/css?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', 'sans-serif';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --body-color: #E4E9F7;
    --sidebar-color: #FFF;
    --primary-color: #43D0F4;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;

    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

body {
    height: 100vh;
    background: var(--body-color);
    transition: var(--tran-03);
    overflow-y: auto; /* Sta scrollen toe wanneer nodig */
}

body.dark {
    --body-color: #18191A;
    --sidebar-color: #242526;
    --primary-color: #43D0F4;
    --primary-color-light: #3A3B3C;
    --toggle-color: #FFF;
    --text-color: #CCC;
}

/*======= SIDEBAR =======*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    flex: 0 0 250px;
    z-index: 100;
}

.sidebar.close {
    width: 88px;
}

/*====== REUSEABLE ======*/
.sidebar .text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--tran-04);
    white-space: nowrap;
    opacity: 1;
}


.sidebar.close .text {
    opacity: 0;
}


.sidebar .image {
    min-width: 60px;
    max-width: 60px;
    display: flex;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
}
.sidebar .image img {
    max-width: 60px;
    max-height: 60px;
    margin: 10px;
    border-radius: 6px;
}

.sidebar li {
    height: 45px;
    margin-top: 5px;
    list-style: none;
    display: flex;
    align-items: center;

}

.sidebar li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 20px
}

.sidebar li .icon,
.sidebar li .text {
    color: var(--text-color);
    transition: var(--tran-02);
}

.sidebar header {
    position: relative;
}

.sidebar .image-text {
    width: 40px;
    border-radius: 6px;
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
}

header .image-text .header-text {
    display: flex;
    flex-direction: column;
}

.header-text .name {
    font-weight: 600;
}

.header-text .role {
    margin-top: -2px;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sidebar-color);
    font-size: 22px;
    transition: var(--tran-03);
}

.sidebar.close header .toggle {
    transform: translateY(-50%);
}


body.dark .sidebar header .toggle {
    color: var(--text-color);
}

.sidebar .menu {
    /* margin-top: 15px; */
    max-height: 50vh;
}

.bottom-content {
    height: 20vh;
    margin-bottom: 15px;
}

.sidebar .search-box {
    background: var(--primary-color-light);
    border-radius: 6px;
    transition: var(--tran-05);
}

.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

.sidebar li a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--tran-04);
}

.menu-bar .cat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;               /* ruimte tussen tekst en streepjes */
  padding-top: 25px;
  margin-bottom: 0;
  color: var(--text-color);
  white-space: nowrap;     /* zorgt dat titel en streepjes niet in meerdere regels komen */
  opacity: 0.5;
}

/* before/after als flex-children die dashes tonen en bijvullen */
.menu-bar .cat-header::before,
.menu-bar .cat-header::after {
  content: "--------------------------------------------";
  display: block;          /* essentieel: maakt ze tot flex-kinderen */
  flex: 1 1 0%;            /* vullen resterende ruimte */
  overflow: hidden;        /* verbergt overtollige tekens */
  white-space: nowrap;     /* geen wrapping */
  line-height: 1;          /* vertical align */
  opacity: 0.8;
  color: #999;             /* kleur van de streepjes */
  font-family: monospace;  /* optioneel: maakt streepjes gelijkmatig */
  font-size: 14px;         /* pas naar wens aan */
}

.sidebar li a:hover {
    background: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
    color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
    color: var(--text-color);
}

.sidebar .menu-bar {
    height: calc(100% - 75px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-bar .menu .menu-links {
    overflow-y: auto;
    overflow-x: hidden;
    height: 60vh;
}

ul.menu-links::-webkit-scrollbar {
    display: none;
}

.menu-bar .mode {
    position: relative;
    border-radius: 6px;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

.menu-bar .mode .moon-sun {
    height: 50px;
    width: 60px;
    display: flex;
    align-items: center;
}

.menu-bar .mode i {
    position: absolute;
    transition: var(--tran-03);
}

.menu-bar .mode i.sun {
    opacity: 0;
}

body.dark .menu-bar .mode i.sun {
    opacity: 1;
}

body.dark .menu-bar .mode i.moon {
    opacity: 0;
}

.menu-bar .mode .toggle-switch {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 60px;
    cursor: pointer;
    border-radius: 6px;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 44px;
    border-radius: 25px;
    background: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background: var(--sidebar-color);
    transition: var(--tran-03);
}

body.dark .switch::before {
    left: 24px;
}

.home {
    position: relative;
    left: 250px;
    width: calc(100% - 250px);
    background: var(--body-color);
    transition: var(--tran-05);
    min-height: 100vh; /* Zorg ervoor dat het minstens de volledige hoogte is */
    overflow-y: visible; /* Laat content overvloeien */
}

.home .text {
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 40px;
}

.sidebar.close ~ .home {
    left: 88px;
    width: calc(100% - 88px);
    transition: var(--tran-05);
}

.copyright {
    padding: 0;
    margin: 0;
    justify-content: center;
    font-size: small;
    opacity: 0.5;
    color: var(--text-color);
    list-style: none;
}

.requestbox-container {
    display: flex;
    align-items: center;
}

.lock-button {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;

    background-color: white;
    padding: 10px;
    border-radius: 6px;
    margin-left: 10px;
}

.lock-button i {
    margin-right: 5px; /* Afstand tussen het pictogram en de tekst */
}

.container {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px; /* Extra ruimte aan de onderkant */
    overflow-y: auto; /* Maak de container scrollbaar indien nodig */
}

.container .itemBox {
    border-radius: 6px;
    min-width: 200px;
    max-width: calc(100% - 40px);
    padding: 16px;
    margin: 10px;
    color: var(--text-color);
    background: var(--primary-color-light);
}
.container .itemBox-crop {
    border-radius: 6px;
    width: fit-content;
    height: 100px;
    max-width: calc(100% - 40px);
    padding: 20px;
    margin: 10px;
    color: var(--text-color);
    background: var(--primary-color-light);
}
.container .itemBox .icon {
    padding: 35px;
    justify-items: center;
    font-size: xxx-large;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    color: var(--text-color);
}

.itemBox th {
    text-align: left !important;
    padding-right: 50px;
}

button.reqBtn {
    margin: 0;
    margin-right: 15px;
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: medium;
    cursor: pointer;
}


button.kickBtn {
    margin: 0;
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: medium;
    font-weight: bold;
    cursor: pointer;
    background-color: red;
}

#timestampText {
    font-weight: bold;
    font-size: small;
    opacity: 0.5;
}


.requests {
    margin: 5px;
    border-radius: 10px;
    padding-top: 10px;
    text-align: left;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    overflow-y: auto; /* Scrollbaar maken indien nodig */
    padding-bottom: 30px;
}


#requests li{
    padding: 10px;
    /*max-width: 400px;*/
    overflow: hidden;
    margin-bottom: 10px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

#requestsItem{
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left; /* Om de inhoud te centreren */
    overflow-y: auto; /* Sta verticaal scrollen toe indien nodig */
}

#messages, #requestsItem {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left; /* Om de inhoud te centreren */
    max-height: 100%; /* Zorg ervoor dat de berichtencontainer niet hoger wordt dan de parent container */
    overflow-y: auto; /* Sta verticaal scrollen toe indien nodig */
}

#messages li, #requestsItem li {
    padding: 10px;
    /*max-width: 400px;*/
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}


.msgContainer {
    margin: 5px;
    height: 45vh;
    max-height: 45vh;
    border-radius: 10px;
    /* padding: 20px; */
    padding-top: 5px;
    text-align: left;
    /* background-color: rgba(255,255,255,0.13); */
    border-radius: 10px;
    backdrop-filter: blur(10px);
    /* border: 2px solid rgba(255,255,255,0.1); */
    overflow-y: auto; /* Scrollbaar maken indien nodig */
}

.msgInContainer {
    margin: 0;
    padding: 0;
    max-height: 20vh;
    border-radius: 10px;
    /*padding: 20px;*/
    text-align: left;
    /*background-color: rgba(255,255,255,0.13);*/
    border-radius: 10px;
    /*backdrop-filter: blur(10px);*/
    /*border: 2px solid rgba(255,255,255,0.1);*/
    overflow-y: auto; /* Scrollbaar maken indien nodig */
    
}

.msgInContainer input {
    width: 100%;
    height: 100%;
    max-width: 75%;
    padding: 5px;
    margin-right: 10px;
}

#chatinputContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    max-width: 100%; /* Maximale breedte van de moeder div */
    /*background-color: var(--body-color);*/
}

#listenersTableBody td {
    padding-top: 10px;
}

td,th {
    padding-right: 5px;
    font-family: 'Courier New', monospace;
}

.eventenContainer h3 {
    padding-left: 10px;
}
.eventenContainer li {
    list-style: none;
    padding-left: 10px;
}

.eventenContainer table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.eventenContainer th, .eventenContainer td {
    border: none;
    padding-left: 30px;
    text-align: left;
}

/*
.eventenContainer tr:nth-child(even) {
    background-color: #f9f9f9;
}

.eventenContainer tr:hover {
    background-color: #ddd;
}*/

.downloadlist, .downloadlist a {
    list-style: none;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}



/* Alleen voor de tabel met de 'adminActiveUsers' class */
.adminActiveUsers {
    border-collapse: collapse;
}

/* Achtergrondkleur voor de kop */
.adminActiveUsers th {
    background-color: #f4f4f4;
}

/* Minimum breedte voor cellen in de tabel */
.adminActiveUsers td {
    min-width: 30px;
}

/* Zorg ervoor dat de cijfers rechts uitgelijnd zijn */
.adminActiveUsers td:nth-child(3), .adminActiveUsers td:nth-child(4), .adminActiveUsers td:nth-child(5) {
    text-align: right;
}


/* Mobiele menu */
.mobile-menu {
    display: none;
    flex-wrap: wrap; /* Toegevoegd om items naar een nieuwe regel te laten gaan */
    justify-content: space-around; /* Verdeelt items gelijkmatig over de ruimte */
    /*align-items: center;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(86, 86, 86, 0.8);
    z-index: 1000;
}

.mobile-menu a {
    display: flex; /* Maak het menu-item een flex-container */
    flex-direction: column; /* Plaats de icoon boven de tekst */
    align-items: center; /* Centreer de inhoud van het menu-item */
    justify-content: center;
    margin: 10px;
    padding: 20px;
    width: calc(50% - 20px); /* Bereken de breedte om twee items naast elkaar te plaatsen */
    text-align: center;
    background: var(--body-color);
    box-shadow: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
}

.mobile-menu a i {
    margin-bottom: 5px; /* Ruimte tussen het icoon en de tekst */
}


.mobile-menu .logout {
    width: 100%; /* Neemt volledige breedte in beslag */
}


@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}

.djcontrol {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.djcontrol .djcontrol-box {
    display: flex;    
    flex-direction: column;
    width: 40%;
}

.djcontrol-box button {
    margin: 0;
    margin-top: 5px;
    width: 100%;
}

/* Stijlen voor de container van een DJ-slot in de editor */
.slot-container {
    display: flex;
    flex-direction: column; /* Plaats elementen onder elkaar */
    align-items: stretch;   /* Rek elementen uit over de breedte */
    justify-content: center; /* Centreer verticaal in de cel */
    gap: 2px;               /* Kleinere ruimte tussen de elementen */
    padding: 2px;
    height: 100%;
    overflow: hidden;       /* Verberg content die buiten het slot valt */
    white-space: nowrap;    /* Voorkom dat tekst naar een nieuwe regel gaat */
    text-overflow: ellipsis; /* Voeg '...' toe als tekst te lang is */
}

/* Specifieke stijlen voor de elementen binnen het slot om afkappen te garanderen */
.slot-container .dj-selector-style,
.slot-container .program-name-display {
    width: 100%;             /* Zorg dat het element de volledige breedte van de container gebruikt */
    display: block;          /* Noodzakelijk voor text-overflow */
    white-space: nowrap;     /* Voorkom dat tekst naar een nieuwe regel gaat */
    overflow: hidden;        /* Verberg de overschrijdende tekst */
    text-overflow: ellipsis; /* Toon '...' als de tekst te lang is */
    text-align: center;      /* Centreer de tekst binnen het element */
}

/* Stijlen voor de programmanaam in de editor */
.program-name-display {
    font-size: 0.75em;
    color: var(--text-color);
    opacity: 0.8;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.program-name-display:hover {
    background-color: rgba(128, 128, 128, 0.2);
}

.ql-toolbar.ql-snow {
    background-color: cadetblue;
}

.kick-button {
    padding: 10px;
    color: white;
    background-color: red;
    border-radius: 3px;
    border-width: 0px;
    font-weight: bold;
}

/* Verberg sidebar en toon mobiele menu op kleinere schermen */
@media (max-width: 768px) {
    td, th {
        font-size: small;
        padding-right: 30px;
        white-space: nowrap; /* Voorkomt afbreken van tekst */
    }

    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* Voor soepel scrollen op iOS */
    }

    table {
        /* width: 100%; /* Voorkom dat de tabel buiten de container valt */
        /* min-width: 500px; /* Zorg ervoor dat de tabel breed genoeg blijft om te scrollen */
        min-height: 50px;
        table-layout: auto; /* Kolommen worden dynamisch aangepast */
    }

    .sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        background: var(--primary-color);
        color: var(--text-color);
        border: none;
        padding: 10px;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        z-index: 1001;
    }

    .mobile-menu.open {
        display: flex;
        overflow-x: auto;
        padding-bottom: 50px;
        padding-top: 50px;
        padding-left: 10px;
        padding-right: 10px;

    }

    .home {
        width: 100vw;
        padding: 10px;
        left: 0;
    }
    
    .home .text {
        padding: 10px;
    }

    .container {
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container .itemBox {
        width: 100vw;
        max-width: 90vw;
        /* overflow: hidden; */
    }

    .onlyDesktop {
        display: none;
    }
}