/* Attendees Table Plugin Styles */

.attendees-table-wrapper {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Download Buttons Wrapper */
.attendees-download-wrapper {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.attendees-download-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.attendees-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attendees-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.attendees-download-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.attendees-download-excel {
  background: linear-gradient(135deg, #1d6f42 0%, #2e7d50 100%);
  border: 1px solid #1d6f42;
}

.attendees-download-excel:hover {
  background: linear-gradient(135deg, #155c36 0%, #1d6f42 100%);
  color: #fff;
}

.attendees-download-pdf {
  background: linear-gradient(135deg, #d32f2f 0%, #e53935 100%);
  border: 1px solid #d32f2f;
}

.attendees-download-pdf:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
  color: #fff;
}

.attendees-download-csv {
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  border: 1px solid #1976d2;
}

.attendees-download-csv:hover {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  color: #fff;
}

/* Responsive buttons */
@media screen and (max-width: 600px) {
  .attendees-download-buttons {
    flex-direction: column;
  }

  .attendees-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Buscador */
.attendees-search-box {
  margin-bottom: 20px;
}

.attendees-search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s;
}

.attendees-search-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

/* Contador */
.attendees-count {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

/* Contenedor de tabla con scroll horizontal */
.attendees-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Tabla */
.attendees-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.attendees-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.attendees-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  border-bottom: 2px solid #dee2e6;
}

.attendees-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.attendees-table tbody tr:hover {
  background-color: #f8f9fa;
}

.attendees-table tbody tr.hidden {
  display: none;
}

.attendees-table td {
  padding: 12px 15px;
  color: #555;
  vertical-align: top;
}

.attendees-table td a {
  color: #0073aa;
  text-decoration: none;
}

.attendees-table td a:hover {
  text-decoration: underline;
}

/* Mensajes de error y vacío */
.attendees-error,
.attendees-empty {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 14px;
}

.attendees-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.attendees-empty {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .attendees-table {
    border: 0;
    box-shadow: none;
  }

  .attendees-table thead {
    display: none;
  }

  .attendees-table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: calc(100vw - 32px);
  }

  .attendees-table td {
    display: block;
    text-align: right;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  .attendees-table td:last-child {
    border-bottom: 0;
  }

  .attendees-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .attendees-search-input {
    max-width: 100%;
  }

  .attendees-table td {
    font-size: 13px;
    padding: 8px 12px;
    padding-left: 45%;
  }

  .attendees-table td::before {
    left: 12px;
    font-size: 12px;
  }
}
