 
/* --- AFFICHAGE FONDU PAGE --- */
#page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  pointer-events: all;
  background: #313a46;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 1;
  transition: opacity 1.5s ease, background 1.5s ease;
}

#page-loader .loader-inner {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#page-loader .loader-text {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

body.loaded #page-loader {
  opacity: 0;
  pointer-events: none;
  background: rgb(49, 58, 70, 0);
}

body:not(.loaded) {
  overflow: hidden;
}
/* --- FIN AFFICHAGE FONDU PAGE --- */


/* --- SCROLLBAR TABLE --- */
.table-scroll {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #007bff #f1f1f1;
}

.table-scroll::-webkit-scrollbar {
  width: 8px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
}
.table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
/* --- FIN SCROLLBAR TABLE --- */


/* Conteneur des deux modals */
#double-modal-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 999999; /* AU-DESSUS DE TOUT */
    pointer-events: auto;
}

/* Empêcher Bootstrap de centrer automatiquement */
#double-modal-wrapper .modal-dialog {
    margin: 0 !important;
}

.overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.overlay-lock .lock-icon {
    cursor: pointer;
    color: #444;
    opacity: 0.9;
}

.tab-pane {
    position: relative;
}

.nav-pills .nav-link.disabled-tab {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-accordion .accordion-button {
    display: flex;
    width: 100%;
}

.custom-accordion .accordion-button::after {
    margin-left: 1rem;
}

.custom-accordion .accordion-button .btn-group {
    margin-left: auto !important;
}

.custom-accordion .accordion-button::after {
    display: none !important;
}

/* Wrapper pour les champs password avec œil */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    flex: 1;
    padding-right: 40px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #495057;
}

.btn-toggle-password:active {
    transform: scale(0.95);
}

.btn-toggle-password .icon-show,
.btn-toggle-password .icon-hide {
    transition: opacity 0.2s ease;
}

.changelog-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
}

.changelog-scroll::-webkit-scrollbar {
    width: 6px;
}

.changelog-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.changelog-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.changelog-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    column-gap: 12px;
    margin-bottom: 8px;
}

.changelog-badge {
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
}

.changelog-text {
    line-height: 1.4;
}

.sidebar-version {
    display: flex;
    justify-content: center;
    padding: 10px 15px 5px;
}

.sidebar-version span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
    padding: 4px 10px;
    border-radius: 50rem;
}

.logo {
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

.ai-textarea-wrapper {
    position: relative;
}

.ai-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.267);
    backdrop-filter: blur(2px);
    border-radius: 6px;
    z-index: 10;
    gap: 10px;
    pointer-events: none;
}

.ai-overlay span {
    font-size: 16px;
    font-weight: 600;
    color: #6c5ce7;
    letter-spacing: 0.5px;
}

.nav-tab-tooltip {
    position: relative;
}

.nav-tab-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d2d;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

.nav-tab-tooltip:hover::after {
    opacity: 1;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236c757d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}