/* Réinitialisation et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Logo en fond en haut à droite */
.background-logo-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 130px;
    height: 130px;
    z-index: -1;
    pointer-events: none;
}

.background-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    opacity: 0.5;
}

/* Overlay pour désactiver l'interface pendant les opérations */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9998;
}

/* logo bottom right */
.bottom-logo-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: -999; /* en background */
}

.bottom-logo {
    height: 60px;
    opacity: 0.85;
    /*transition: transform 0.3s, opacity 0.3s;*/
}

/* pour notify */
#notify-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.notify-message {
    display: flex;
    flex-direction: column;
    background-color: #007bff;
    color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
}

.notify-message button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.notify-message button:hover {
    background-color: #f0f0f0;
}

/* pour table nom et deco */
.user-info-table {
    width: 100%;
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
}

.user-info-left {
    text-align: left;
    padding-left: 4px;
}

.user-info-right {
    text-align: right;
    padding-right: 4px;
}

.logout-icon {
    color: #cc0000;
    font-size: 1.2em;
    text-decoration: none;
}

.logout-icon:hover {
    color: #ff0000;
    cursor: pointer;
}

/* user pour changer de mdp */
.user-info-left .user-link {
    color: inherit;
    text-decoration: none;
}

.user-info-left .user-link i {
    color: inherit;  /* hérite de la couleur du texte */
    margin-right: 5px;
}

/* pourt status bar */
#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background-color: #222; /* couleur sombre */
    color: #fff; /* texte clair */
    font-size: 0.8em;
    display: flex;
    justify-content: space-between; /* sépare gauche/droite */
    align-items: center;
    padding: 0 10px; /* padding gauche et droite */
    box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
    z-index: -1; /* derrière le reste */
}

#status-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#status-right {
    display: flex;
    align-items: center; /* centre verticalement */
    gap: 5px;
}

.separator {
    opacity: 0.6;
}
