@charset "utf-8";
/* ===========================
   Global
   =========================== */
html {

}
.extra-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(51, 153, 0, 0.9);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-top-left-radius: 5px;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    
}


.search_icon{ font-size: 2rem;}
.main_titel{ display: none;}
.icoontje path {
    fill: #666; font-size: 1.8rem;
}
.icoontje:hover path {
    fill: orange;
}
.icoontje_account path {
    fill: #666;
}

.dashboard_icon{
    
    font-size: 3.4rem !important;
}
.grey{ color: #666;}
/* Verwijder browser focus */
input:focus,
textarea:focus {
    outline: none !important; /* forceer removal */
    box-shadow: 0 0 0 0.2rem rgba(211, 211, 211, 0.25)
 !important; /* lichte pastelgroen */
    border-color: #989898 !important;
}




.tekst_images{font-size: 1rem!important}

/* Eventueel ook voor bootstrap .form-control */
.form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 211, 211, 0.25) !important;
    border-color: #989898 !important;
}
input.auteur{color: #390;} 
textarea.titel{ font-weight: 500;} 
input.auteur:focus{color: #390 !important;} 
textarea.titel:focus{ font-weight: 500 !important;} 



.p-3 {
    padding: 2rem !important;
}

body {
/*  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
*/  font-family: "Times New Roman", Times, serif;
    
  margin: 0;
  padding: 0;
  outline: none;
}

/* Accessibility focus reset */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ===========================
   KNOPPEN
   =========================== */
#bookDetailsTabs .mt10{
    margin-top: -10px;
}

/* ===========================
   Menubalk
   =========================== */
#menubalk {
  background-color: #f5f5f5 !important;
  position: relative;
  height: 85px;    
  max-height: 85px; 
}

#menubalk #dashboard_logo {
  font-size: 2.5rem;
  transition: color 0.3s ease;
}

#menubalk #dashboard_logo:hover {
  color: orange;
}

#menubalk .navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ===========================
   Centraal menu
   =========================== */
#centraal_menu {
  display: flex;
  gap: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#centraal_menu .nav-link {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-bottom: 2px solid transparent; /* ruimte reserveren */
  transition: border-color 0.3s, color 0.3s;
}

#centraal_menu .nav-link:hover {
  border-bottom-color: #666;
}

#centraal_menu .nav-link.active {
  border-bottom-color: #666;
}

#centraal_menu .nav-link.disabled {
  color: #aaa;
  pointer-events: none;
  cursor: default;
}

/* ===========================
   User menu rechts
   =========================== */
#userke {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#userke .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Navbar collapse styling
   =========================== */
@media (max-width: 768px) {
  #centraal_menu {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  #centraal_menu .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }
}



/* ===========================
   Catalog Tree
   =========================== */

/* ===========================
   Tree catalogs
   =========================== */

.tree ul { list-style: none; padding-left: 0; }
.tree li { position: relative; margin: 0.2em 0; padding-left: 1.8em; cursor: pointer}
.tree li.has-children { cursor: pointer; font-weight: 500; }
.tree li.has-children::before { content: "+"; position: absolute; left: 0; color: #0d6efd; font-weight: bold; width: 1.5em; }
.tree li.active.has-children::before { content: "−"; color: #390 !important;}
.tree li .nested { display: none; margin-left: 0; color: inherit !important; }
.tree li .nested.active { display: block; }
.tree li:not(.has-children) { font-weight: normal; }
.tree li.has-children:hover { background-color: none; cursor: pointer}
.active-node { color: #390 !important;  cursor: pointer}
.leaf-node{cursor: pointer}  
.tree li.has-children.active::before { content: "−"; color: #390 !important;}
.tree li .nested .active-node {color: #390 !important;}
.tree .parent-node::before {content: "+ "; font-weight: bold; margin-right: 4px;color: #390;}
.tree .parent-node.expanded::before {content: "- "; color: #390;}

/* HET PLUSJE EN HET MINNETJE */
.tree li.has-children::before{color: #390 !important;} 


/* ===========================
   Card Styling
   =========================== */
.card-custom {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

/* ===========================
   Navigation / Navbar
   =========================== */
#bookDetailsTabs .nav-item {
    margin: 0 16px;
}

#bookDetailsTabs .navbar-nav .nav-link,
#bookDetailsTabs .navbar-nav .navbar-text {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

#bookDetailsTabs .navbar-nav .navbar-text {
    padding-left: 0;
    padding-right: 15px;
}


/* Tabs */
#bookDetailsTabs .nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-top-color: #666;
    border-left-color: #666;
    border-right-color: #666;
    background-color: #fff;
}
#bookDetailsTabs{ 
    border-bottom: 1px solid #666;
    margin-bottom: 40px;
}
#bookDetailsTabs .nav-link:not(.active):hover {
    border-left-color: #666 !important;     
    border-right-color: #666 !important; 
    border-top-color: #666 !important;     
    border-bottom-color: #666 !important;
}
#bookDetailsTabs .nav-link, .nav-link.active {
        padding: 10px 20px 7px 20px;
        color: #666;

}
/*#bookDetailsTabs .nav-link:not(.active) {
    border-left-color: #ccc!important;   
    border-right-color: #ccc!important; 
    border-top-color: #ccc!important;        
    color: #ccc!important;    
}
*/
/* ===========================
   Dropzone
   =========================== */
.dropzoneMT {
    cursor: pointer;
    min-height: 160px;
    background-color: #eee;
    border: 2px dashed #666;
    opacity: 0.8;
    padding: 20px;
}

.dz-button {
    height: 100px;
    width: 100%;
}

.dropzone {
    width: 100%;
}

.dz-image img {
    width: 100%;
}

#imagePreview {
    max-width: 100%;
    max-height: 600px;
    margin-top: 20px;
}

/* ===========================
   Centered Message
   =========================== */
.center-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* ===========================
   Fieldset / Form Legends
   =========================== */
fieldset{
    
    border: none!important
}

fieldset legend {
    background-color: #390;
    color: white;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
}

/* ===========================
   Catalog Containers
   =========================== */
.con_catalogi {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.container_catalogs {
    width: 95%;
    max-width: 1400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    flex-wrap: wrap;
}

.catalog-list-container,
.selected-catalogs-container {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.catalog-list-container h4,
.selected-catalogs-container h4 {
    margin-bottom: 8px;
    text-align: center;
}

.catalog-list-container select,
.selected-catalogs-container select {
    width: 100%;
    height: 400px;
    max-height: 80vh;
}

/* ===========================
   Book Description / Results
   =========================== */
#description {
    height: 177px;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.thead-sticky th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1020;
}

/* ===========================
   Popups
   =========================== */
.popup,
.popup_delete,
.popup_duplicate {
    width: 90%;
    max-width: 400px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-align: center;
}

.popup { background-color: #28AA1E; }
.popup_delete { background-color: #D81114; }
.popup_duplicate { background-color: #DFBD10; }

/* ===========================
   Main Menu Buttons
   =========================== */
.menu_main {
    margin: 10px 0;
    border: 1px solid grey;
    padding: 15px;
    border-radius: 4px;
    font-size: 1.4rem;
    visibility: hidden;
}

#knoppen_main {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: absolute;
    top: 80px;
    right: 20px;
}

#knoppen_main li {
    list-style-type: none;
}

#knoppen_main button {
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 1rem;
}

/* ===========================
   Tree (CATS)
   =========================== */
.tree ul {
    list-style-type: none;
    padding-left: 20px;
}

.tree li {
    position: relative;
    padding-left: 20px;
    cursor: pointer;
}

.tree li::before {
    content: '';
    position: absolute;
    left: -15px;
    font-weight: bold;
}

.tree li.parent-node::before {
    content: '+';
}

.tree li.parent-node.expanded::before {
    content: '-';
}

.tree li:not(.parent-node)::before {
    content: '';
}

.tree ul.hidden {
    display: none;
}

.active_CATS {
    color: blue;
}

body.modal-open {
  padding-right: 0 !important;
}


/* ===========================
   Miscellaneous
   =========================== */
.MT {
    width: 120px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    color: red;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}


/* ===========================
   Media Queries (Responsive Adjustments)
   =========================== */
@media (max-width: 768px) {
    .container_catalogs {
        flex-direction: column;
        align-items: center;
    }

    #knoppen_main {
        position: static;
        margin-top: 20px;
    }

    .catalog-list-container,
    .selected-catalogs-container {
        width: 90%;
        height: auto;
    }

    .catalog-list-container select,
    .selected-catalogs-container select {
        height: 300px;
    }
}
