/* static/css/style.css - Basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

header {
    background: #333;
    color: white;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

section {
    padding: 40px 0;
}

.btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 50px auto;
    max-width: 600px;
}

.loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
      }
      
      .loading-overlay.active {
        opacity: 1;
        visibility: visible;
      }
      
      .loading-container {
        text-align: center;
        color: white;
      }
      
      .loading-spinner {
        width: 70px;
        height: 70px;
        border: 5px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        margin: 0 auto 20px;
      }
      
      @keyframes spin {
        to { transform: rotate(360deg); }
      }
      
      .loading-text {
        font-size: 1.2rem;
        font-weight: 500;
        margin-top: 10px;
      }
      
      /* Section loading states */
      .section-loading {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      
      .content-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
      }
      
      .small-spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: #3498db;
        animation: spin 1s ease-in-out infinite;
      }
      
      .skeleton-loading {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 4px;
      }
      
      @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }
      
      /* Events skeleton */
      .events-skeleton {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 40px;
      }
      
      .event-skeleton-item {
        background: white;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }
      
      .skeleton-title {
        height: 28px;
        width: 70%;
        margin-bottom: 15px;
      }
      
      .skeleton-text {
        height: 16px;
        width: 90%;
        margin-bottom: 8px;
      }
      
      .skeleton-button {
        height: 40px;
        width: 100%;
        margin-top: 20px;
        border-radius: 5px;
      }
      
      /* Coordinators skeleton */
      .coordinators-skeleton {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 30px;
      }
      
      .coordinator-skeleton-card {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      }
      
      .skeleton-avatar {
        height: 60px;
        width: 60px;
        border-radius: 50%;
        margin: 0 auto 15px;
      }
      
      .skeleton-name {
        height: 22px;
        width: 80%;
        margin: 0 auto 10px;
      }
      
      .skeleton-designation {
        height: 16px;
        width: 60%;
        margin: 0 auto 8px;
      }
      
      .skeleton-contact {
        height: 16px;
        width: 70%;
        margin: 0 auto;
      }

/* Coordinator cards (modal + sections) */
.coordinator-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.coordinator-card {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  transition: var(--transition);
}

.coordinator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.coordinator-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
}