/* =============================================================
   records.css — FormUp & Go
   Styles pour la modale de records
   ============================================================= */

/* OVERLAY */
.fu-record-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fu-record-overlay[hidden] {
  display: none;
}

/* MODALE */
.fu-record-modal {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  animation: fuModalIn 0.2s ease;
}

@keyframes fuModalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FERMER */
.fu-record-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #bfbfbf;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.fu-record-close:hover {
  color: #fff;
  background: #2e2e2e;
}

/* TITRE */
.fu-record-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00FFFF;
  margin: 0 0 1.5rem 0;
  padding-right: 2rem;
}

/* GRAPHE */
.fu-record-chart-wrap {
  width: 100%;
  height: 260px;
  position: relative;
}

/* MESSAGE VIDE */
.fu-record-empty {
  text-align: center;
  color: #bfbfbf;
  font-size: 0.9rem;
  padding: 2rem 0;
}
.fu-record-empty[hidden] { display: none; }

/* BOUTON GRAPHE (petit bouton rond à côté du record) */
.fu-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  margin-left: 0.4rem;
  transition: background 0.2s, border-color 0.2s;
  vertical-align: middle;
  font-size: 0.9rem;
  padding: 0;
}

.fu-record-btn:hover {
  background: #3a3a3a;
  border-color: #00FFFF;
}

.fu-record-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* MOBILE */
@media (max-width: 480px) {
  .fu-record-modal {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
  .fu-record-chart-wrap {
    height: 200px;
  }
}
