/* ============================================================ */
/* Color Variables */
/* ============================================================ */

/* Define color variables for light mode */
:root {
    --back-color: #ffffff;
    --back-color-2: #ffffff;
    --back-color-3: #fafafa;
    --back-color-opacity-70: rgb(250, 250, 250, .7);
    --back-color-opacity-90: rgb(250, 250, 250, .9);
    --text-color: #000000;
    --text-color-60: rgb(0, 0, 0, 0.6);
    --border-color: rgba(0, 0, 0, 0.5);
    --border-color-2: rgba(0, 0, 0, 0.3);
    --border-color-3: rgba(0, 0, 0, 0.3);
    --hr-color:rgb(0, 0, 0,.3);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --hover-color: rgba(0, 0, 0, 0.1);
    --job-color: rgb(255, 255, 255);
    --invert-level: 0%; /* Light mode - no inversion */
    --tags-color:rgba(0, 0, 0, 0.12);
    --multicolor:linear-gradient(45deg, #fe6783, #ffc06d, #75ffe6, #6063ff);
    --blue:rgba(15, 90, 176, 0.5);
    --red:rgba(202, 29, 29, 0.5);
    --yellow:rgba(218, 190, 76, 0.5);
    --orange:rgba(207, 102, 37, 0.5);
    --green:rgba(155, 196, 21, 0.5);
    --purple: rgba(101, 37, 197, 0.5);
    --neutral-grey:rgba(137, 137, 137, 0.3);
}

/* Define color variables for dark mode */
[data-theme="dark"] {
    --back-color: #18191a;
    --back-color-2: #232323;
    --back-color-3: #18191a;
    --back-color-opacity-70: rgb(24, 25, 26, 0.7);
    --back-color-opacity-90: rgb(24, 25, 26, 0.9);
    --text-color: #ffffff;
    --text-color-60: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.3);
    --border-color-2: rgba(0, 0, 0, 0);
    --border-color-3: rgba(255, 255, 255, 0.3);
    --hr-color:rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(255, 255, 255, 0.15);
    --hover-color: rgba(255, 255, 255, 0.1);
    --job-color: rgb(35, 35, 35);
    --tags-color:rgba(255, 255, 255, 0.12);
    --invert-level: 100%; /* Dark mode - full inversion */
    --multicolor:linear-gradient(45deg, #ff375c, #ffae45, #75ffe6, #6063ff);
    --blue: rgba(72, 151, 241, 0.5);
    --red:rgba(249, 85, 85, 0.5);
    --yellow:rgba(242, 222, 140, 0.5);
    --orange:rgba(221, 132, 77, 0.5);
    --green:rgba(204, 247, 63, 0.5);
    --purple: rgba(175, 122, 255, 0.5);
    --neutral-grey:rgba(137, 137, 137, 0.2);
}

/* ============================================================ */
/* General Styles */
/* ============================================================ */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x:hidden;
    scroll-behavior: smooth;
    background-color:var(--back-color-3);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    color: var(--text-color);
}

/* ============================================================ */
/* Containers */
/* ============================================================ */

#container {
    display:flex;
    overflow-y:scroll;
    overflow-x: hidden;
    height: 100vh;    
    scrollbar-width: thin;
}

#container.overflowOff{
    overflow-y:hidden;
}

@media (max-width: 768px) {
    #container{
        padding:.3rem;
    }
}

#leftpanel{  
    flex: 1;
    position: sticky;
    top: 0;
    height: 95vh;
    padding-top: 2rem;
    display: flex;
    background-color: var(--back-color-3);
    z-index: 5;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 15rem;
}

@media (min-width: 769px) and (max-width: 1049px) {    
    #leftpanel{
        flex: 1;
        max-width: 5rem;
        min-width: 5rem;
    }
}

@media (max-width: 768px) {
    #leftpanel{
        display:none;
    }
}

#centerpanel{
    flex: 6;
    min-width: 30rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    height: fit-content;
}

@media (max-width: 768px) {
    #centerpanel{
        flex: 0;    
        min-width: 100%;
        margin-left: 0rem;
        margin-right: 0rem;
    }
}

#rightpanel{
    flex: 2; 
    top: 0;
    position: sticky;
    min-width: 10rem;
    padding-top: 2rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    height: fit-content;
}

@media (max-width: 768px) {
    #rightpanel{
        display:none;
    }
}

.content-leftpanel,
.content-centerpanel,
.content-rightpanel{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-leftpanel.hidden,
.content-centerpanel.hidden,
.content-rightpanel.hidden{
    display:none
}

/* ============================================================ */
/* Left Panel */
/* ============================================================ */

.taboption{
    display: flex;
    align-items: center;
    font-size: 16px;
    max-width: 17rem;
    border-radius: .7rem;
    padding: .7rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    margin: .2rem;
    justify-content: flex-start;
    transition: margin-left .3s ease-in-out;
}

.currentPanel{  
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-color) 0px 0px 10px;
    margin-left: 2rem;
    max-width: 15rem;
    font-weight: bold;  
}

@media (min-width: 769px) and (max-width: 1049px) {
    .currentPanel{
        margin-left:0%;
    }
}

.taboption:hover:not(.currentPanel){
    background-color: var(--hover-color);
}

.taboption.currentPanel[data-page="jobs"] {
    border: 1px solid var(--red);
    box-shadow: var(--red) 0px 0px 10px;
}

.taboption.currentPanel[data-page="annuaire"] {
    border: 1px solid var(--blue);
    box-shadow:  var(--blue) 0px 0px 10px;
}

.taboption.currentPanel[data-page="carte"] {
    border: 1px solid  var(--yellow);
    box-shadow: var(--yellow) 0px 0px 10px;
}

.taboption.currentPanel[data-page="calendrier"] {
    border: 1px solid  var(--orange);
    box-shadow: var(--orange) 0px 0px 10px;
}

.taboption.currentPanel[data-page="dashboard"] {
    border: 1px solid var(--purple);
    box-shadow: var(--purple) 0px 0px 10px;
}

#stagestab{
    display: none;
}

#about{
    margin-top: auto;
}

#partnership{  
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem;
    margin: .5rem;
    border-radius: 1rem;
    background-color: var(--job-color);
    border: 1px solid var(--border-color-2);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 20px;
}

#partnership.hidden{
    display: none;
}

.partnership-title{  
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
    color: #cd7541;
    text-align: center;
}

.partnership-image{ 
    cursor: pointer;
    max-width: 100%;
    height: auto;
    width: fit-content;
    display: block;
    border-radius: .5rem;
    margin: .5rem 1rem 0rem 1rem;
}

.partnership-hr.hidden{
    display: none;
}

/* ============================================================ */
/* About Section */
/* ============================================================ */

.icone-about{  
    cursor: pointer;
    width: 28px;
    height: 28px;
    filter: invert(var(--invert-level));
    padding: .5rem;
    margin:.5rem;
    border-radius: 50%;
    rotate: 0deg;
    transition: rotate .3s;
}

.icone-about:hover{  
    rotate: 180deg;
    background-color: rgba(0, 0, 0, 0.1);
}

.save-menu,
.light-menu,
.about-menu{  
    display: flex;
    z-index: 6;
    position: fixed;
    margin: 0.6rem;
    margin-left: 0.9rem;
    width: 18rem;
    bottom: 1.2rem;
    padding-bottom: 1rem;
    background-color: var(--back-color-2);
    border: 1px solid var(--shadow-color);
    border-radius: 1rem;
    flex-direction: column;
    height: fit-content;
    max-height: 15.5rem;
    transition: max-height .3s;
}

.save-menu::after,
.light-menu::after,
.about-menu::after{
    overflow: hidden;
}

.save-menu::before,
.light-menu::before,
.about-menu::before {  
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2.2rem;
    height: 2.1rem;
    background: var(--back-color-3);
    z-index: 5;
}

.save-menu.reduce,
.light-menu.reduce,
.about-menu.reduce{
    max-height: 0rem;
}

.save-menu.hidden,
.light-menu.hidden,
.about-menu.hidden{
    display: none;
}

.save-menu button,
.light-menu button,
.about-menu button {  
    display: flex;
    align-items: center;
    background: none;
    border-radius: .8rem;
    border: none;
    padding: .6rem;
    margin: .4rem;
    height: 4rem;
    cursor: pointer;
    text-align: left;  
}

.about-menu button:hover {
    background-color: var(--hover-color);
}

.about-light-text,
.about-text{  
    font-size: 12px;
    color: var(--text-color);
    margin-left: .5rem;
}

.about-options-icone{  
    margin-left: auto;
    width: 20px;
    height: 20px;
    opacity: 100%;
    filter: invert(var(--invert-level));
}

.about-submenu{  
    display: flex;
    flex-direction: row;
    border-radius: .5rem;
    justify-content: center;
    align-items: center;
    margin: .5rem;
}

.about-title{
    justify-content: flex-start;
}

.about-icone-back{
    width: 24px;
    height: 24px;
    opacity: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0);
    filter: invert(var(--invert-level));
    padding: .4rem;
    margin-top: .2rem;
    margin-right: .5rem;
}

.about-icone-back:hover{
    background-color: rgba(0, 0, 0, 0.1);
}

/* ============================================================ */
/* Job Save Section */
/* ============================================================ */

.new-job-save {
    position: absolute;
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 50%;
    opacity: 0%;
    margin-left: -1.7rem;
    margin-top: 0.5rem;
    transform-origin: center;
    transition: opacity 0.5s;
    pointer-events: none;
    
    /* Multicolor gradient background */
    background: var(--multicolor);
    background-size: 300% 300%;
    animation: holoGradientAnimation 5s ease infinite;
}

.new-job-save.show {
    opacity: 100%;
}

.jobs-save-number{     
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 50%;
    margin-left: auto;
    text-align: center;
    color: black;
    background: var(--multicolor);
    background-size: 300% 300%;
    background-clip: border-box;
    animation: holoGradientAnimation 5s ease infinite;
    line-height: 1.3rem;
}

.light-choose{     
    display: flex;
    width: 100%;
    height: 3rem;
    margin: 1rem;  
    border-radius: .9rem;
    border: 1px solid var(--shadow-color);
    justify-content: space-around;
    align-items: center;
}

.theme-option{    
    width: 1rem;  
    height: .9rem;
    padding: 1rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    filter: invert(var(--invert-level));
    margin: auto;
    border-radius: .8rem;
    border: 1px solid #ffffff00;
}

.theme-option.choose{    
    background-color: #10101030;
}

.save-head{
    display: flex;
    flex-direction: row;
}

.save-job{
    display: flex;
    flex-direction: row;
}

.job-save-list{ 
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    max-height: 12rem;
}

.job-save-info{
    display: none;
    font-size: 13px;
    text-align: center;  text-align: center;
    padding: 1rem;
}

.job-save-info.show{
    display: block;
}

.saved-job{
    display: flex;
    flex-direction: row;
    padding: .2rem;
    margin: .2rem;
    align-items: center;
    border-radius: .5rem;
    background-color: var(--back-color);  
    border: 1px solid var(--shadow-color);
}

.saved-job.hidden{
    display: none;
}

.save-info{  
    font-size: 11px;
    padding: 0.1rem;
    margin: .1rem;
    text-align: center;
    width: 3.5rem;
    max-width: 3.5rem;
}

.metier-save{
    display: flex;
    font-weight: bold;
    justify-content: center;
    font-size: 9px;
    padding: 0.1rem;
    margin: .1rem;
    height: 2rem;
    align-items: center;
    text-align: center;
    color: #18191a;
    background-color: rgb(134, 187, 255);
    border-radius: .5rem;
    max-width: 6rem;
    width: 6rem;
    transition: background-color .2s;
    cursor: pointer;
}

.metier-save:hover{
    background-color: rgb(80, 156, 255)
}

.metier-save.pourvu{
    background-color: rgba(226, 82, 57, 0.55);
}

.metier-save.pourvu:hover{
    background-color: rgba(226, 82, 57, 0.8);
}

.delete-save{
    margin-left: auto;
    padding:.4rem;
    border-radius:50%;
    cursor: pointer;
    transition: background-color .2s;
}

.delete-save:hover{  
    background-color: rgba(0, 0, 0, 0.1);
}

.date-save{
    color: var(--text-color-60);
}

/* ============================================================ */
/* Dashboard Section */
/* ============================================================ */

.addjobsContainer {
    width: 100%;
    overflow: hidden; /* Hide overflow of sliding text */
    border-radius: .5rem;
}

.addjobs {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.addjobs::before,
.addjobs::after {
    content: "Ajouter un job";
    display: flex;
    transition: transform 0.5s ease, content 0.5s ease, opacity 0.5s ease;
    white-space: nowrap;
}

.addjobs::after {
    content: "Accéder au Dashboard";
    transform: translateX(50%); /* Hide initially by moving it out of view */
    opacity: 0%;
}

#dashboardtab:hover .addjobs::after {
    transform: translateX(-64%); /* Slide into view on hover */
    opacity: 100%;
}

#dashboardtab:hover .addjobs::before {
    transform: translateX(-100%); /* Slide out "Ajouter jobs" on hover */
    opacity: 0%;
}

.icone-dash-jobs{
    display: block;
    opacity: 100%; 
    transition: opacity .3s;
}

.icone-dash{   
    position: absolute;
    opacity: 0%; /* Hide default icon on hover */   
    transition: opacity .3s;
}

#dashboardtab:hover .icone-dash-jobs{
    opacity: 0%; /* Hide default icon on hover */    
}

#dashboardtab:hover .icone-dash{
    opacity: 100%; /* Ensure hover icon is visible */    
}

/* ============================================================ */
/* Right Panel */
/* ============================================================ */

/* DIVERS */
.hover {
    cursor: pointer;
}

/*GENERAL*/

.icone{
    width: 28px;
    height: 28px;
    filter: invert(var(--invert-level));
}

#iconEarthSVG{
    background-color: red;
}

.icone_color{
    width: 28px;
    height: 28px;
}

.menu_text{
    margin-left: .8rem;
}

#jobstab {
    position: relative;
}

#jobstab.new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: .6rem;
    background: var(--multicolor);
        background-size: auto;
    background-size: 300% 300%;
    transition: opacity 0.7s ease;
    mask-size: cover;
    pointer-events: none;
    animation: holoGradientAnimation 5s ease infinite;   
}

#jobstab.new > .menu_text{
    color:#18191a;
}

#jobstab.new > .icone_color{
    filter: brightness(00) saturate(100%);
    opacity: 75%;
}

/* Animation for the gradient background */
@keyframes holoGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.taboption.currentPanel > .addjobsContainer > .menu_text,
.taboption.currentPanel > .menu_text{
    font-weight: bold;
}

#joboLogo{  
    height: 5rem;
    width: fit-content;
    margin-right: auto;
    margin-bottom: 1rem;
}

#joboLine{
    position: fixed;
    height: .3rem;
    width: 100%;
    display: flex;
    top: 0;
    left: 0%;
    z-index: 15;
}

/* DOT */
.dot{   
    height: 0.05rem;
    width: 0.05rem;
    padding: .12rem;
    margin:.6rem;
    border-radius: 50%;
    background-color: var(--text-color-60);
}

hr{  
    border: none;
    width: 75%;
    height: 1px;
    background-color: var(--hr-color);
    margin: .3rem;  
    margin-left: auto;
    margin-right: auto;
}

/* Link Color*/
a{   
    color: #67c5e3;
}
a:active{ 
    color: #4545b4;
}
a:visited{ 
    color: #4545b4;
}

/* ============================================================ */
/* Loading Section */
/* ============================================================ */

#startLoad {
    display: flex;
    position: fixed;
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 100%;
    z-index: 17; /* Full-page loader */
    justify-content: center;
    align-items: center;
    background-color: var(--back-color-3);
    transition: opacity .3s ease-out;
}

#startLoad.fade-hidden {
    opacity: 0%;
}

#startLoad.hidden {
    display: none;
}

.loadingIcon{
    width: 48px;
}

#centerLoad {  
    display: flex;
    position: fixed;
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 100%;
    z-index: 4; 
    justify-content: center;
    align-items: center;
    background-color: var(--back-color-3);
    transition: opacity .2s ease-out;
}

#centerLoad.fade-hidden {    
    opacity: 0%;
}

#centerLoad.hidden {    
    display: none;
}

/* ============================================================ */
/* Fullscreen Overlay */
/* ============================================================ */

/* Show the overlay when it's active */
  /* Styling for the fullscreen overlay */
  .fullscreen-overlay {
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--back-color-opacity-90); /* Dark background for focus */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    z-index: 11; /* Ensure the overlay is on top */
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Initially transparent */
    transition: opacity 0.17s ease-in-out; /* Smooth fade transition */
}

/* Show the overlay when it's active */
.fullscreen-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Styling for the image */
.fullscreen-image {
    position: fixed;
    top: 0;
    z-index: 12;
    max-width: 85vw;
    height: 85vh;
    object-fit: contain;
    margin-bottom: auto;
    margin-top: 4rem;
}

/* Styling for the close button */
.close-button {
    position: absolute; /* Position relative to the image wrapper */
    top: 2rem; /* Offset from the top */
    right: 2rem; /* Offset from the right */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    cursor: pointer; /* Cursor change on hover */
    height: 40px; /* Height of the button image */
    border-radius: 50%; /* Circular button */
    z-index: 13; /* Ensure button is on top */
}

/* Close button hover effect */
.close-button:hover {
    background-color: rgba(255, 255, 255, 1); /* Full opacity on hover */
}

/* ============================================================ */
/* PopUp Alert */
/* ============================================================ */

#popUpAlert{     
    display: inline-block;
    position: absolute;
    justify-content: center;
    align-items: center;
    z-index: 9;
    font-size: 16px;
    color: #18191a;
    top: auto;
    bottom: 5rem;
    max-width: 30rem;
    padding: 2rem;
    padding-top: 1.5rem;
    margin-left: 1rem;
    border-radius: 1rem;
    opacity: 100%;
    transition: all .3s;
    border: 1px solid var(--shadow-color);
    box-shadow: var(--shadow-color) 0px 0px 5px;
    font-weight: bold;
    background: var(--multicolor);
    background-size: 300% 300%;
    background-clip: border-box;
    animation: holoGradientAnimation 5s ease infinite;
}

#popUpAlert.fade-hidden {    
opacity: 0%;
}

#popUpAlert.hidden{
    display: none;   
}

/* ============================================================ */
/* Tooltip */
/* ============================================================ */

.tooltip-group {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: auto;
}

.tooltip-group .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -125px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip-group .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%; /* Arrow at the bottom of the tooltip */
    left: 50%;
    margin-left: -13px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-group:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.icon-tooltip{
    width: 20px;
    height: 20px;
    margin-right: .5rem;
    filter: brightness(0) saturate(100%) invert(50%) sepia(8%) saturate(3888%) hue-rotate(314deg) brightness(80%) contrast(98%);
}

/* ============================================================ */
/* Maintenance */
/* ============================================================ */
#maintenanceGroup{
    display: flex;
    width: 30rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: auto;
      margin-top: auto;
    margin-top: 10rem;  
    background-color: var(--back-color-2);
    padding: 2rem;
    border-radius: 1rem;

}

#maintenanceImage{
    max-width: 17rem;
}

#maintenanceTitle{
    font-size: 24px;
    font-weight: bold;
    color:#d04f51;
    margin: 1rem;
}

#maintenanceMessage{
    text-align: center;
}


/* ============================================================ */
/* Contact, About */
/* ============================================================ */
#contactDiv,
#aboutDiv {  
    display: block;
    margin-top: 1rem;
    position: fixed;
    padding: 2rem 3rem 1rem 3rem;
    z-index: 13;
    left: 50%;
    top: 50%;
    text-align: center;
    height: auto;
    transform: translate(-50%, -50%);
    border-radius: 1rem;
    max-width: 43rem;
    width: 100%;
    border: 1px solid var(--shadow-color);
    background-color: var(--back-color-2);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 20px;
}

#contactDiv.hidden,
#aboutDiv.hidden{
    display: none;
}