body {
  padding-top:80px;
  margin: 0;
  padding: 0;
  background: url('main.png') no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
}
.scentrale
{
  color: white;
}

.hide {
  display: none !important;
}

/* Auth modal */
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  align-items: top; justify-content: center;
}
.modal.show {
  display: flex;
  margin-top:100 %;
}
.modal-content {
  background-color: rgba(0, 0, 0, 0.0);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.0.9);
  color: white;
  width: 300px;
  display: flex;
  flex-direction: column;
}
.modal-content h3 {
  color: white;
  margin-bottom: 10px;
  text-align: center;
}
.modal-content label {
  display: block;
  margin: 8px 0 2px 0;
  margin-left: 15px;
  font-size: 13px;
}
.modal-content input {
  width: 83%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 10px;
  margin-left: 15px;
  margin-bottom: 10px;
  font-size: 14px; color:white;
   background-color: rgba(0, 0, 0, 0.13);
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.0.6);
}
.modal-content button {
  width: 87%;
  padding: 10px;
  background: #232b85;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  margin-left: 15px;
  font-size: 15px;
  cursor: pointer;
}
.error {
  color: #d9534f;
  font-size: 13px; 
  text-align:center;
  margin-top: 50px;
}

.search-bar {
  max-width: 500px;
  margin: 100px auto 10px auto;
  display: flex;
  flex-direction: column;
  position: relative;
}


.search-bar input {
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  background: linear-gradient(135deg, #e0e0e0, #f5deb3); /* gris clair + ambre */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  color: #333;
}

.search-bar input::placeholder {
  color: #666;
}

.search-bar input:focus {
  background: linear-gradient(135deg, #f5f5f5, #ffe0b2); /* plus clair au focus */
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6); /* effet focus ambre */
}

.suggestions {
  position: absolute;
  top: 60px;
  left: 11px;
  right: 11px;
  background: white;
  border: 0px solid #bbb;
  border-top: none;
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
}
.suggestions div {
  padding: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.suggestions div:hover {
  background: #f0f5ff;
}

#centraleSelectContainer {
  max-width: 500px;
  margin: 100px auto 6px auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
#centraleSelect {
  flex: 1;
  padding: 8px;
  font-size: 15px;
  border-radius: 6px;
}
#centraleSelect {
  font-size: 14px !important;
  height: auto !important;
  padding: 4px 6px !important;
}

#titreSelection {
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  margin: 18px 0 8px 0;
}
#nomClientAffiche {
  color: white;
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
}
#nomCentraleAffiche {
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  padding: 2px 8px;
  border-radius: 5px;
  color: white;
}

.centrale-status {
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 7px;
  font-size: 13px;
}
.centrale-remplie {
  background: #e6f0ff;
  color: #232b85;
  border: 1px solid #232b85;
}
.centrale-vide {
  background: #ffe8e6;
  color: #d9534f;
  border: 1px solid #d9534f;
}

.form-container {
  background: #fff;
  border-radius: 10px;
  padding: 15px 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.13);
  max-width: 500px;
  margin: 20px auto;
  display: block;
}

.form-container h3 {
  background: #232b85;
  color: white;
  padding: 6px;
  border-radius: 5px;
  margin: 12px 0 8px 0;
  font-size: 15px;
}

.form-container label {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 13px;
}
.form-container input,
.form-container select {
  width: 100%;
  padding: 6px;
  margin-top: 3px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
#typesLubrifiant {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 5px;
}
#typesLubrifiant label {
  font-weight: normal;
  font-size: 13px;
  margin-top: 0;
}
#sauvegarderBtn, #btnRetour {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.18s;
}
#btnRetour {
  background-color: #232b85;
  margin-top: 8px;
}
#sauvegarderBtn[disabled] {
  background: #a5a5a5;
  cursor: not-allowed;
}

#warning {
  text-align: center;
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 10px;
}

.form-lecture {
  background: #e6f0ff !important;
}
.form-lecture input,
.form-lecture select {
  color: #232b85 !important;
  font-weight: bold !important;
  background: #e6f0ff !important;
  border: 1px solid #232b85 !important;
}
.form-lecture label {
  color: #232b85 !important;
  font-weight: bold !important;
}

/* Responsive */
@media (max-width: 600px) {
  .form-container, .search-bar, #centraleSelectContainer {
    max-width: 97vw;
    padding: 8px;
  }
  .modal-content {
    min-width: 95vw;
    padding: 120px 5px;
  }
  #etiquetteResult {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    padding: 18px 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.14);
    font-size: 15px;
    color: #232b85;
    font-weight: bold;
  }
  #etiquetteResult h3, #etiquetteResult h4 {
    margin-top: 0;
  }
  #etiquetteResult div {
    margin-bottom: 8px;
  }
  .centrale-remplie {
    background: #e6f0ff !important;
    color: #232b85 !important;
    border: 1px solid #232b85 !important;
  }
  .centrale-vide {
    background: #ffe8e6 !important;
    color: #d9534f !important;
    border: 1px solid #d9534f !important;
  }
}
.err { border-color:#e53935 !important; }

#versionBadge {
  position: fixed; bottom: 10px; right: 10px;
  color: white; font-weight: bold;
  font-size:12px;
}