* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
}

ul, li {
  list-style-position: inside;
}

h3 {
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
}

h3 span{
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
}

button {
  border: none;
  background: #265f82;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: background .3s ease;
}

button:hover {
  border: none;
  background: #1F4C69;
  color: white;
  padding: 10px;
}

button:disabled {
  cursor: default;
  background: #698ea5;
}

.centered-form {
  display: flex;
  align-items: center;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  background: url(/public/img/star-sky.jpg);
}
.centered-form-chat {
  display: flex;
  align-items: center;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  background: url(/public/img/background_chat.jpg);
    background-size:cover;
}

.centered-form__form {
  background: rgba(250, 250, 250, 0.9);
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  padding: 0px 20px;
  margin: 20px;
  width: 230px;
}

.centered-form__form__chat {
  background: rgba(250, 250, 250, 0.9);
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  padding: 0px 20px;
  margin: 20px;
  width: 90%;
  height: 90%;
}

.form-field {
  margin: 20px 0;
}

.form-field > * {
  width: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
}

.form-field input, .form-field select {
  border: 1px solid #e1e1e1;
  padding: 10px;
}

.chat {
  display: flex;
}

.chat__sidebar {
  overflow-y: auto;
  width: 350px;
  height: 95vh;
  background: -moz-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* ff3.6+ */
  background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(49,84,129,1)), color-stop(100%, rgba(39,107,130,1))); /* safari4+,chrome */
  background: -webkit-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* safari5.1+,chrome10+ */
  background: -o-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* opera 11.10+ */
  background: -ms-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* ie10+ */
  background: linear-gradient(325deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* w3c */
}

.chat__sidebar h3 {
  color: #e6eaee;
  margin: 10px 20px;
  text-align: left;
}

.chat__sidebar ul {
  list-style-type: none;
}

.chat__sidebar li {
  background: #e6eaee;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  padding: 10px;
  margin: 10px;
}

.chat__main {
  background: #36393e;
    
  display: flex;
  flex-direction: column;
  height: 95vh;
  width: 100%;
  word-break: break-all;
}

.chat__messages {
  flex-grow: 1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.chat__footer {
  background: #e6eaee;
  display: flex;
  padding: 10px;
  /*height: 60px;*/
  flex-shrink: 0;
}

.chat__footer form {
  flex-grow: 1;
  display: flex;
}

.chat__footer form * {
  margin-right: 10px;
}

.chat__footer input {
  border: none;
  padding: 10px;
  flex-grow: 1;
}

.chat__messages {
  list-style-type: none;
  padding: 10px;
}

.message {
  padding: 10px;
  border-bottom: solid 1px hsla(0,0%,100%,.04);
}

.message__title {
  display: flex;
  margin-bottom: 5px;
}

.message__title h4 {
    color:#fff;
  font-weight: 600;
  margin-right: 10px;
}

.message__body {
    color: hsla(0,0%,100%,.7);
    padding-left: 40px;
}

.message__title span {
  color: hsla(0,0%,100%,.2);
}

@media (max-width: 600px) {
  * {
    font-size: 1rem;
  }

  .chat__sidebar {
    display: none;
  }
    .chat__fiches {
    display: none;
  }

#admin-form{
    display: none;
}
#fontSlider{
    display: none;
}

  .chat__footer {
    flex-direction: column;
  }

  .chat__footer form {
    margin-bottom: 10px;
  }

  .chat__footer-DISABLED button {
    margin-right: 0px;
  }
}

.message__logo{
    background-image: url(/public/img/logoPol.png);
    background-size: 40px 40px;
    height: 40px;
    width: 40px;
    float: left;
    margin-top: 10px;
    margin-right: 10px;
    padding: 10px;   
}

.chat__header_custom{
  height: 5vh;
    background-color: #333;
}

/* Navigation css */

.navUL {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

.navLI {
    float: left;
}
.navLI label {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navLI a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navLI a:hover {
    background-color: #111;
}

.logoutStyle{
    float: right;
    padding-top: 3px;
    padding-right: 20px;
}

.rooms-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    -ms-flex-direction: column;
    -ms-flex-negative: 0;
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    background: #1e2124;
    contain: layout;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    width: 85px;
}

.rooms-wrapper .rooms {
    -moz-user-select: none;
    -ms-flex: 1;
    -ms-user-select: none;
    -webkit-box-flex: 1;
    -webkit-user-select: none;
    flex: 1;
    padding: 18px 0;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rooms-wrapper .room-separator {
    background: none;
    height: 2px;
    margin-bottom: 10px;
    position: relative;
    width: 50px;
}
.rooms-wrapper .rooms .room {
    height: 50px;
    position: relative;
    width: 50px;
    z-index: 1;
    margin-bottom: 10px;
}
.rooms-wrapper .rooms .room .room-inner {
    background: rgb(47,49,54);
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 50px;
    overflow: hidden;
    text-align: center;
    position: relative;
    width: 50px;
    height: 50px;
    color: #8e9297;
}

.rooms-wrapper .rooms .room .room-inner-active {
    background: rgb(114,137,218) !important;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 50px;
    overflow: hidden;
    text-align: center;
    color: #fff !important;
    position: relative;
    width: 50px;
    height: 50px;
}

.rooms-wrapper .rooms .room .room-inner a {
    color: #fff;
    display: block;
    height: 50px;
    width: 50px;
}

.rooms-wrapper .rooms .room .avatar-small {
    background-repeat: no-repeat;
    background-size: 50px 50px;
    border-radius: 0;
    height: 50px;
    margin: 0;
    width: 50px;
}
.avatar-small {
    background-size: 30px 30px;
    float: left;
    height: 30px;
    margin-right: 10px;
    margin-top: 6px;
    width: 30px;
}
.avatar-large, .avatar-profile, .avatar-small, .avatar-xlarge, .avatar-xsmall, .avatar-xxlarge {
    background-clip: padding-box;
    background-color: none;
    background-position: 50%;
    border-radius: 50%;
    position: relative;
}

.searchStyle{
    padding-top: 3px;
    float:left;
}

.inputSearchStyle{
    height: 4vh;
    background: #e6eaee;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 10px;
}

.notALink{
    color:inherit;
    text-decoration:none;
    pointer-events:none;
    cursor:text;
}

.chat__fiches {
    overflow-y: auto;
  width: 400px;
  height: 95vh;
  background: -moz-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* ff3.6+ */
  background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(49,84,129,1)), color-stop(100%, rgba(39,107,130,1))); /* safari4+,chrome */
  background: -webkit-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* safari5.1+,chrome10+ */
  background: -o-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* opera 11.10+ */
  background: -ms-linear-gradient(125deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* ie10+ */
  background: linear-gradient(325deg, rgba(39,107,130,1) 0%, rgba(49,84,129,1) 100%); /* w3c */
}

.chat__fiches h3 {
  color: #e6eaee;
  margin: 10px 20px;
  text-align: left;
}

.chat__fiches ul {
  list-style-type: none;
}

.chat__fiches li {
  background: #e6eaee;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  padding: 10px;
  margin: 10px;
}

.material-icons {
  vertical-align: middle;
    margin-right: 5px;
}

.a__fiche {
    margin-left: 20px;
  /*margin: 1em;*/
  display: inline-block;
}
a i {
  vertical-align: middle;
}
a.flex {
  display: inline-flex;
}

/* unvisited link */
a:link {
    color: white;
}

/* visited link */
a:visited {
    color: white;
}

/* mouse over link */
a:hover {
    color: red;
}

/* selected link */
a:active {
    color: white;
}

button.operatie{
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    margin-bottom: 5px;
    width: 90%;
    text-align: left;
    border: none;
    outline: none;
}

button.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    margin-bottom: 5px;
    width: 90%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
button.accordion.active, button.accordion:hover {
    background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
div.panel {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0 10px;
    display: none;
}

button.accordion:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: #777;
    float: right;
    margin-left: 5px;
}

button.accordion.active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
    float:right;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

.inputPersonForm{
    border: 3px solid #f1f1f1;
}

.inputField{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Set a style for all buttons */
#inputSubmitButton {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButton:hover {
    opacity: 0.8;
}

#inputSubmitButtonVoertuig{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonVoertuig:hover {
    opacity: 0.8;
}

#inputSubmitButtonCaravan{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonCaravan:hover {
    opacity: 0.8;
}

#inputSubmitButtonAnswer{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonAnswer:hover {
    opacity: 0.8;
}
#inputSubmitButtonVoorwerp{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonVoorwerp:hover {
    opacity: 0.8;
}

#inputSubmitButtonSettings:hover {
    opacity: 0.8;
}

#inputSubmitButtonSettings{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

#inputSubmitButtonTap{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonTap:hover {
    opacity: 0.8;
}

#inputSubmitButtonOma{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonOma:hover {
    opacity: 0.8;
}

#inputSubmitButtonRccu{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonRccu:hover {
    opacity: 0.8;
}

#inputSubmitButtonOsint{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonOsint:hover {
    opacity: 0.8;
}

#inputSubmitButtonSynthese{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonSynthese:hover {
    opacity: 0.8;
}

#inputSubmitButtonLabo{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonLabo:hover {
    opacity: 0.8;
}

#inputSubmitButtonLabel{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonLabel:hover {
    opacity: 0.8;
}

#inputSubmitButtonBom{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonBom:hover {
    opacity: 0.8;
}

#inputSubmitButtonAnpr{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonAnpr:hover {
    opacity: 0.8;
}

#inputSubmitButtonD1{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonD1:hover {
    opacity: 0.8;
}

#inputSubmitButtonD2{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonD2:hover {
    opacity: 0.8;
}

#inputSubmitButtonD3{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonD3:hover {
    opacity: 0.8;
}

#inputSubmitButtonPlaats{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonPlaats:hover {
    opacity: 0.8;
}

#inputSubmitButtonD4{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonD4:hover {
    opacity: 0.8;
}

#inputSubmitButtonD5{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonD5:hover {
    opacity: 0.8;
}

#inputSubmitButtonItem{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonItem:hover {
    opacity: 0.8;
}

#inputSubmitButtonChoiceLimit{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonChoiceLimit:hover {
    opacity: 0.8;
}

#inputSubmitButtonTeam{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
#inputSubmitButtonTeam:hover {
    opacity: 0.8;
}

.inputContainer {
    padding: 16px;
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
}
img.avatar {
    height: 174px;
    width: 174px;
    
    border-radius: 50%;
}

.personFicheError{
    display:none;
    color:red;
}

#personFicheLink{
    margin-top:10px;
}

#voertuigFicheLink{
    margin-top:10px;
}

#caravanFicheLink{
    margin-top:10px;
}

#voorwerpFicheLink{
    margin-top:10px;
}

#tapFicheLink{
    margin-top:10px;
}

#omaFicheLink{
    margin-top:10px;
}

#rccuFicheLink{
    margin-top:10px;
}

#osintFicheLink{
    margin-top:10px;
}

#laboFicheLink{
    margin-top:10px;
}

#bomFicheLink{
    margin-top:10px;
}

#anprFicheLink{
    margin-top:10px;
}

#plaatsFicheLink{
    margin-top:10px;
}

#d1FicheLink{
    margin-top:10px;
}

#d2FicheLink{
    margin-top:10px;
}

#d3FicheLink{
    margin-top:10px;
}

#d4FicheLink{
    margin-top:10px;
}

#d5FicheLink{
    margin-top:10px;
}

#itemFicheLink{
    margin-top:10px;
}

#teamFicheLink{
    margin-top:10px;
}


.formColumn {
    float: left;
    width: 50%;
}

/* Clear floats after the columns */
.formRow:after {
    content: "";
    display: table;
    clear: both;
}

.modalPerson-content {
    background-color: #fefefe;
    margin: auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
}

.limited{
    margin-left: 5px;
}
.dummy__class{
    
}

.chat__copyright {
  background: #e6eaee;
  display: flex;
  padding: 10px;
  /*height: 60px;*/
  flex-shrink: 0;
}

textarea{
    height: 100%;
    width: 100%;
   -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8++ */
    min-height: 200px;
}

.tableTextArea{
    display: block;
}

.blackbtn {
background-color: #333; /* adds a background colour to the button */
color: #fff; /* changes the text colour */
cursor: pointer; /* changes the mouse on hover */
padding: 5px 20px; /* adds 10px of space to top and bottom of text and 30px of space on either side */ 
}

.blackbtn:hover {
background-color: #fff; /* adds a background hover colour to the button */
color: #333; /* changes the text colour on hover */
}

/*@media (max-width: 768px) {
    * {
    font-size: 1rem;
  }
.chat{
    height: 830px;
}
    .chat__main{
        height: 830px;
    }
  .chat__sidebar {
    display: none;
  }
    .chat__fiches {
    display: none;
  }
    .chat__copyright{
        display: none;
    }

    .chat__header_custom{
        height: 54px;
    }
    .navLI{
        height: 54px;
    }
    .chat__header_custom{
        display:none;
    } 
    #admin-form{
        display: none;
    }
    #fontSlider{
        display: none;
    }
    #logbookSearch:{
        display: none;
    }
    .inputSearchStyle{
        display: none;
    }
    .chat__messages{
        height: 634.88px;
    }
  .chat__footer {
    flex-direction: column;
  }

  .chat__footer form {
    margin-bottom: 10px;
  }

  .chat__footer-DISABLED button {
    margin-right: 0px;
  }
}*/


/* Removed device-specific 414px query - replaced with range-based breakpoints */
.notification-counter{
    position: absolute;
    top: -2px;
    right: 0;
    background-color: rgba(212, 19, 13, 1);
    color: #fff;
    border-radius: 2px;
    padding: 1px 3px;
    font: 12px Verdana;
}

@media (max-width: 1024px) {
  * {
    font-size: 1rem;
  }

    .chat__header_custom{
        height: 7vh;
    }
    .navUL{
        height: 7vh;
    }
    .chat{
        height: 80.15vh;
    }
    .rooms-wrapper{
        height: 80.15vh;
        overflow: auto;
    }
    .chat__main{
        height: 80.15vh;
    }
    .chat__fiches{
        height: 80.15vh;
    }
    
    .modalPerson-content{
        width:80%;
    }
    
  .chat__sidebar {
    display: none;
  }

   /* .chat__header_custom{
        display:none;
    } */
    #admin-form{
        display: none;
    }
    #fontSlider{
        display: none;
    }
    #logbookSearch{
        display: none;
    }
    #chatLink{
        display: flex; 
    }
    #takenLink{
        display: flex; 
    } 
    #targetChartLink{
        display: flex; 
    } 
    #bestandenBox{
        display: flex; 
    } 
    #bestandenHeader{
        display: flex; 
    }
    #articulatie{
        display: flex; 
    }
    #d1FichePanel{
        display: flex; 
    }
    #d2FichePanel{
        display: flex; 
    }
    #d3FichePanel{
        display: flex; 
    }
    #d4FichePanel{
        display: flex; 
    }
    #d5FichePanel{
        display: flex; 
    }
    
    textarea{
        min-height: 120px;
    }
    .modal{
        padding-top: 5px;
    }
    
    html,
    body{
        overscroll-behavior-y:contain;
    }
    
  .chat__footer {
    flex-direction: column;
  }

  .chat__footer form {
    margin-bottom: 10px;
  }

  .chat__footer-DISABLED button {
    margin-right: 0px;
  }
}

.overlay {
    /* Height & width depends oddn how you want to reveal the overlay (see JS below) */    
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
    z-index: 100;
}

.synthese{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.antwoord{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.item{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.dirops{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.intel{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.appui{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

.limit{
    cursor: pointer;
    color: white;
    margin-left: 5px;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
/* ==========================================
   Room Search Modal & Add Button Styles
   ========================================== */

/* Add Room Button */
.add-room-btn {
    width: 50px;
    height: 50px;
    background: rgb(47,49,54);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #8e9297;
    cursor: pointer;
    margin: 18px auto 10px auto;
    transition: background 0.2s, color 0.2s;
}

.add-room-btn:hover {
    background: rgb(114,137,218);
    color: white;
}

/* Modal Overlay */
.room-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.room-modal-content {
    background: #2c3e50;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.room-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #3d5166;
}

.room-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.room-modal-close {
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
}

.room-modal-close:hover {
    color: #e74c3c;
}

.room-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Search Input */
#roomSearchInput {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #1a252f;
    color: white;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#roomSearchInput::placeholder {
    color: #7f8c8d;
}

#roomSearchInput:focus {
    outline: 2px solid #667eea;
}

/* Search Results */
.room-search-results {
    max-height: 400px;
    overflow-y: auto;
    transition: opacity 0.15s ease;
}

.room-search-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #1a252f;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.room-search-item:hover {
    background: #34495e;
}

.room-search-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-right: 12px;
    flex-shrink: 0;
}

.room-search-item-info {
    flex: 1;
    overflow: hidden;
}

.room-search-item-name {
    color: white;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-search-item-desc {
    color: #95a5a6;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-search-item-star {
    color: #7f8c8d;
    font-size: 20px;
    margin-left: 10px;
}

.room-search-item-star.favorited {
    color: #f1c40f;
}

/* Remove favorite button (X on hover) */
.rooms-wrapper .rooms .room .remove-favorite {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    font-size: 12px;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.rooms-wrapper .rooms .room:hover .remove-favorite {
    display: flex;
}

/* No results message */
.no-results {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
}

/* Room search item text */
.room-search-item .room-info {
    flex: 1;
    color: white;
}

.room-search-item .room-info strong {
    color: white;
    font-size: 15px;
}

.room-search-item .room-info small {
    color: #95a5a6;
    font-size: 12px;
}

/* Favorite star */
.favorite-star {
    font-size: 24px;
    color: #555;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.favorite-star:hover {
    color: #f39c12;
}

.favorite-star.active {
    color: #f1c40f;
}

/* Remove favorite button on sidebar */
.remove-favorite {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    display: none;
}

.room:hover .remove-favorite {
    display: block;
}

/* room-inner position relative moved to specific selector */


/* ============================================
   MOBILE-FRIENDLY RESPONSIVE UPDATES v3.0.0-ng
   Target devices: iPhone, Android, Galaxy Tab A2
   ============================================ */

/* Hide default file input, show camera button */
.camera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #7289da;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: white;
    margin-right: 8px;
    flex-shrink: 0;
}

.camera-btn:hover {
    background: #5b6eae;
}

.camera-btn:active {
    background: #4a5d9a;
}

#inpImg {
    display: none;
}

/* Mobile menu toggle button */
.mobile-menu-btn-OLD-FLOATING {
    display: none;
    width: 44px;
    height: 44px;
    background: #7289da;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    bottom: 80px;
    left: 10px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Mobile sidebar overlay - base styles only, activation handled by mobile.css */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* NOTE: .mobile-sidebar-overlay.active rule moved to mobile.css media query
   to prevent overlay showing on desktop */

/* ===== PHONE STYLES (up to 480px) ===== */
@media (max-width: 480px) {
    .mobile-menu-btn-OLD-FLOATING {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .rooms-wrapper {
        position: fixed;
        left: -100px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .rooms-wrapper.mobile-open {
        left: 0;
    }
    
    .chat {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .chat__main {
        width: 100% !important;
        height: calc(100vh - 50px) !important;
    }
    
    .chat__sidebar,
    .chat__fiches {
        display: flex;
    }
    
    .chat__footer {
        padding: 8px !important;
    }
    
    .chat__footer form {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .chat__footer #message {
        flex: 1;
        height: 44px;
        font-size: 16px;
        border-radius: 8px;
        padding: 0 12px;
    }
    
    .chat__footer #btnStuur {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 8px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .chat__footer #labelSelect {
        display: none;
    }
    
    .chat__header_custom {
        height: auto !important;
        min-height: 50px;
    }
    
    .navUL {
        flex-wrap: wrap;
        height: auto !important;
    }
    
    .navLI {
        padding: 8px !important;
    }
    
    .navLI a, .navLI label {
        padding: 8px 12px !important;
        font-size: 14px;
    }
    
    #welcomeTag,
    #searchBox,
    #fontSlider,
    #admin-form {
        display: flex;
    }
    
    .chat__copyright {
        display: flex;
    }
    
    /* Message styling for mobile */
    .chat__messages li {
        padding: 8px 12px !important;
        font-size: 14px;
    }
    
    /* Room modal full screen on mobile */
    .room-modal-content {
        width: 95% !important;
        max-height: 90vh !important;
        margin: 5vh auto;
    }
    
    .room-search-item {
        padding: 12px !important;
        min-height: 44px;
    }
    
    /* Touch-friendly room icons */
    .rooms-wrapper .rooms .room {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .add-room-btn {
        width: 50px;
        height: 50px;
        margin: 12px auto !important;
    }
}

/* ===== LARGE PHONE / SMALL TABLET (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-menu-btn-OLD-FLOATING {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .rooms-wrapper {
        position: fixed;
        left: -100px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .rooms-wrapper.mobile-open {
        left: 0;
    }
    
    .chat {
        width: 100vw !important;
    }
    
    .chat__main {
        width: 100% !important;
        height: calc(100vh - 50px) !important;
    }
    
    .chat__sidebar {
        display: flex;
    }
    
    .chat__fiches {
        display: flex;
    }
    
    .chat__footer form {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .chat__footer #message {
        flex: 1;
        height: 44px;
        font-size: 16px;
    }
    
    .chat__footer #btnStuur {
        height: 44px;
        min-width: 60px;
    }
    
    #welcomeTag,
    #fontSlider {
        display: flex;
    }
}

/* ===== GALAXY TAB A2 PORTRAIT (769px - 850px) ===== */
@media (min-width: 769px) and (max-width: 850px) {
    .rooms-wrapper {
        width: 70px;
    }
    
    .chat__sidebar {
        width: 180px;
    }
    
    .chat__fiches {
        width: 280px;
    }
    
    .chat__main {
        height: calc(100vh - 60px);
    }
    
    .chat__footer #message {
        height: 40px;
    }
    
    .chat__footer #btnStuur {
        height: 40px;
    }
}

/* ===== TABLET LANDSCAPE / SMALL DESKTOP (851px - 1024px) ===== */
@media (min-width: 851px) and (max-width: 1024px) {
    .rooms-wrapper {
        width: 80px;
    }
    
    .chat__sidebar {
        width: 200px;
    }
    
    .chat__fiches {
        width: 300px;
    }
    
    #fontSlider {
        display: flex;
    }
}

/* Ensure touch targets are at least 44px */
button, 
.btn,
select,
.navLI a,
.navLI label,
.room-inner,
.add-room-btn,
.favorite-star {
    min-height: 44px;
    min-width: 44px;
}

/* Improve form inputs for touch */
input[type=text],
input[type=password],
input[type=email],
select {
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Better scrolling on touch devices */
.chat__messages,
.rooms-wrapper,
.room-search-results {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Empty favorites state */
.empty-favorites-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
    color: #8e9297;
}

.empty-favorites-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.empty-favorites-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #dcddde;
}

.empty-favorites-hint {
    font-size: 11px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #72767d;
}

.empty-favorites-btn {
    background: #7289da;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.empty-favorites-btn:hover {
    background: #5b6eae;
}

/* ===== IMPROVED MOBILE PORTRAIT STYLES ===== */

/* Hide mobile-only elements by default */
.mobile-hamburger-li, /* Shown by default, hidden on desktop */
.mobile-users-toggle-li {
    display: flex;
}

.mobile-menu-btn,
.mobile-users-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

/* Mobile portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    /* Show mobile toggle buttons */
    .mobile-hamburger-li, /* Shown by default, hidden on desktop */
    .mobile-users-toggle-li {
        display: flex !important;
        align-items: center;
    }
    
    /* Hide desktop elements */
    #welcomeTag,
    #searchBox,
    #sideBarBtn,
    #takenLink,
    .chat__copyright,
    #settingsIconList {
        display: flex;
    }
    
    /* Compact header */
    .navUL {
        height: auto !important;
        min-height: 50px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 5px;
    }
    
    .navLI {
        padding: 5px 8px !important;
    }
    
    #logoBolob label {
        font-size: 18px;
    }
    
    /* Left sidebar - hidden by default, slide in */
    .rooms-wrapper {
        position: fixed !important;
        left: -80px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 70px !important;
        z-index: 1001;
        transition: left 0.3s ease;
        background: #2f3136;
    }
    
    .rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    /* Right sidebar (users) - hidden by default */
    .chat__sidebar {
        position: fixed !important;
        right: -250px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 200px !important;
        z-index: 1001;
        transition: right 0.3s ease;
        background: #2f3136;
        display: block !important;
    }
    
    .chat__sidebar.mobile-open {
        right: 0 !important;
    }
    
    /* Fiches panel - hide on mobile */
    .chat__fiches {
        display: flex;
    }
    
    /* Main chat area - full width */
    .chat {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .chat__main {
        width: 100% !important;
        height: calc(100vh - 50px) !important;
        margin-left: 0 !important;
    }
    
    /* Messages area */
    .chat__messages {
        padding: 10px !important;
        height: calc(100vh - 150px) !important;
    }
    
    .chat__messages li {
        padding: 8px 10px !important;
        font-size: 14px !important;
        word-break: break-word;
    }
    
    /* Footer - compact input */
    .chat__footer {
        padding: 8px !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #36393f;
        z-index: 100;
    }
    
    .chat__footer table {
        display: none;
    }
    
    .chat__footer form {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .chat__footer #labelSelect {
        display: flex;
    }
    
    .chat__footer #message {
        flex: 1;
        height: 44px;
        font-size: 16px !important;
        border-radius: 8px;
        padding: 0 12px;
        min-width: 0;
    }
    
    .chat__footer #btnStuur {
        width: 60px;
        height: 44px;
        padding: 0;
        border-radius: 8px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .camera-btn {
        font-size: 24px;
        padding: 8px;
        flex-shrink: 0;
    }
    
    /* Overlay for sidebars */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .mobile-sidebar-overlay.active {
        display: block;
    }
    
    /* Room modal */
    .room-modal-content {
        width: 95% !important;
        max-height: 80vh !important;
        margin: 10vh auto;
    }
    
    /* Logout button compact */
    #btnLogout {
        padding: 8px 12px !important;
        font-size: 12px;
    }
}

/* Landscape mode - more relaxed */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-hamburger-li {
        display: flex !important;
        align-items: center;
    }
    
    .rooms-wrapper {
        position: fixed !important;
        left: -80px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    #welcomeTag,
    #searchBox,
    #sideBarBtn {
        display: flex;
    }
}

/* ===== IMPROVED MOBILE LANDSCAPE STYLES ===== */
@media (max-width: 900px) and (orientation: landscape) {
    /* Show mobile toggle buttons */
    .mobile-hamburger-li, /* Shown by default, hidden on desktop */
    .mobile-users-toggle-li {
        display: flex !important;
        align-items: center;
    }
    
    /* Hide desktop elements */
    #welcomeTag,
    #searchBox,
    #sideBarBtn,
    #takenLink,
    #settingsIconList {
        display: flex;
    }
    
    /* Compact header for landscape */
    .chat__header_custom {
        height: 40px !important;
    }
    
    .navUL {
        height: 40px !important;
        min-height: 40px;
        flex-wrap: nowrap;
        padding: 0 5px;
    }
    
    .navLI {
        padding: 3px 8px !important;
    }
    
    #logoBolob label {
        font-size: 16px;
    }
    
    /* Left sidebar - hidden by default */
    .rooms-wrapper {
        position: fixed !important;
        left: -80px !important;
        top: 40px !important;
        height: calc(100vh - 40px) !important;
        width: 70px !important;
        z-index: 1001;
        transition: left 0.3s ease;
        background: #2f3136;
    }
    
    .rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    /* Right sidebar - hidden by default */
    .chat__sidebar {
        position: fixed !important;
        right: -200px !important;
        top: 40px !important;
        height: calc(100vh - 40px) !important;
        width: 180px !important;
        z-index: 1001;
        transition: right 0.3s ease;
        background: #2f3136;
        display: block !important;
    }
    
    .chat__sidebar.mobile-open {
        right: 0 !important;
    }
    
    /* Fiches panel - hide */
    .chat__fiches {
        display: flex;
    }
    
    /* Main chat area - full width */
    .chat {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .chat__main {
        width: 100% !important;
        height: calc(100vh - 40px) !important;
        margin-left: 0 !important;
    }
    
    /* Messages */
    .chat__messages {
        height: calc(100vh - 100px) !important;
        padding: 8px !important;
    }
    
    .chat__messages li {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    /* Footer */
    .chat__footer {
        padding: 5px 8px !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #36393f;
        z-index: 100;
    }
    
    .chat__footer table {
        display: none;
    }
    
    .chat__footer form {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }
    
    .chat__footer #labelSelect {
        display: flex;
    }
    
    .chat__footer #message {
        flex: 1;
        height: 36px;
        font-size: 14px !important;
        border-radius: 6px;
        padding: 0 10px;
    }
    
    .chat__footer #btnStuur {
        width: 50px;
        height: 36px;
        padding: 0;
        border-radius: 6px;
        font-size: 12px;
    }
    
    .camera-btn {
        font-size: 20px;
        padding: 6px;
    }
    
    /* Overlay */
    .mobile-sidebar-overlay {
        top: 40px;
    }
    
    .mobile-sidebar-overlay.active {
        display: block;
    }
    
    /* Copyright */
    .chat__copyright {
        display: flex;
    }
    
    /* Logout button */
    #btnLogout {
        padding: 5px 10px !important;
        font-size: 11px;
    }
    
    /* Language picker compact */
    #languagePick p {
        font-size: 12px;
        margin: 0;
    }
}

/* ===== MOBILE SIDEBAR FIX - Higher specificity with ID selectors ===== */
@media (max-width: 768px) and (orientation: portrait),
       (max-width: 900px) and (orientation: landscape) {
    
    /* Left sidebar - use ID for higher specificity */
    #rooms-wrapper {
        position: fixed !important;
        left: -85px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 85px !important;
        z-index: 1001 !important;
        transition: left 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    /* Show sidebar when empty (no favorites) */
    #rooms-wrapper.show-for-empty {
        left: 0 !important;
    }
    
    /* Right sidebar - use ID for higher specificity */
    #onlineUserColumn {
        position: fixed !important;
        right: -220px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 200px !important;
        z-index: 1001 !important;
        transition: right 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #onlineUserColumn.mobile-open {
        right: 0 !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    #rooms-wrapper {
        top: 40px !important;
        height: calc(100vh - 40px) !important;
    }
    
    #onlineUserColumn {
        top: 40px !important;
        height: calc(100vh - 40px) !important;
    }
}

/* ===== MOBILE FIX - Simplified and consolidated ===== */
@media (max-width: 1024px) {
    /* Show hamburger and users toggle on all mobile/tablet */
    .mobile-hamburger-li {
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-users-toggle-li {
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-menu-btn,
    .mobile-users-btn {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 10px;
    }
    
    /* Left sidebar - hidden off-screen by default */
    #rooms-wrapper {
        position: fixed !important;
        left: -100px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 85px !important;
        z-index: 1001 !important;
        transition: left 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    /* Right sidebar - hidden off-screen by default */
    #onlineUserColumn {
        position: fixed !important;
        right: -250px !important;
        top: 50px !important;
        height: calc(100vh - 50px) !important;
        width: 220px !important;
        z-index: 1001 !important;
        transition: right 0.3s ease !important;
        background: #2f3136 !important;
        display: block !important;
    }
    
    #onlineUserColumn.mobile-open {
        right: 0 !important;
    }
    
    /* Main chat takes full width */
    .chat {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .chat__main {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Hide fiches panel */
    .chat__fiches {
        display: flex;
    }
    
    /* Overlay */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .mobile-sidebar-overlay.active {
        display: block !important;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 1025px) {
    .mobile-hamburger-li,
    .mobile-users-toggle-li {
        display: none !important;
    }
}

/* Mobile footer fix - no orientation restriction */
@media (max-width: 1024px) {
    .chat__footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #36393f !important;
        z-index: 9999 !important;
        padding: 8px !important;
    }
    
    .chat__footer form {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .chat__footer #message {
        flex: 1;
        height: 44px;
        font-size: 16px !important;
    }
    
    #messages {
        padding-bottom: 70px !important;
    }
}

/* Mobile fixes - hide desktop elements, show mobile elements */
@media (max-width: 1024px) {
    #sideBarBtn {
        display: none !important;
    }
    
    .chat__copyright {
        display: none !important;
    }
    
    .mobile-hamburger-li {
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-menu-btn-OLD-FLOATING {
        display: block !important;
        font-size: 28px !important;
        background: transparent !important;
        border: none !important;
        color: white !important;
        cursor: pointer !important;
    }
}

/* Make hamburger visible in header */
.mobile-hamburger-li .mobile-menu-btn {
    position: static !important;
    background: transparent !important;
    color: white !important;
    font-size: 28px !important;
    width: auto !important;
    height: auto !important;
    padding: 5px 10px !important;
    box-shadow: none !important;
}

/* Fix hamburger z-index */
.mobile-hamburger-li {
    z-index: 99999 !important;
    position: relative !important;
}

.mobile-hamburger-li .mobile-menu-btn {
    z-index: 99999 !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.chat__header_custom {
    z-index: 99998 !important;
    position: relative !important;
}

/* Mobile open state for fiches panel */
@media (max-width: 1024px) {
    #chat_fiches {
        position: fixed !important;
        right: -300px !important;
        top: 50px !important;
        width: 250px !important;
        height: calc(100vh - 50px) !important;
        z-index: 10000 !important;
        transition: right 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #chat_fiches.mobile-open {
        right: 0 !important;
    }
}

/* DEFINITIVE MOBILE SIDEBAR RULES - MUST BE AT END */
@media (max-width: 1024px) {
    #rooms-wrapper {
        position: fixed !important;
        left: -100px !important;
        top: 50px !important;
        width: 85px !important;
        height: calc(100vh - 50px) !important;
        z-index: 10000 !important;
        transition: left 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    #chat_fiches {
        position: fixed !important;
        right: -300px !important;
        top: 50px !important;
        width: 250px !important;
        height: calc(100vh - 50px) !important;
        z-index: 10000 !important;
        transition: right 0.3s ease !important;
        background: #2f3136 !important;
    }
    
    #chat_fiches.mobile-open {
        right: 0 !important;
    }
    
    .chat__footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #2f3136 !important;
        padding: 10px !important;
    }
    
    .chat__copyright {
        display: none !important;
    }
    
    #chat_main {
        padding-bottom: 120px !important;
    }
}


/* FIX: Sidebars above header, footer visible */
@media (max-width: 1024px) {
    #rooms-wrapper.mobile-open,
    #chat_fiches.mobile-open {
        z-index: 999999 !important;
    }
    
    .chat__footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99990 !important;
        background: #2f3136 !important;
        padding: 8px !important;
        min-height: 50px !important;
    }
    
    .chat__footer-DISABLED form,
    .chat__footer-DISABLED table,
    .chat__footer-DISABLED input,
    .chat__footer-DISABLED button {
        display: inline-block !important;
        visibility: visible !important;
    }
    
    #message-form {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    #message-form input[name="message"] {
        flex: 1 !important;
        min-width: 0 !important;
    }
}

/* FIX: Mobile footer - only show essential elements */
@media (max-width: 1024px) {
    /* Hide the extra buttons that should stay hidden */
    #osint_btn,
    #nip_btn,
    #send-location,
    #btnBroadcast,
    #markAsImportant,
    #markAsNotConfirmed,
    #markAsConfidential,
    .chat__footer table table,
    .chat__footer tr:nth-child(2),
    .chat__footer tr:nth-child(3) {
        display: none !important;
    }
    
    /* Style the footer properly */
    .chat__footer {
        background: #36393f !important;
        padding: 10px !important;
    }
    
    .chat__footer table {
        background: transparent !important;
    }
    
    /* Message input styling */
    #message-form {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: #40444b !important;
        border-radius: 8px !important;
        padding: 8px !important;
    }
    
    #message-form input[name="message"] {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        color: #dcddde !important;
        font-size: 16px !important;
    }
    
    #message-form #btnStuur {
        background: #5865f2 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        padding: 8px 16px !important;
    }
    
    #labelSelect {
        background: #40444b !important;
        color: #dcddde !important;
        border: none !important;
        max-width: 80px !important;
    }
    
    .camera-btn {
        font-size: 20px !important;
        cursor: pointer !important;
    }
}

/* FINAL FIX: Mobile footer */
@media (max-width: 1024px) {
    .chat__footer {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background: #36393f !important;
        padding: 10px !important;
        min-height: 60px !important;
        max-height: 80px !important;
        overflow: hidden !important;
    }
    
    .chat__footer > table {
        display: block !important;
    }
    
    .chat__footer > table > tbody > tr:first-child {
        display: block !important;
    }
    
    .chat__footer > table > tbody > tr:first-child > td {
        display: block !important;
    }
    
    /* Hide all rows except first */
    .chat__footer > table > tbody > tr:not(:first-child) {
        display: none !important;
    }
}

/* ========== MINIMAL WHATSAPP-STYLE MOBILE UI ========== */
@media (max-width: 1024px) {
    
    /* === TOP BAR - Slim and minimal === */
    .chat__header_custom {
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        background: #1a1d21 !important;
        z-index: 99998 !important;
    }
    
    .navUL {
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Hide everything in nav except hamburger */
    .navUL > li {
        display: none !important;
    }
    
    /* Show only hamburger */
    .navUL > li.mobile-hamburger-li {
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-menu-btn {
        font-size: 24px !important;
        padding: 8px 12px !important;
        background: transparent !important;
        border: none !important;
        color: #dcddde !important;
    }
    
    /* Room name in header */
    #roomNameDisplay {
        display: block !important;
        flex: 1 !important;
        text-align: center !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        padding-right: 40px !important;
    }
    
    /* === CHAT AREA - Full height === */
    .chat {
        height: calc(100vh - 45px) !important;
        padding-bottom: 60px !important;
    }
    
    #chat_main {
        height: calc(100vh - 105px) !important;
        padding-bottom: 70px !important;
    }
    
    .chat__messages {
        padding: 10px !important;
        padding-bottom: 80px !important;
    }
    
    /* === WHATSAPP BUBBLES === */
    .message {
        display: flex !important;
        flex-direction: column !important;
        max-width: 80% !important;
        margin: 4px 10px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        background: #2a2d32 !important;
        float: left !important;
        clear: both !important;
    }
    
    .message.message--own {
        background: #054640 !important;
        float: right !important;
        margin-left: auto !important;
    }
    
    .message__logo {
        display: none !important;
    }
    
    .message__title {
        font-size: 12px !important;
        color: #8e9297 !important;
        margin-bottom: 2px !important;
    }
    
    .message__body {
        font-size: 14px !important;
        color: #dcddde !important;
        word-wrap: break-word !important;
    }
    
    .message__createdAt {
        font-size: 10px !important;
        color: #72767d !important;
        text-align: right !important;
        margin-top: 4px !important;
    }
    
    /* === BOTTOM BAR - Minimal === */
    .chat__footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
        background: #1a1d21 !important;
        padding: 8px 10px !important;
        z-index: 99999 !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    
    /* Hide the table structure */
    .chat__footer > table {
        display: none !important;
    }
    
    /* Hide copyright */
    .chat__copyright {
        display: none !important;
    }
    
    /* === LEFT SIDEBAR with Logout === */
    #rooms-wrapper {
        position: fixed !important;
        left: -250px !important;
        top: 45px !important;
        width: 220px !important;
        height: calc(100vh - 45px) !important;
        background: #2f3136 !important;
        z-index: 999999 !important;
        transition: left 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #rooms-wrapper.mobile-open {
        left: 0 !important;
    }
    
    /* Rooms list */
    #rooms-wrapper .rooms {
        flex: 1 !important;
        overflow-y: auto !important;
    }
    
    /* === RIGHT SIDEBAR === */
    #chat_fiches {
        top: 45px !important;
        height: calc(100vh - 45px) !important;
    }
}
