/* Attendees Page Styles */

.section-main-attendees {
  background-color: #f5f5f5;
  padding: 40px 0;
  min-height: 70vh;
}

.attendees-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Search Bar */
.search-container {
  position: relative;
  margin-bottom: 30px;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

[dir="rtl"] .search-input {
  padding: 12px 20px 12px 45px;
}

.search-input:focus {
  border-color: #1c3557;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

[dir="rtl"] .search-icon {
  right: auto;
  left: 15px;
}

/* Alphabetical Navigation */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.alphabet-letter {
  padding: 8px 12px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 4px;
  user-select: none;
}

.alphabet-letter:hover {
  background-color: #f0f0f0;
  color: #1c3557;
}

.alphabet-letter.active {
  color: #d32f2f;
  font-weight: bold;
  background-color: transparent;
}
section{
  min-width: 100vh;
  height: auto !important;
}
.alphabet-separator {
  color: #ddd;
  padding: 0 5px;
  user-select: none;
}

/* Attendees List */
.attendees-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.attendee-letter-heading {
  font-weight: 700;
  font-size: 20px;
  color: #1c3557;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.attendee-card {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.attendee-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Column 1: Name + Avatar */
.attendee-name-column {
  display: flex;
  align-items: center;
  gap: 15px;
}

.attendee-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.attendee-avatar-image {
  object-fit: cover;
  border-radius: 50%;
}

.attendee-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Column 2: Organization */
.attendee-org-column {
  display: flex;
  align-items: center;
}

.attendee-organization {
  font-size: 17px;
  color: #333333;
  font-weight: bold;
}

/* Column 3: Social Media */
.attendee-social-column {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Social Icons */
.social-icons-container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 18px;
}

.social-icon:hover {
  color: #1c3557;
}

.social-icon i {
  display: block;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 18px;
}

/* Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FE4040;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  margin-top: 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

/* Scroll Loader */
.scroll-loader {
  text-align: center;
  padding: 20px;
  display: none;
}

.scroll-loader.active {
  display: block;
}

.scroll-loader-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1c3557;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* RTL Support */
[dir="rtl"] .attendee-name-column {
  flex-direction: row-reverse;
}

[dir="rtl"] .attendee-name {
  text-align: right;
}

[dir="ltr"] .attendee-name {
  text-align: left;
}

[dir="rtl"] .attendee-org-column {
  text-align: right;
}

[dir="ltr"] .attendee-org-column {
  text-align: left;
}

[dir="rtl"] .attendee-social-column {
  justify-content: flex-start;
}

[dir="ltr"] .attendee-social-column {
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  section{
  min-width: auto;
}
  .attendees-container {
    padding: 15px;
  }

  .search-container {
    max-width: 100%;
  }

  .alphabet-nav {
    gap: 5px;
    font-size: 14px;
  }

  .alphabet-letter {
    padding: 6px 10px;
    font-size: 14px;
  }

  .attendee-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  
  .attendee-name-column {
    gap: 12px;
  }
  
  .attendee-social-column {
    justify-content: flex-start;
  }
  
  [dir="rtl"] .attendee-social-column {
    justify-content: flex-end;
  }

  .attendee-avatar {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .attendee-name {
    font-size: 15px;
  }

  .attendee-organization {
    font-size: 13px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Dark Mode Support */
.dark-mode .section-main-attendees {
  background-color: #1a1a1a;
}

.dark-mode .search-input {
  background-color: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.dark-mode .search-input:focus {
  border-color: #1c3557;
}

.dark-mode .alphabet-nav {
  border-bottom-color: #444;
}

.dark-mode .alphabet-letter {
  color: #ddd;
}

.dark-mode .alphabet-letter:hover {
  background-color: #333;
  color: #fff;
}

.dark-mode .alphabet-letter.active {
  color: #d32f2f;
}

.dark-mode .attendee-card {
  background-color: #2a2a2a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .attendee-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .attendee-name {
  color: #fff;
}

.dark-mode .attendee-organization {
  color: #bbb;
}

.dark-mode .social-icon {
  color: #ddd;
}

.dark-mode .social-icon:hover {
  color: #fff;
}

.dark-mode .no-results {
  color: #999;
}

