/***************************************************
 * RSVP TRACKING - STYLE iOS-LIKE
 * Feuille de style prête à coller
 ***************************************************/

/* 
   Fonts possibles pour un look iOS:
   body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                  Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
   }
*/

/* =========================
   RESET / UTILITAIRES
   ========================= */
   .hidden {
    display: none !important;
  }
  
  /* ====================================
     1) STYLES DU MODULE RSVP TRACKING
     ==================================== */
  
  /* Container global */
  .wpt-rsvp-tracking-container {
    padding: 35px;
    background: #fff;
    /* Pour un effet “carte” iOS */
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 26px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .wpt-rsvp-tracking-container:hover {
    /* Léger lift au survol */
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  
  /* Filtres */
  .wpt-filters {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wpt-filters input[type="text"],
  .wpt-filters select {
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid rgb(9 88 255 / 15%);
    border-radius: 8px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
  }
  .wpt-filters input[type="text"]:focus,
  .wpt-filters select:focus {
    border-color: #007aff; /* Couleur iOS bleue */
    outline: none;
  }
  
  /* Boutons */
  #rsvp-search-btn {
    background: #007aff;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  #rsvp-clear-filters-btn {
    background: #fff;
    color: #555;
    border: solid 0.4px #555 !important;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  #rsvp-search-btn:hover,
  #rsvp-clear-filters-btn:hover {
    background: #0060d0;
    color: #fff;
  }
  #rsvp-search-btn:active,
  #rsvp-clear-filters-btn:active {
    transform: scale(0.97);
  }
  
  #rsvpPdfButton {
    background: #ff746b;
    color: #fff;
  }
  #rsvpPdfButton:hover {
    background: #ff5f53;
    color: #fff;
  }
  /* =========================
     CARTES
     ========================= */
  .wpt-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .wpt-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 14px;
    flex: 1 1 300px; /* min 300px sur grand écran */
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .wpt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  }
  .wpt-card-header1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    background: #f5f5ff;
    padding: 12px;
    border-radius: 8px;
  }
  .wpt-card-header1 h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
  }
  .wpt-card-rsvp {
    font-weight: 600;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
    background-color: #68ac1c;
  }
  
  .wpt-card-body p {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
  }
  .wpt-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
  }
  
  /* =========================
     BOUTONS & ICÔNES
     ========================= */
  .wpt-icon-btn i, 
  .wpt-btn-edit i, 
  .wpt-btn-confirm i, 
  .wpt-btn-delete i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-weight: 900;
  }
  
  .wpt-icon-btn {
    background: #f1f1f1;
    border: none;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #333;
  }
  .wpt-icon-btn:hover {
    background: #e1e1e1;
  }
  .wpt-icon-btn:active {
    transform: scale(0.96);
  }
  
  /* Couleurs de boutons d'action */
  .wpt-btn-edit {
    color: #007aff;
  }
  .wpt-btn-confirm {
    color: #28a745; /* vert iOS */
  }
  .wpt-btn-delete {
    color: #ff3b30; /* rouge iOS */
  }
  
  /* =========================
     MODALE GLOBALE (#global-modal-container)
     ========================= */
  
  /* =========================
     TOAST
     ========================= */
  #rsvp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
  }
  .wpt-toast {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    opacity: 0.95;
    transition: opacity 0.5s;
    max-width: 300px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .wpt-toast-success {
    background-color: #28a745; /* vert */
  }
  .wpt-toast-error {
    background-color: #ff3b30; /* rouge iOS */
  }
  .wpt-toast-info {
    background-color: #17a2b8; /* bleu un peu plus clair */
  }
  .wpt-toast.fade-out {
    opacity: 0;
  }
  
  /* =========================
     2) RESPONSIVE (mobile)
     ========================= */
  /* Sur petits écrans, on réduit le layout des cartes */
  @media (max-width: 768px) {
    .wpt-cards-container {
      flex-direction: column;
    }
    .wpt-card {
      flex: 1 1 auto;
      width: 100% !important;
      margin: 0 auto 16px;
      max-width: 500px;
    }
  

  }
  
  /* 
     Sur écrans très étroits, on ajuste la taille des icônes 
     ou la taille de la police si besoin
  */
  @media (max-width: 480px) {
    .wpt-icon-btn {
      font-size: 12px;
      padding: 4px 6px;
    }
    .wpt-icon-btn i {
      font-size: 14px;
    }
  }
  