/*Configuration goes here*/

:root{

    /*Palette*/
    --palette_1:#ffffff;
    --palette_2:#f3f4f8;
    --palette_3:#a9e6ff;
    --palette_4:#a0a2ac;
    --palette_5:#2c2d31;

}

body{
    background-color: var(--palette_2);
}



.nav-link , .nav-link.active{
    color:var(--palette_5);
    background-color: var(--palette_1) !important;
    border-radius:0.375rem;

}



.nav-link:hover, .nav-link.active:hover{
    color:var(--palette_5);
    background-color: var(--palette_4) !important;
    border-radius:0.375rem;


}

.table-wrapper{
    border:1px solid #DEE2E6;
    border-radius:0.375rem;
    padding-top:1%;
    padding-bottom:1%;
    width:100%;
    overflow:scroll;
    background-color: var(--palette_1);


}

thead tr{
    background-color: #DEE2E6;
}

.table-wrapper .table-header{
    padding:3%;

}


card-body a {
    text-decoration:none;
}







#offcanvas-menu a{
    color:var(--palette_5);
}

a{
    color:var(--palette_5);
}

body{
    font-family: Futura;
    overflow:scroll !important;
}


.side-bar{
   width:420px;
}

#main{
    padding:2%;
}

td{
    padding:0% !important;
    padding-top:1% !important;
    padding-bottom:1% !important;


    

}
th{
    padding:0% !important;
    padding-top:1% !important;
    padding-bottom:1% !important;
}

modal-body #modalContent{
    overflow-x:scroll;
}

@media only screen and (max-width: 600px) {
    /* CSS styles for phones */
    table,menu-bar #headers a h3{
        font-size:14px;
    }


}

a {
    cursor: pointer; /* Changes the cursor to suggest clickability */
}


.btn{
    background-color: var(--palette_5);
    border:1px solid var(#000000);
    color:var(--palette_1);
}
.btn:hover{
    background-color: var(--palette_4);
    border:1px solid var(#000000);
    color:var(--palette_1);
}

.table{
}

form{
    width:100%;
}

form table-body .table-wrapper th{
    padding:0% !important;
    padding-top:2% !important;
    padding-bottom:2% !important;

}

form table-body .table-wrapper td{
    padding:0% !important;
    padding-top:2% !important;
    padding-bottom:2% !important;

}

.table-special-cell{
    text-align: center;
}


/* CSS per il dropdown annidato */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
}

.dropdown-toggle::after {
    display: none !important;
}


.dropdown-toggle::before {
    display: none !important;
}



/*Modal 2*/
/* Base modal styling */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Subtle background for overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto; /* Enable scrolling for the modal */
    animation-name: opacityTransition;
    animation-duration: 0.3s;
  }
  
  .custom-show {
    opacity: 1;
    visibility: visible;
  }
  
  .custom-modal-dialog {
    background: #fefefe;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin: 20px auto; /* Ensure some margin on top and bottom */
    overflow: scroll;
    transform: translateY(-30px); /* Start with a slight upward movement */
  }
  
  .custom-show .custom-modal-dialog {
    transform: translateY(0); /* Animate to original position */
  }
  
  
  
  .custom-modal-fullscreen {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    max-width: none;
  }
  
  .custom-modal-fullscreen .custom-modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    max-width: none;
  }
  
  .custom-modal-lg {
    max-width: 800px;
  }
  
  .custom-modal-transparent .custom-modal-header {
    background: transparent;
    box-shadow: none;
    z-index: 5000;
    position: absolute; /* Ensure header overlays body */
    top: 0;
    left: 0;
    border-bottom: none;
    width:100%;
  }
  
  .custom-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
  }
  
  .custom-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
  }


  .custom-modal-fullscreen .custom-modal-content{
    width:100%;
    height:100%;
  }
  
  .custom-close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
  }
  
  .custom-close-button:hover {
    color: #333;
  }
  
  .custom-modal-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    overflow-y: auto; /* Enable scrolling within the modal body */
    /*max-height: calc(100vh - 140px); /* Limit height of modal content */
    
}



.custom-modal-transparent .custom-modal-body{
  padding:0 !important;
  max-height:none !important;
}
  
  /* Body class when modal is open */
  .custom-modal-open {
    overflow: hidden;
  }
  
  
  @keyframes opacityTransition {
    from {opacity: 0;}
    to {opacity: 100;}
  }




  .sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Start hidden */
    height: 100%;
    width: 300px;
    background: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar.open {
    left: 0; /* Slide in */
}


/*SearchMain*/
.search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.search-bar {
  flex-grow: 1;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.search-bar:focus {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-bar::placeholder {
  color: #a9a9a9;
  font-style: italic;
}

.search-button {
  margin-left: 10px;
  margin-right: 10px;
  border: none;
  background-color: var(--palette_5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
  background-color: #005bb5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-button:focus {
  outline: none;
}

.search-main-3d-model-div media-body div div model-viewer #viewer{
  width:30vw;
  height:80vh;
}

@media only screen and (max-width: 600px) {
  /* CSS styles for phones */
  
  .search-main-3d-model-div media-body div div model-viewer #viewer{
    width:100vw !important;
  }

}