
/* ==========================================
    groupe "Interface Rallobot"
   ========================================= */

/* Le conteneur principal du bandeau (noir) */
header {
    flex-shrink: 0; 
    height: 60px; 
    background: #1a252f;
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Le conteneur interne pour les outils (gris transparent) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 8px;
    flex: 1;
    margin: 0 30px;
}



/* ==========================================
    groupe "nb data + editText + bouton  
   ========================================= */

/* Le groupe qui contient le label et l'input */
.input-nb-group { display: flex; align-items: center; }


/* Le style du champ de saisie (input) */
input#nb-data-input {
    width: 50px;
    background: #585858;
    border: 1px solid #34495e;
    color: #d2d2d2;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    outline: none;
}


/* Le style du texte d'aide à l'intérieur (placeholder) (le texte "1000") */
#nb-data-input::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Blanc semi-transparent */
    font-style: italic;
}


/* L'effet quand on clique dans le champ (focus) */
#nb-data-input:focus {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.2);
}


/* Le bouton de validation (OK / Envoyer) */
.btn-nbdata {
    background: #34495e;
    border: 1px solid #5d6d7e;
    color: white;
    padding: 5px 8px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.8em;
}

/* L'effet au survol du bouton */
.btn-nbdata:hover { background: #2ecc71; color: #1a252f; }




/* ==========================================
    Les boutons d'importation et d'exportation
   ========================================= */

   .btn-import, .btn-export {
    background: #34495e;
    color: white;
    border: 1px solid #5d6d7e;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}



/* ==========================================
    Slider de lecture
   ========================================= */

/* Le conteneur flexible du slider */
.seek-container { 
    flex: 1; 
    display: flex; 
    align-items: center; 
}


/* Le style de la barre de défilement (Slider) */
#log-slider { 
    width: 100%; 
    cursor: pointer; 
    accent-color: #3498db; 
}


/* L'affichage du texte (ex: "LOG 150/1000") */
.state-display { 
    font-family: 'Courier New', monospace; 
    font-weight: bold; 
    color: #bdc3c7; 
    white-space: nowrap; 
    font-size: 0.9em; 
}


/* ==========================================
    bouton pause
   ========================================= */

   /* Style du bouton Pause */
.btn-pause {
    background: none;       
    border: none;           
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    outline: none;
}

/* Taille de l'icône (Emoji) */
#pause-icon {
    font-size: 24pt;        /* Taille plus grande */
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Gris par défaut quand on est en "Pause" */
    opacity: 0.7;
}

/* Effets au survol */
.btn-pause:hover {
    transform: scale(1.2);  /* Grossit légèrement au survol */
    opacity: 0.8;
}


/* --- L'ÉTAT VERT (Mode Pause activé) --- */
.btn-pause.is-paused #pause-icon {
    opacity: 1;
    filter: sepia(100%) saturate(200%) hue-rotate(100deg) brightness(60%);
    filter: sepia(100%) saturate(200%) hue-rotate(100deg) drop-shadow(0 0 3px rgba(46, 204, 113, 0.4));
    transform: scale(1.1);
}

/* couleur différente quand c'est en pause (Play) */
.btn-pause.paused #pause-icon {
    filter: drop-shadow(0 0 5px #27ae60); /* Petite lueur verte en pause */
    color: #27ae60; /* Pour certains navigateurs gérant la couleur des emojis */
}



/* ==========================================================
  Connexion Bluetooth (LED, bouton déconnexion, animations)
=========================================================== */

/* Conteneur de la zone de connexion (aligné à droite) */
.connection-bar { flex: 1; display: flex; justify-content: flex-end; max-width: 400px; }

/* Le bouton de connexion principal */
.btn-connect-full {
    width: 100%; display: 
    flex; align-items: center; 
    justify-content: space-between;
    padding: 8px 15px; 
    background: #2c3e50; 
    border: 2px solid #34495e; 
    border-radius: 8px; 
    color: white; 
    cursor: pointer;
}

/* État d'alerte quand on survole pour déconnecter */
.btn-connect-full.btn-disconnect-active { 
    /* background: #c0392b; */
    /* border-color: #e74c3c; */
    background: #2b8ec0; 
    border-color: #6cb4f7; 
}

/* Le badge contenant la LED et le texte de statut */
.status-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(0, 0, 0, 0.2); 
    padding: 4px 12px; 
    border-radius: 15px; 
}

/* La LED (aspect de base) */
.led-status { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    display: inline-block; 
}

/* Couleurs de la LED selon l'état */
.led-disconnected { 
    background-color: #e74c3c; 
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); 
}

.led-connected { 
    background-color: #2ecc71; 
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.7); 
    animation: led-pulse 2s infinite; 
}


/* L'animation de pulsation pour la LED connectée */
@keyframes led-pulse {
    0% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.7); }
    50% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.9); }
    100% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.7); }
}
