/* =====================================================
   MASQUE LE BLOC 'NO ACTOVE DEADLINE'
   ===================================================== */
.hidden {
  display: none !important;
}

/* =====================================================
   MODALE — LAYER UNIQUE (SOURCE DE VÉRITÉ)
   ===================================================== */

.add-deadline-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  /* Overlay visuel */
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* État fermé */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* UNE transition, UNE durée */
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

/* État ouvert */
.add-deadline-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* =====================================================
   OVERLAY — CAPTURE DU CLIC UNIQUEMENT
   ===================================================== */

.add-deadline-overlay {
  position: absolute;
  inset: 0;

  /* IMPORTANT : aucun visuel */
  background: transparent;
}


/* =====================================================
   CONTENU — AUCUNE ANIMATION
   ===================================================== */

.add-deadline-content {
  background: var(--redlina-background-1);

  max-width: 400px;
  width: 100%;

  padding: 40px;
  border-radius: 25px;

  position: relative;
}

/* =====================================================
   HEADER
   ===================================================== */

.add-deadline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px 0;
}

#add-deadline-title,
#edit-deadline-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.add-deadline-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* =====================================================
   FORMULAIRE
   ===================================================== */

.add-deadline-form .form-group {
  margin-bottom: 14px;
}

.add-deadline-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
}

.add-deadline-form input,
.add-deadline-form select,
.add-deadline-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 13px;

  font-family: Inter, Arial, sans-serif;
  font-size: 13px;

  background: transparent;
  border: 1px solid #dedede;
  border-radius: 10px;

  appearance: none;
}

.add-deadline-form input,
.add-deadline-form select {
  height: 40px;
}

.add-deadline-form textarea {
  height: 80px;
  resize: none;
}

/* =====================================================
   ACTIONS
   ===================================================== */

.form-actions {
  margin-top: 20px;
  text-align: right;
}

.btn-primary {
  height: 40px;
  padding: 0 20px;

  border: none;
  border-radius: 12px;

  background: #000;
  color: #f1f1f1;

  font-size: 13px;
  cursor: pointer;

  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.8;
}


/* =====================================================
   BOUTON FLOTTANT — ADD DEADLINE
   ===================================================== */

#button-add-deadline {
  position: fixed;
  right: 50px;
  bottom: 50px;

  width: 55px;
  height: 55px;

  background: #000000;
  color: #ffffff;

  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#button-add-deadline:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}


/* ─── Validation ──────────────────────────────────── */

.input-error {
  border-color: var(--redlina-red) !important;
  outline: none;
}

.field-error {
  display: block;
  color: var(--redlina-red);
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
}