
/* Admin Insert Form Styles (without affecting other components) */

.admin-insert-form-container {
    max-width: 700px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .admin-insert-form-title {
    font-size: 26px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 25px;
    color: #000;
  }
  
  .admin-insert-label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
  }
  
  .admin-insert-input,
  .admin-insert-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .admin-insert-input:focus,
  .admin-insert-textarea:focus {
    outline: none;
    border-color: #173B49;
    box-shadow: 0 0 5px rgba(23, 59, 73, 0.5);
  }
  
  .admin-insert-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #173B49;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .admin-insert-submit:hover {
    background-color: #0F2B37;
    transform: scale(1.02);
  }


/* ============ Booking mamagement ============ */

/* booking_details.css */
.booking-details-container {
  width: calc(70% - 20px);
  max-width: 1000px;  margin: 20px 0 20px 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8); /* Light semi-transparent background */
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  z-index: 2;
  position: relative;
}
  
  /* Action buttons on top right */
  .action-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  /* Header styling */
  .booking-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 50px; /* space for the top buttons */
  }
  
  .booking-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #173B49;
  }
  
  .booking-subheader {
    font-size: 1.1em;
    color: #555;
    margin-top: 5px;
  }
  
  /* 3-column grid for non-text (small) fields */
  .small-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
  }
  
  /* Textarea fields in a single column */
  .textarea-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Booking field styling */
  .booking-field {
    display: flex;
    flex-direction: column;
  }
  
  .booking-field label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
  
  .booking-field input,
  .booking-field textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  /* Textareas: remove scrollbar and enable auto-resize via JS */
  .booking-field textarea {
    overflow: hidden;
    resize: none;
    min-height: 40px;
  }


    /* Table styling */
.gigs-management {
  width: 100%;
  border-collapse: separate; /* ← nécessaire pour que les coins arrondis soient visibles */
  border-spacing: 0;         /* ← enlève l’espace entre les cellules */
}
.gigs-management th, .gigs-management td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

/* Arrondir uniquement les coins du haut du header */
.gigs-management thead th:first-child {
  border-top-left-radius: 10px;
}
.gigs-management thead th:last-child {
  border-top-right-radius: 10px;
}

/* Make event name column larger */
.gigs-management th.event-name, .gigs-management td.event-name {
  width: 40%;
}

/* Add pointer cursor to table rows */
.booking-row {
  cursor: pointer;
}
/* Hover effect on table rows */
.gigs-management tbody tr:hover {
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
}


/* Responsive adjustments */
@media (max-width: 700px) {
  .gigs-management th, .gigs-management td {
    padding: 6px 8px;
    font-size: 0.9em;
  }
  .gigs-management th.event-name, .gigs-management td.event-name {
    width: 50%;
  }
}

  /* Responsive design for mobile devices */
  @media (max-width: 700px) {
    .small-fields {
      grid-template-columns: 1fr 1fr;
    }
    .action-buttons {
      top: 10px;
      right: 10px;
      gap: 5px;
    }
    .booking-header h1 {
      font-size: 2em;
    }
  }
  @media (max-width: 480px) {
    .small-fields {
      grid-template-columns: 1fr;
    }
    .action-buttons {
      flex-direction: column;
      top: 10px;
      right: 10px;
    }
  }
  

/* Modal styling for the file upload booking management */
      #file-upload-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 15px rgba(0,0,0,0.5);
        width: 90%;
        max-width: 500px;
        text-align: center;
      }
      #file-upload-modal h2 {
        margin-top: 0;
      }
      #file-upload-modal .close-btn {
        float: right;
        cursor: pointer;
        font-size: 1.2em;
        font-weight: bold;
      }
      #drop-area {
        border: 2px dashed #ccc;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        color: #aaa;
        margin-bottom: 15px;
      }
      #drop-area.hover {
        border-color: #333;
        color: #333;
      }
      #file-input {
        display: none;
      }
      /* Spinner styling */
      #spinner {
        display: none;
        margin-top: 15px;
      }
      /* Simple spinner animation */
      .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #007BFF;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: auto;
      }
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }