@import "variable.css";

:root {
    --width-cube:400px;
    --height-cube: 400px;
}

.alert-display{
    
    position: absolute;
    top:-4%;
    right: 1%;
    max-width: 400px;
    height: 100px;
}

.accueil-display {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.cube-flex-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.cube-flex-item:nth-child(1) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}
.cube-flex-item:nth-child(2) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}


.cube-display{
    width: var(--width-cube);
    height: var(--height-cube);
}

.logo-entreprise {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cube-menu {
    width: var(--width-cube);
    border-radius: 9999px; 
    color: rgb(255, 255, 255);
    position: absolute;
    top: 0px;

}

.cube-sub-menu{
    align-items: flex-start; 
    display: flex;
    justify-content: center; 
    
}

/* Menu position */
.qhse-menu {
    transform-origin: top left;
    transform: translate(calc(var(--width-cube)*-1.06), calc(var(--height-cube)*-0.23)); 
}
.rh-menu{
    transform: translate(calc(var(--width-cube)*0.733), calc(var(--height-cube)*-0.2));
}
.projet-menu{
    transform: translate(calc(var(--width-cube)*0.75), calc(var(--height-cube)*1.1)); 
}
.management-menu{
    transform: translate(calc(var(--width-cube)*1.3), calc(var(--height-cube)*0.35)); 
}
.stock-menu {
    transform: translate(calc(var(--width-cube)*-0.98), calc(var(--height-cube)*1.05)); 
}
.materiel-menu {
    transform: translate(calc(var(--width-cube)*-1.06), calc(var(--height-cube)*0.6)); 
}



#dashboard-droite {
    width: 300px;
    position: fixed;
    top: 5px;
    bottom: 5px;
    right: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}
#dashboard-principal {
    flex: 1;
    min-width: 500px;
    margin-right: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.tdb-element{
    max-width: 300px;
}
.tdb-row{
    height: 33%;
    min-height: 230px;
    width: 100%;
    display: flex;
}
.tdb-message{
    align-self: flex-end;
}

#reviews {
    display: grid;
    place-items: center;
    margin: auto auto;
    position: relative; /* for arrows & dots */
}

.sp-carousel {
    display: flex;
    gap: 15px;
    margin: auto auto;
    position: relative;
    overflow-x: hidden;
    width: 100% !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 15%, #e9ecef 35%, #dee2e6 55%, #e9ecef 75%, #f8f9fa 90%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}
.SP-slider {
    height: auto;
    transition: transform 0.3s ease;
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    margin: 0; /* managed by container */
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}
.SP-slider > .reviewer-name {
    font-size: large;
}
.bd-container {
    max-width: 1024px;
    width: calc(100% - 3rem);
}
.order-landing-data {
    text-align: center;
    position: relative;
z-index: 10;
    padding: 1rem 1rem 2rem;
    
    max-width: 95%;
    
}
.carousel-dots {
    display: flex;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    gap: 6px;
    z-index: 2;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cfd4da;
    margin: 0 5px;
    cursor: pointer;
    display: flex;
    transition: background-color .2s ease, transform .2s ease, width .2s ease;
}
.dot.active {
    background: #38b3a9;
    transform: scale(1.15);
    width: 16px; /* pill-like */
}

.dot:hover {
    background-color: #aaa;
}

.bi {
    color: #000;
}
.order-landing__data {
    width: 100%;
}
.SP-slider .slide {
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.SP-slider .slide:not(.active) {
    filter: blur(5px); /* Adjust the blur strength as needed */
}

.carousel-dots {
    text-align: center;
}

.carousel-dots .dot {
    display: inline-block;
    margin: 0 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}

/* Arrow buttons (Quasar-like) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-arrow i {
    color: #38b3a9;
    font-size: 16px;
}

@media (max-width: 768px) {
    .SP-slider {
        padding: 18px 14px;
        min-height: 150px;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ==============================
   Quasar-like Search Bar Styling
   ============================== */

/* Search Input Container */
.recherche_globale_container {
    position: relative;
}

/* Search Input Styling */
.recherche_rapide {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recherche_rapide:focus {
    outline: none;
    border-color: #38b3a9;
    box-shadow: 0 4px 16px rgba(56, 179, 169, 0.2);
    transform: translateY(-1px);
}

.recherche_rapide::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Search Icon */
.recherche_globale_search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38b3a9;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

/* Autocomplete Dropdown Styling */
.ui-autocomplete {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
    border-bottom: 1px solid #f8f9fa;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item a {
    padding: 12px 16px;
    color: #495057;
    transition: all 0.2s ease;
    display: block;
}

.ui-autocomplete .ui-menu-item:hover a,
.ui-autocomplete .ui-menu-item.ui-state-focus a {
    background: rgba(56, 179, 169, 0.1);
    color: #38b3a9;
}

/* ==============================
   Quasar-like Radio Button Styling
   ============================== */

/* Radio Button Group Container */
.recherche_globale_option {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Individual Radio Button Container */
.recherche_globale_option .d-flex,
.recherche_globale_option .radio-button-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.recherche_globale_option .d-flex::before,
.recherche_globale_option .radio-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 179, 169, 0.1), transparent);
    transition: left 0.5s ease;
}

.recherche_globale_option .d-flex:hover::before,
.recherche_globale_option .radio-button-container:hover::before {
    left: 100%;
}

.recherche_globale_option .d-flex:hover,
.recherche_globale_option .radio-button-container:hover {
    background: rgba(56, 179, 169, 0.05);
    border-color: rgba(56, 179, 169, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 179, 169, 0.15);
}

/* Radio Button Input Styling */
input[type="radio"][name="recherche_globale_type"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cfd4da;
    border-radius: 50%;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="radio"][name="recherche_globale_type"]:hover {
    border-color: #38b3a9;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(56, 179, 169, 0.2);
}

input[type="radio"][name="recherche_globale_type"]:checked {
    border-color: #38b3a9;
    background: #38b3a9;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(56, 179, 169, 0.3);
}

input[type="radio"][name="recherche_globale_type"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: radioCheck 0.3s ease;
}

@keyframes radioCheck {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Radio Button Labels */
.label_radio {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

input[type="radio"][name="recherche_globale_type"]:checked + .label_radio {
    color: #38b3a9;
    font-weight: 600;
    transform: translateX(2px);
}

/* Active State for Container */
.recherche_globale_option .d-flex:has(input[type="radio"]:checked),
.recherche_globale_option .radio-button-container:has(input[type="radio"]:checked) {
    background: rgba(56, 179, 169, 0.1);
    border-color: #38b3a9;
    box-shadow: 0 4px 16px rgba(56, 179, 169, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .recherche_rapide {
        padding: 14px 18px 14px 45px;
        font-size: 0.95rem;
    }
    
    .recherche_globale_search {
        left: 16px;
        font-size: 1rem;
    }
    
    .recherche_globale_option {
        flex-direction: column;
        gap: 8px;
    }
    
    .recherche_globale_option .d-flex,
    .recherche_globale_option .radio-button-container {
        justify-content: center;
        padding: 8px 16px;
    }
}
.recherche_globale_container{
    display: inline-block; 
    min-width: 300px;
    width: 80%;
    margin-left: 10%;
    margin-top: 5px;
}
.recherche_globale_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(16px);
    font-size: 1.5rem;
    color:#999999;
}
.recherche_rapide{
    display: inline-block;
    font-size: 1.4rem;
    padding-left: 10%;
    width: 99%;
    border-radius: 25px;
}
.recherche_header{
    display: inline-block;
    font-size: 1.1rem;
    padding-left: 10%;
    width: 95%;
    border-radius: 25px;
}
.recherche_header_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(13px);
    font-size: 1.1rem;
    color:#646464;
}

.row_recherche {
    padding-bottom: 15px !important;
}

.recherche_annuaire{
    display: inline-block;
    font-size: 1rem;
    padding-left: 12%;
    width: 60%;
    border-radius: 10px;
}
.recherche_annuaire_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(16px);
    font-size: 1.2rem;
    color:#646464;
}
.recherche_globale_option{
    display: inline-block; 
    margin-left: 10%; 
    margin-right: 10%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding-bottom: 5px;
    padding-top: 10px;

}

/* Trait de liaison */

.trait-liaison {
    position: absolute;
    border-width: 1px;
    border-style: solid;
}
.trait-liaison-management{
    border-color: var(--management-color);
    width:140px;
    top:-2px; 
    left:-28px; 
    transform: translateX(-110px) rotate(-20deg); 
    transform-origin: top right;
}
.trait-liaison-materiel {
    border-color: var(--materiel-color);
    width:120px;
    top:-2px; 
    right:-60px; 
    transform: translateX(60px) rotate(-25deg); 
    transform-origin: top left;
}
.trait-liaison-projet {
    border-color: var(--projet-color);
    width:150px;
    top:-2px; 
    left:-100px; 
    transform: translateX(-50px) rotate(30deg); 
    transform-origin: top right;
}

.trait-liaison-qhse {
    border-color: var(--qhse-color);
    width:250px;
    top:-2px; 
    right:-90px; 
    transform: translateX(160px) rotate(27deg); 
    transform-origin: top left;

}
.trait-liaison-rh {
    border-color: var(--rh-color);
    width:100px;
    bottom:-2px; 
    left:-30px; 
    transform: translateX(-70px) rotate(-45deg); 
    transform-origin: top right;
}
.trait-liaison-stock {
    border-color: var(--stock-color);
    width:190px;
    top:-2px; 
    right:-90px; 
    transform: translateX(100px) rotate(-15deg); 
    transform-origin: top left;
}

.cube-item-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    padding-left: 5px;
}
.cube-item-body {
    font-size: 1.1rem;
    border-top: 2px solid black;
    padding:12px 10px 5px 10px;
    color:var(--primary-text-color);
    position: relative;
}
.message-important{
    color: var(--alerte-a-venir-color);
    font-weight: bold;
    font-size: 1.8rem;
    margin: auto;
    text-align: center;
    display: block;
}
.message-important img{
    margin: auto;
}
.detail-message-important{
    color: var(--primary-text-color);
    font-size: 1.4rem;
    margin: auto;
    text-align: center;
    display: block;
}

.detail-message-important a{
    color: var(--management-color);
}
.logo-container{
    display: inline-block;
    width: 100%;
    text-align: center;
}
.logo{
    max-width:250px;
    text-align: center;
    max-height: 100px;
}

.management-body{
    /*width:var(--width-cube);*/
    border-color:var(--management-color);
    background-color: var(--management-color); 
    color: var(--reversed-primary-text-color);
}

/* Couleur des blocs et titres */
.management-title-color{
    color:var(--management-color);
}
.management-border-color{
    border-color:var(--management-color);
}
.materiel-title-color{
    color:var(--materiel-color);
}
.materiel-border-color{
    border-color:var(--materiel-color);
}
.projet-title-color{
    color:var(--projet-color);
}
.projet-border-color {
    border-color:var(--projet-color);
}
.qhse-title-color{
    color:var(--qhse-color);
}
.qhse-border-color{
    border-color:var(--qhse-color);
}
.rh-title-color{
    color:var(--rh-color);
}
.rh-border-color{
    border-color:var(--rh-color);
}
.stock-title-color{
    color:var(--stock-color);
}
.stock-border-color{
    border-color:var(--stock-color);
}
.alertes-title-color{
    color:var(--alerte-color);
}
.alertes-border-color{
    border-color:var(--alerte-color);
}



.cube-item-body ul {
    margin: 0;
    padding: 0;
    padding-left: 30px;
}


.cube-item-comments-table {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto; 
    overflow-x: hidden; 
    text-wrap: wrap;
}
.cube-item-comment {
    color: var(--reversed-primary-text-color); 
    text-wrap: wrap; 
    min-width: 350px; 
    display:block;
}


.cube-badge-green {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--ok-color);
    border-radius: 25px;
    max-width: 100px;
    width: 3.5rem;
}
.cube-badge-red {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--alerte-color);
    border-radius: 25px;
    max-width: 60px;
    width: 3.5rem;
}
.cube-badge-orange {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--materiel-color);
    border-radius: 25px;
    max-width: 60px;
    width: 3.5rem;
}
.cube-badge-green-display{
    display:none;
}

#cube {
    position: relative;
    width:100%;
    top: 150px;
    transform: scale(0.8);
}
#tdb-mobile {
    display: none;
}
@media (max-width:1023px) {
    .trait-liaison {
        display: none;
    }
    #tdb-mobile {
        display: block;
        margin-left: 0;
    }
    #tdb-dashboard-principal {
        display: none;
    }
  
}


@media (min-width: 768px) and (max-width: 1024px) {
    #cube{
        transform: scale(0.8);
    }
}
@media (min-width: 1025px) {
    #cube{
        transform: scale(1);
    }
    .workflow-item{
        width: 50px;
    }
}


.accueil-flex-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

@media (max-width: 1023px) {
    .accueil-flex-container {
        -webkit-flex-direction: column-reverse;;
        -ms-flex-direction: column-reverse;;
        flex-direction: column-reverse;
    }
}
.accueil-flex-item:nth-child(1) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    padding-left: 300px;
}
.accueil-flex-item:nth-child(2) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    padding-left: 350px;
}