.navbar {
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    gap: 0.5rem;
}

.navbar-brand img {
    width: 3rem;
    flex-shrink: 0;
}

.navbar-brand h2 {
    color: #0056d2;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(135deg, #0056d2, #0066e6);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
    color: white;
    font-size: 1.2rem;
}

.navbar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
    background: linear-gradient(135deg, #0066e6, #0076ff);
}

.navbar-toggle.is-open {
    background: linear-gradient(135deg, #e53e3e, #f56565);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.navbar-toggle.is-open:hover {
    background: linear-gradient(135deg, #f56565, #fc8181);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.navbar-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.navbar-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #0056d2;
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #0056d2;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
    display: inline-block;
}

.navbar-logout-btn:hover {
    color: #e53e3e;
}

.navbar-logout-btn::after {
    background-color: #e53e3e;
}

.dropdown {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: -0.75rem;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle .caret {
    margin-left: 0.35rem;
    font-size: 0.85rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 0.5rem);
    left: 0;
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    list-style: none;
    margin: 0;
    min-width: 240px;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu .navbar-link {
    display: block;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border-radius: 6px;
}

.dropdown-menu .navbar-link:hover {
    background: #f0f6ff;
}

@media (min-width: 769px) {
    .dropdown:hover>.dropdown-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .dropdown:hover .dropdown-toggle {
        color: #0056d2;
    }
}


@media (max-width: 1200px) {
    .navbar-brand h2 {
        font-size: 1.5rem;
    }

    .navbar-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .navbar-brand h2 {
        font-size: 1.4rem;
    }

    .navbar-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand h2 {
        font-size: 1.1rem;
    }

    .navbar-link {
        font-size: 0.9rem;
    }

    .navbar-toggle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .navbar-brand h2 {
        font-size: 1rem;
    }

    .navbar-link {
        font-size: 0.85rem;
    }

    .navbar-toggle {
        font-size: 0.85rem;
    }
}

/* Landscape orientation for mobile navbar */
@media (max-height: 600px) and (orientation: landscape) {
    .navbar-brand h2 {
        font-size: 0.9rem;
    }

    .navbar-link {
        font-size: 0.8rem;
    }

    .navbar-toggle {
        font-size: 0.9rem;
    }
}


@media (max-width: 768px) {
    .navbar {
        position: absolute;
        text-align: center;
    }

    .navbar-container {
        padding: 0 1.5rem;
    }

    /* Make navbar brand smaller on mobile */
    .navbar-brand img {
        width: 1.5rem;
    }

    .navbar-brand h2 {
        font-size: 1.25rem;
    }

    .navbar-link {
        font-size: 0.95rem;
    }

    .navbar-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        padding: 1rem 1.5rem;
    }

    .navbar-menu.is-open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .navbar-item {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-bottom: 0;
    }

    .navbar-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0.5rem;
    }

    .navbar-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: unset;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .dropdown.is-open>.dropdown-menu {
        display: block;
    }
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* Container */
.container {
  padding-top: 0;
  min-height: 100vh;
  background: #f5f5f5 !important;
  position: relative;
  min-width: 100vw;
}

.homepage {
  min-height: 100vh;
}

/* Carousel Styles */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 700px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Modern Slide Background */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

/* Disable hover scale on mobile for performance */
@media (min-width: 1024px) {
  .slide-background {
    transition: transform 0.8s ease-out;
  }

  .carousel-slide:hover .slide-background {
    transform: scale(1.05) translateZ(0);
  }
}

/* Modern Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Removed backdrop-filter for mobile performance */
}

/* Modern Content Layout */
.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.slide-text-content {
  max-width: 700px;
  text-align: center;
  color: white;
  animation: slideContentIn 1.2s ease-out;
}

/* Modern Typography */
.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: slideInUp 1s ease-out 0.2s both;
  /* Removed backdrop-filter for mobile performance */
}

.slide-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease-out 0.4s both;
  /* Simplified from gradient text for mobile performance */
}

/* Apply gradient only on desktop */
@media (min-width: 1024px) {
  .slide-title {
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.slide-description {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  animation: slideInUp 1s ease-out 0.6s both;
}

/* Modern Buttons */
.slide-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.8s both;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.slide-btn:hover::before {
  left: 100%;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.slide-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.slide-btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* Removed backdrop-filter for mobile performance */
}

.slide-btn-primary:hover {
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: #1f2937;
}

/* Only apply transform on desktop */
@media (min-width: 1024px) {
  .slide-btn-primary:hover {
    transform: translateY(-3px);
  }

  .slide-btn-secondary:hover {
    transform: translateY(-3px);
  }
}

.slide-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  /* Removed backdrop-filter for mobile performance */
}

.slide-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  color: white;
  font-size: 2.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.2);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.carousel-arrow-left {
  left: 32px;
}

.carousel-arrow-right {
  right: 32px;
}

.carousel-arrow.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Modern Navigation Dots */
.carousel-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 50;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.nav-dot.active::before {
  width: 6px;
  height: 6px;
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* Animations - Optimized for mobile */
@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Disable animations on mobile for better performance */
@media (max-width: 768px) {
  .slide-text-content {
    animation: none;
  }

  .slide-badge,
  .slide-title,
  .slide-description,
  .slide-buttons {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Featured Section */
.featured-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f5f5f5;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 86, 210, 0.2);
}

.card-image {
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-card:hover .card-overlay-hover {
  opacity: 1;
}

.btn-view-details {
  padding: 12px 24px;
  background: white;
  color: #333;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-view-details:hover {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #dda25e3c;
  color: #cb791c;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-stats {
  display: flex;
  gap: 1rem;
  color: #999;
  font-size: 0.9rem;
}

/* Preview Section */
.preview-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: slideInBottom 1s ease-out;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
  animation: slideInBottom 1s ease-out 0.2s both;
}

.preview-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  /* Removed backdrop-filter for mobile performance */
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 86, 210, 0.05),
      rgba(0, 86, 210, 0.08));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.preview-card:hover::before {
  opacity: 1;
}

.preview-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 86, 210, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.card-icon {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 86, 210, 0.3);
  transition: transform 0.3s ease;
}

.preview-card:hover .card-icon {
  transform: scale(1.1);
}

.card-badge {
  background: linear-gradient(135deg, #f0f6ff, #e3f0ff);
  color: #0056d2;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 10;
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.preview-items {
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.preview-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #0056d2, #003d99);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-item:hover {
  border-color: #e3f0ff;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.1);
}

.preview-item:hover::before {
  opacity: 1;
}

.preview-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.preview-item:hover .preview-item-icon {
  background: linear-gradient(135deg, #f0f6ff, #d6e8ff);
  transform: scale(1.1);
}

.preview-item-content {
  flex: 1;
  min-width: 0;
}

.preview-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.preview-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.preview-item-date {
  font-weight: 500;
}

.preview-item-size {
  opacity: 0.8;
}

/* No items state */
.no-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border: 2px dashed #e5e7eb;
  border-radius: 16px;
  margin: 16px 0;
}

.no-items-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.no-items-text {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.no-items-subtext {
  font-size: 0.875rem;
  color: #9ca3af;
}

.card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.card-button:hover {
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* Loading and Error States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: #6b7280;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0056d2;
  animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.1s;
  background: #0066e6;
}

.dot:nth-child(3) {
  animation-delay: 0.2s;
  background: #0046b8;
}

.error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  margin: 32px 0;
}

.no-items {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 16px;
}

/* CTA Grid */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  animation: slideInBottom 1s ease-out 0.4s both;
}

.cta-card {
  display: block;
  text-decoration: none;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  color: white;
}

.cta-blue .cta-background {
  background: linear-gradient(135deg, #0056d2, #003d99);
}

.cta-purple .cta-background {
  background: linear-gradient(135deg, #0066e6, #0056d2);
}

.cta-background {
  position: absolute;
  inset: 0;
}

.cta-background::before {
  content: "";
  position: absolute;
  top: -32px;
  right: -32px;
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 10;
  padding: 32px;
  display: flex;
  gap: 16px;
}

.cta-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cta-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-text p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.cta-card:hover .cta-link {
  opacity: 1;
}

/* Additional Animations */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0056d2, #003d99);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0066e6, #0046b8);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #0056d2 #f5f5f5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .slide-text-content {
    max-width: 90%;
  }

  .slide-buttons {
    flex-direction: column;
    align-items: center;
  }

  .slide-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none !important;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-description {
    font-size: 1rem;
  }

  .slide-btn {
    padding: 16px 28px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .carousel-nav {
    bottom: 20px;
  }

  .preview-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  /* Disable expensive hover effects on mobile */
  .preview-card:hover,
  .cta-card:hover,
  .featured-card:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  /* Simplify transitions on mobile */
  .preview-card,
  .cta-card,
  .featured-card {
    transition: box-shadow 0.3s ease;
  }

  /* Disable button hover animations */
  .slide-btn::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .slide-text-content {
    padding: 0 20px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-description {
    font-size: 0.95rem;
  }

  .slide-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    justify-content: center;
  }

  .preview-section {
    padding: 60px 16px;
  }

  .featured-section {
    padding: 60px 16px;
  }

  .preview-card {
    padding: 24px;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .carousel-slides {
    transition: none !important;
  }

  .slide-background {
    transform: none !important;
  }
}/* Notification Styles */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  overflow: hidden;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.notification-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  transition: width 0.05s linear;
  position: relative;
}

/* Notification Types */
.notification-success {
  border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
  background: #d1fae5;
  color: #10b981;
}

.notification-success .notification-message {
  color: #065f46;
}

.notification-success .notification-progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
  background: #fee2e2;
  color: #ef4444;
}

.notification-error .notification-message {
  color: #991b1b;
}

.notification-error .notification-progress-bar {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.notification-warning {
  border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
  background: #fef3c7;
  color: #f59e0b;
}

.notification-warning .notification-message {
  color: #92400e;
}

.notification-warning .notification-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.notification-info {
  border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
  background: #dbeafe;
  color: #3b82f6;
}

.notification-info .notification-message {
  color: #1e40af;
}

.notification-info .notification-progress-bar {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification.slide-out {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: none;
  }
  
  .notification-content {
    padding: 0.875rem 1rem;
  }
  
  .notification-message {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .notification {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
  }
  
  .notification-content {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .notification-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  max-width: 380px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
  border-radius: 24px 24px 0 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  font-size: 1.2rem;
  color: #ef4444;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.login-icon {
  margin-bottom: 20px;
  display: inline-flex;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.login-icon i {
  font-size: 2rem;
}

.modal-body p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 80px;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
body {
  background: linear-gradient(135deg, #f0f6ff 0%, #e3f0ff 50%, #f5f5f5 100%);
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.cours-container {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 1rem;
}

.cours-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cours-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  order: 3;
}

.cours-search,
.cours-filter {
  padding: 0.6rem 0.8rem;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  background-color: #e0e6ec;
  color: black;
  min-width: unset;
  flex-grow: 1;
}

.cours-status {
  padding: 1rem;
  color: #6a737d;
}

.cours-status.error {
  color: #c62828;
}

/* Grid Layout (Mobile-first: single column by default) */
.cours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cours-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cours-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header Disposition */
.cours-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.cours-file-name {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex-grow: 1;
  margin-right: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
}

.badge.ext-pdf {
  background-color: #d32f2f;
}

.badge.ext-docx {
  background-color: #263238;
}

.badge.ext-pptx {
  background-color: #ff8f00;
}

.badge.ext-ppt {
  background-color: #ff8f00;
}

.badge.ext-zip {
  background-color: #00897b;
}

.cours-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.cours-card-meta span {
  font-size: 0.85rem;
  color: #6a737d;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cours-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.cours-card-actions.single-action {
  justify-content: center;
  align-items: center;
}

.cours-card-actions .btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  display: block;
  font-size: 1rem;
}

.btn-preview {
  background-color: #e0e6ec;
  color: #333333;
}

.btn-preview:hover {
  background-color: #ccd1d7;
}

.btn-download {
  background-color: #0056d2;
  color: #ffffff;
}

.btn-download:hover {
  background-color: #003d99;
}

.btn:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  .cours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cours-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .cours-card-actions {
    flex-direction: row;
    gap: 10px;
  }

  .cours-card-actions.single-action {
    justify-content: center;
  }

  .cours-card-actions.single-action .btn {
    flex: 1;
    max-width: 200px;
  }
}

@media (min-width: 1024px) {
  .cours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cours-container {
    padding: 2rem;
  }

  .cours-controls {
    width: auto;
    order: unset;
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Year Selection Grid */
.year-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.year-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.year-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #0056d2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.year-card:hover::before {
  transform: scaleX(1);
}

.year-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--card-color, #0056d2);
}

.year-card-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.year-card-title {
  font-size: 22px;
  margin-bottom: 8px;
  color: #333;
  font-weight: 700;
}

.year-card-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.year-card-arrow {
  color: var(--card-color, #0056d2);
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.year-card:hover .year-card-arrow {
  transform: translateX(8px);
}

/* Module Selection View */
.modules-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.module-card-view {
  background: white;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-card-view:hover {
  border-color: #0056d2;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.module-icon {
  flex-shrink: 0;
}

.module-card-view h3 {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin: 0;
}

.module-arrow {
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
}

/* Back Button */
.btn-back {
  background: #f5f5f5;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
  margin-right: 16px;
}

.btn-back:hover {
  background: #e0e0e0;
  color: #333;
}

.cours-title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.05) 0%, rgba(0, 86, 210, 0.08) 100%);
  border-radius: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.cours-title {
  color: #0056d2;
  font-weight: 800;
  margin: 0;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #0056d2 0%, #0066e6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cours-subtitle {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

/* Link URL in card */
.link-url {
  font-size: 12px;
  color: #0056d2;
  word-break: break-all;
  display: block;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .years-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid-view {
    grid-template-columns: 1fr;
  }

  .year-card {
    padding: 24px 16px;
  }

  .year-icon {
    width: 60px;
    height: 60px;
  }

  .cours-title-section {
    padding: 20px 16px;
  }

  .cours-title {
    font-size: 2rem;
  }

  .cours-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cours-title {
    font-size: 1.75rem;
  }

  .cours-subtitle {
    font-size: 0.95rem;
  }

  .cours-title-section {
    padding: 16px 12px;
    gap: 8px;
  }
}/* About & Contact Pages - Light Academic Theme with AC prefix to avoid conflicts */
.ac-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ac-page-container * {
    box-sizing: border-box;
}

/* Animated background elements */
.ac-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 86, 210, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 86, 210, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 86, 210, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.ac-page-container>* {
    position: relative;
    z-index: 1;
}

/* Header Styles - Shared */
.ac-page-header {
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.ac-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.ac-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0056d2, #003d99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ac-page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content - Shared */
.ac-page-main {
    padding: 60px 20px 80px;
    width: 100%;
    max-width: 100vw;
}

.ac-content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Hero Section - About Page */
.ac-hero-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100vw;
}

.ac-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

.ac-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ac-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 210, 0.1), transparent);
    transition: left 0.6s ease;
}

.ac-profile-card:hover::before {
    left: 100%;
}

.ac-profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 86, 210, 0.15);
    border-color: rgba(0, 86, 210, 0.3);
}

.ac-profile-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0056d2, #003d99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 86, 210, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ac-profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.ac-profile-image:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.ac-profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 86, 210, 0.4);
}

.ac-professor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.ac-professor-title {
    font-size: 1.1rem;
    color: #0056d2;
    font-weight: 600;
    margin-bottom: 4px;
}

.ac-university {
    color: #64748b;
    font-size: 1rem;
}

.ac-intro-text {
    max-width: 500px;
}

.ac-intro-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ac-intro-text p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
}

/* Stats Section - About Page */
.ac-stats-section {
    padding: 60px 20px;
    background: white;
    width: 100%;
    max-width: 100vw;
}

.ac-stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ac-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ac-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.05), rgba(0, 86, 210, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ac-stat-item:hover::before {
    opacity: 1;
}

.ac-stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 86, 210, 0.15);
    background: white;
    border-color: rgba(0, 86, 210, 0.2);
}

.ac-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0056d2, #003d99);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ac-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.ac-stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Teaching Section - About Page */
.ac-teaching-section {
    padding: 80px 20px;
    background: #f8fafc;
    width: 100%;
    max-width: 100vw;
}

.ac-section-header {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.ac-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.ac-section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.ac-subjects-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ac-subject-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ac-subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.03), rgba(0, 86, 210, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ac-subject-card:hover::before {
    opacity: 1;
}

.ac-subject-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 86, 210, 0.15);
    border-color: #0056d2;
}

.ac-subject-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0f6ff, #d6e8ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0056d2;
    margin-bottom: 20px;
}

.ac-subject-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.ac-subject-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ac-subject-levels {
    display: flex;
    gap: 8px;
}

.ac-level-tag {
    background: #0056d2;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Background Section - About Page */
.ac-background-section {
    padding: 80px 20px;
    background: white;
    width: 100%;
    max-width: 100vw;
}

/* Contact Section */
.ac-contact-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.ac-contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.ac-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.ac-background-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.ac-background-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.ac-education-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ac-education-item:last-child {
    border-bottom: none;
}

.ac-education-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.ac-education-item p {
    color: #64748b;
    font-size: 1rem;
}

.ac-research-interests {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.ac-research-interests h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.ac-research-interests ul {
    list-style: none;
    padding: 0;
}

.ac-research-interests li {
    color: #475569;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.ac-research-interests li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Info Section - Contact Page */
.ac-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ac-info-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ac-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 210, 0.1), transparent);
    transition: left 0.6s ease;
}

.ac-info-card:hover::before {
    left: 100%;
}

.ac-info-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 86, 210, 0.15);
    border-color: rgba(0, 86, 210, 0.3);
}

.ac-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ac-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f6ff, #d6e8ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056d2;
    font-size: 1.1rem;
}

.ac-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Contact Items */
.ac-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.ac-contact-item:last-child {
    margin-bottom: 0;
}

.ac-contact-item i {
    color: #0056d2;
    font-size: 1.1rem;
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

.ac-contact-item strong {
    color: #374151;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.ac-contact-item p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Schedule Items */
.ac-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ac-schedule-item:last-of-type {
    border-bottom: none;
}

.ac-schedule-item span:first-child {
    font-weight: 500;
    color: #374151;
}

.ac-schedule-item span:last-child {
    color: #64748b;
    font-size: 0.9rem;
}

/* Resource Links */
.ac-resource-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ac-resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ac-resource-link:hover {
    background: #f0f6ff;
    border-color: #0056d2;
    color: #1e293b;
    transform: translateX(4px);
}

.ac-resource-link i:first-child {
    color: #0056d2;
    width: 16px;
}

.ac-resource-link i:last-child {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ac-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ac-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ac-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ac-subjects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ac-background-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ac-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ac-page-header {
        padding: 60px 20px 40px;
    }

    .ac-page-title {
        font-size: 2.5rem;
    }

    .ac-page-main {
        padding: 40px 20px 60px;
    }

    .ac-hero-section {
        padding: 60px 20px;
    }

    .ac-intro-text h2 {
        font-size: 2rem;
    }

    .ac-section-header h2 {
        font-size: 2rem;
    }

    .ac-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ac-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ac-profile-card {
        padding: 30px;
    }

    .ac-subject-card {
        padding: 24px;
    }

    .ac-info-card {
        padding: 20px;
    }

    .ac-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ac-card-icon {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .ac-page-title {
        font-size: 2rem;
    }

    .ac-profile-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .ac-professor-name {
        font-size: 1.5rem;
    }

    .ac-intro-text h2 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Enhanced research interests */
.ac-research-interests h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-research-interests ul {
    list-style: none;
    padding: 0;
}

.ac-research-interests li {
    color: #475569;
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 4px;
}

.ac-research-interests li:hover {
    background: rgba(0, 86, 210, 0.05);
    color: #1e293b;
    transform: translateX(4px);
}

.ac-research-interests li::before {
    content: '•';
    color: #0056d2;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Email container with copy button */
.ac-email-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-contact-email {
    margin: 0;
    flex: 1;
}

.ac-copy-button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    min-width: 32px;
    height: 32px;
}

.ac-copy-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
    transform: scale(1.05);
}

.ac-copy-button:active {
    transform: scale(0.95);
}

.ac-copy-button.copied {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #16a34a;
}

.ac-copy-button.copied:hover {
    background: #bbf7d0;
    border-color: #86efac;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}.seminars-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f5f5 0%, #e3f0ff 50%, #f5f5f5 100%);
  padding: 0;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow-x: hidden;
}

.seminars-hero {
  background: linear-gradient(#0056d2 0%, #003d99 90%, #f5f5f5 100%);
  padding: 120px 20px 80px 20px;
  text-align: center;
  color: white;
  width: 100vw;
  margin: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
}

.seminars-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.seminars-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

.seminars-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.seminars-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 86, 210, 0.2);
  border-top-color: #0056d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.seminars-loading p {
  color: #6b7280;
  font-size: 1.125rem;
}

.events-section {
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-controls label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.sort-select:hover {
  border-color: #0056d2;
}

.sort-select:focus {
  outline: none;
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.event-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 86, 210, 0.12);
  border-color: rgba(0, 86, 210, 0.3);
}

.event-card.ongoing-event {
  border-left: 4px solid #fbbf24;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.3), rgba(255, 255, 255, 0.95));
}

.event-card.ongoing-event:hover {
  border-left-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.event-card.past-event {
  opacity: 0.85;
}

.event-card.past-event:hover {
  opacity: 1;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-type {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-type-conference {
  background: linear-gradient(135deg, #f0f6ff, #d6e8ff);
  color: #003d99;
}

.event-type-seminar {
  background: linear-gradient(135deg, #e3f0ff, #c7e0ff);
  color: #0046b8;
}

.event-type-workshop {
  background: linear-gradient(135deg, #f0f6ff, #e3f0ff);
  color: #0056d2;
}

.event-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-status.upcoming {
  background: #dcfce7;
  color: #166534;
}

.event-status.ongoing {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0);
  }
}

.event-status.past {
  background: #f3f4f6;
  color: #6b7280;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0;
}

.event-description {
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.875rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 0.9rem;
}

.event-detail svg {
  color: #0056d2;
  font-size: 1rem;
  flex-shrink: 0;
}

.event-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.event-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.3);
  color: white;
}

.event-link svg:first-child {
  font-size: 1.1rem;
}

.event-link svg:last-child {
  font-size: 0.85rem;
}

.no-events {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}

.no-events svg {
  font-size: 4rem;
  color: #9ca3af;
  opacity: 0.5;
}

.no-events h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.no-events p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .seminars-hero {
    padding: 60px 20px;
  }

  .seminars-content {
    padding: 40px 16px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-card {
    padding: 24px;
  }

  .event-title {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    min-width: auto;
    flex: 1;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .event-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-type {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}.turnstile-widget {
  margin: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.turnstile-widget iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Integration with login form */
.login-form .turnstile-widget {
  margin: 20px 0;
  padding: 10px 0;
}

/* Loading state */
.turnstile-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65px;
  color: #666;
  font-size: 14px;
}

.turnstile-loading::before {
  content: "Chargement de la vérification...";
}/* Import/Reuse of base styles from home.css */
/* Assuming home.css is imported or its global styles are applied */
/* Reusing:
 * { margin: 0; padding: 0; box-sizing: border-box; }
 * html { scroll-behavior: smooth; }
 * body { font-family... }
 * .container (gradient background)
 * .background-elements, .floating-shape, shape-1/2/3, @keyframes float-bg
 * .floating-card, card-1/2/3/4, @keyframes float
 * .btn, .btn-primary, .btn-primary:hover
 * @media queries for a responsive design
 * @media (prefers-reduced-motion)
 */

/* Base styles that match home.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* Container with gradient background */
.container {
  padding-top: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f6ff 0%, #e3f0ff 50%, #f5f5f5 100%);
  position: relative;
  min-width: 100vw;
}

/* Background Elements */
.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.1), rgba(0, 86, 210, 0.15));
  animation: float-bg 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: -14s;
}

@keyframes float-bg {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }

  33% {
    transform: translateY(-30px) rotate(120deg);
    opacity: 0.8;
  }

  66% {
    transform: translateY(30px) rotate(240deg);
    opacity: 0.3;
  }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  animation: float 15s ease-in-out infinite;
}

.card-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.card-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 20%;
  animation-delay: -5s;
}

.card-3 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 10%;
  animation-delay: -10s;
}

.card-4 {
  width: 70px;
  height: 70px;
  top: 40%;
  right: 15%;
  animation-delay: -15s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0056d2 0%, #003d99 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0066e6 0%, #0046b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.4);
}

/* Login Specific Styles */
.login-container {
  /* Ensure the background elements are behind the login content */
  margin-top: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Override home.css padding-top to center vertically */
  padding-top: 0;
}

.login-section {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 100%;
  width: 440px;
  /* Max width for the card */
  margin: auto;
  margin-top: 10px;
}

.login-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Adjust perspective for floating cards */
  perspective: 1000px;
}

.login-floating-cards {
  position: absolute;
  /* Center the floating cards and adjust size */
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(10deg) scale(1.1);
  opacity: 0.5;
  /* Make them subtle background elements */
  filter: blur(5px);
  z-index: 5;
  /* Behind the main card */
  pointer-events: none;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 86, 210, 0.2);
  position: relative;
  z-index: 10;
  width: 100%;
  animation: slideInBottom 1s ease-out;
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  display: inline-flex;
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  padding: 16px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0, 86, 210, 0.3);
  font-size: 1.5rem;
}

.login-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #1f2937;
}

/* Reusing .title-line-2 for the colorful text effect */
.login-title .title-line-2 {
  display: inline;
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
  color: #0056d2;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  padding: 4px;
  border-radius: 4px;
}

.password-toggle:hover {
  color: #0056d2;
  background: rgba(0, 86, 210, 0.1);
}

.password-toggle:focus {
  outline: none;
  color: #0056d2;
  background: rgba(0, 86, 210, 0.1);
}

.login-form input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  /* Add padding for the icon */
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: #f9fafb;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
  background: white;
}

.login-form input::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.login-form input:focus::placeholder {
  color: #d1d5db;
}

.btn-login {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1.1rem;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-login:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.btn-login:disabled::before {
  display: none;
}

.login-footer {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.login-footer a {
  color: #0056d2;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.login-footer a:hover {
  color: #0066e6;
  text-decoration: underline;
}

/* Error Styles */
.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  animation: errorSlideIn 0.3s ease-out;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-error {
  margin: 0;
}

.error i {
  color: #dc2626;
  font-size: 1rem;
}

/* Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .login-section {
    width: 100%;
    padding: 20px 15px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .login-title {
    font-size: 2rem;
  }

  .floating-shape {
    opacity: 0.3;
  }

  .shape-1 {
    width: 200px;
    height: 200px;
  }

  .shape-2 {
    width: 150px;
    height: 150px;
  }

  .shape-3 {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .login-form input {
    padding: 12px 12px 12px 44px;
    font-size: 0.95rem;
  }

  .input-group .input-icon {
    left: 14px;
    font-size: 0.9rem;
  }

  .password-toggle {
    right: 14px;
    font-size: 0.9rem;
  }
}

.btn-login {
  padding: 14px 20px;
  font-size: 1rem;
  min-height: 50px;
}

.floating-shape {
  display: none;
}
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shape,
  .floating-card {
    animation: none;
  }
}.file-manager {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  width: 100%;
}

.GTitle {
  font-weight: bolder !important;
}

.file-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.file-manager-header h3 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.file-manager-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.year-selector {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: #2c3e50;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.year-selector:focus {
  outline: none;
  border-color: #0056d2;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0066e6, #0046b8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 86, 210, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #1d405e 0%, #264f6d 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(29, 64, 94, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #264f6d 0%, #1d405e 100%);
  box-shadow: 0 6px 20px rgba(29, 64, 94, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: auto;
  white-space: nowrap;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
}

.btn-success {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #0066e6, #0046b8);
  box-shadow: 0 6px 16px rgba(0, 86, 210, 0.4);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: modalOverlayFadeIn 0.3s ease-out;
}

@keyframes modalOverlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.upload-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.75rem;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 25px 50px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.upload-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0056d2, #0066e6, #0076ff);
  border-radius: 24px 24px 0 0;
}

.upload-modal-content.confirm-modal {
  max-width: 400px;
}

.modal-body {
  padding: 1.5rem 0;
}

.modal-body p {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.warning-text {
  color: #e74c3c;
  font-weight: 500;
  font-size: 0.9rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.upload-modal-header h4 {
  color: #1f2937;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  font-size: 1.2rem;
  color: #ef4444;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  border: 2px solid rgba(0, 86, 210, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0056d2;
  box-shadow:
    0 0 0 3px rgba(0, 86, 210, 0.1),
    0 4px 12px rgba(0, 86, 210, 0.15);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input[type="file"] {
  padding: 12px;
  border: 2px dashed rgba(0, 86, 210, 0.3);
  background: rgba(0, 86, 210, 0.05);
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: rgba(0, 86, 210, 0.5);
  background: rgba(0, 86, 210, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 86, 210, 0.1);
}

.files-list {
  margin-top: 2rem;
}

.no-files {
  text-align: center;
  padding: 3rem;
  color: #7f8c8d;
}

.no-files svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-modules-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px dashed #cbd5e0;
  margin: 2rem 0;
  min-height: 400px;
}

.no-modules-icon {
  font-size: 80px;
  color: #0056d2;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.no-modules-found h3 {
  color: #2c3e50;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.no-modules-found p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  max-width: 500px;
}

.no-modules-found .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.no-modules-found .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
}

.no-resources-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 16px;
  border: 2px dashed #feb2b2;
  margin: 2rem 0;
  min-height: 350px;
}

.no-resources-icon {
  font-size: 70px;
  color: #e53e3e;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.no-resources-found h3 {
  color: #2c3e50;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.no-resources-found p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  max-width: 500px;
}

.no-resources-found .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.no-resources-found .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
}

.bulk-actions {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.file-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 86, 210, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.file-card:hover {
  border-color: #0056d2;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.15);
}

.file-card.selected {
  border-color: #0056d2;
  background: rgba(240, 246, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.2);
}

.file-checkbox {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.file-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0056d2;
}

.file-icon {
  font-size: 2rem;
  text-align: center;
}

.file-info h4 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.file-meta {
  color: #7f8c8d;
  margin: 0;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.file-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.file-actions.single-view-action {
  gap: 0.5rem;
}

.file-actions.single-view-action .btn-sm {
  flex: 1;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .file-manager {
    padding: 1.5rem;
  }

  .file-manager-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .file-manager-controls {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }

  .upload-modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .year-selector {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .file-manager {
    padding: 1rem;
  }

  .file-card {
    padding: 0.875rem;
    min-height: 160px;
  }

  .file-actions {
    gap: 0.15rem;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    justify-content: center;
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced FileManager Modal Responsive Styles */
@media (max-width: 768px) {
  .upload-modal-content {
    width: 95%;
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .upload-modal-header h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .upload-modal {
    padding: 1rem;
  }

  .upload-modal-content {
    width: 100%;
    padding: 1.5rem;
    margin: 0;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* FileManager Modal Scrollbar */
.upload-modal-content::-webkit-scrollbar {
  width: 6px;
}

.upload-modal-content::-webkit-scrollbar-track {
  background: rgba(16, 185, 129, 0.1);
  border-radius: 3px;
}

.upload-modal-content::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 3px;
}

.upload-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Module View Styles */
.modules-view {
  margin-top: 20px;
}

.modules-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.module-display-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(0, 86, 210, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.module-display-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.15);
  border-color: #0056d2;
}

.module-display-header {
  padding: 24px;
  background: linear-gradient(135deg, #0056d2 0%, #003d99 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.module-display-header:hover {
  background: linear-gradient(135deg, #0066e6 0%, #0046b8 100%);
}

.module-display-icon {
  font-size: 36px;
  opacity: 0.95;
  flex-shrink: 0;
}

.module-display-title h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.module-display-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-display-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border-left: 4px solid #0056d2;
  transition: all 0.2s ease;
}

.module-display-stat:hover {
  background: rgba(241, 245, 249, 0.9);
  transform: translateX(4px);
}

.stat-icon-display {
  font-size: 22px;
  color: #0056d2;
  flex-shrink: 0;
}

.stat-info-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat-label-display {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value-display {
  font-size: 17px;
  color: #333;
  font-weight: 700;
}

.module-display-footer {
  padding: 16px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.module-display-footer .btn-sm {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

/* Renommer button - Beautiful deep blue */
.module-display-footer .btn-secondary {
  background: linear-gradient(135deg, #1d405e 0%, #264f6d 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(29, 64, 94, 0.3);
}

.module-display-footer .btn-secondary:hover {
  background: linear-gradient(135deg, #264f6d 0%, #2dc1db 100%) !important;
  box-shadow: 0 6px 20px rgba(29, 64, 94, 0.5);
  transform: translateY(-2px);
}

.module-edit-inline {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-edit-inline input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.module-edit-inline input:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.edit-actions {
  display: flex;
  gap: 10px;
}

.edit-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px;
  font-size: 16px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.module-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 86, 210, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.module-card-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #0056d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.15);
}

.module-info-click {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.module-actions {
  display: flex;
  gap: 8px;
}

.module-edit {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.module-edit input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #007bff;
  border-radius: 6px;
  font-size: 14px;
}

.module-edit input:focus {
  outline: none;
  border-color: #0056b3;
}

.file-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
  overflow-wrap: break-word;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .module-card-item {
    flex-direction: column;
    gap: 12px;
  }

  .module-info-click {
    width: 100%;
  }

  .module-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .module-display-card {
    min-height: 260px;
  }

  .module-display-footer {
    flex-direction: column;
  }

  .module-display-footer .btn-sm {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .module-display-header {
    padding: 20px;
  }

  .module-display-icon {
    font-size: 28px;
  }

  .module-display-title h5 {
    font-size: 15px;
  }

  .module-display-body {
    padding: 20px;
  }

  .no-modules-found,
  .no-resources-found {
    padding: 3rem 1.5rem;
    min-height: 300px;
  }

  .no-modules-icon,
  .no-resources-icon {
    font-size: 60px;
  }

  .no-modules-found h3,
  .no-resources-found h3 {
    font-size: 1.5rem;
  }

  .no-modules-found p,
  .no-resources-found p {
    font-size: 1rem;
  }

  .no-modules-found .btn,
  .no-resources-found .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}/* Base styles matching home.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container styles removed - now handled by dashboard */

.user-manager {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  width: 100%;
  position: relative;
  overflow: visible;
  isolation: auto;
}

.user-manager::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.05),
      rgba(147, 51, 234, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.user-manager:hover::before {
  opacity: 1;
}

.user-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  z-index: 10;
}

.user-manager-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button styles matching theme */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 86, 210, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #374151;
  border: 2px solid rgba(0, 86, 210, 0.2);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 86, 210, 0.3);
  transform: translateY(-2px);
  color: #374151;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
  color: white;
}

/* Users Grid Layout */
.users-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

/* User Card Styles - Matching preview cards from home */
.user-card {
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  animation: slideInBottom 1s ease-out;
}

/* Student Card Styling */
.student-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Admin Card Styling - Distinctive Design */
.admin-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}



.student-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 86, 210, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.admin-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}

/* User Card Header */
.user-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Admin card header without status toggle */
.admin-card .user-card-header {
  justify-content: flex-start;
}

.user-avatar {
  color: white;
  padding: 12px;
  border-radius: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.student-card .user-avatar {
  background: linear-gradient(135deg, #0056d2, #003d99);
  box-shadow: 0 8px 20px rgba(0, 86, 210, 0.3);
}

.admin-card .user-avatar {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.user-card:hover .user-avatar {
  transform: scale(1.1);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
}

.role-badge {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #3730a3;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

.role-badge.admin {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #991b1b;
}

.role-badge.student {
  background: linear-gradient(135deg, #f0f6ff, #d6e8ff);
  color: #003d99;
}

.status-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 86, 210, 0.2);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
}

.status-toggle.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.status-toggle.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.status-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.admin-status-badge {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

/* User Card Body */
.user-card-body {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.user-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.user-detail:hover {
  border-color: #e3f0ff;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
}

.user-detail:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.detail-value {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.status-indicator {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-indicator.active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.status-indicator.inactive {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #991b1b;
}

/* User Card Actions */
.user-card-actions {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 10;
}

.user-card-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.875rem;
  justify-content: center;
}

.btn-edit {
  background: linear-gradient(135deg, #0066e6, #0056d2);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 86, 210, 0.3);
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.4);
  color: white;
}

.btn-delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
  color: white;
}

/* No Users Message */
.no-users-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px dashed rgba(0, 86, 210, 0.3);
  border-radius: 20px;
  position: relative;
  z-index: 10;
}

.no-users-icon {
  font-size: 3rem;
  color: #0056d2;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.no-users-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-users-message p {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
}

/* Modal Styles - Matching FileManager theme */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(0, 86, 210, 0.1), rgba(0, 86, 210, 0.08));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999 !important;
  padding: 2rem;
  animation: modalOverlayFadeIn 0.3s ease-out;
  margin: 0 !important;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  transform: none !important;
  isolation: isolate;
}



@keyframes modalOverlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}



/* Ensure modal is not affected by parent containers */
.modal-overlay * {
  box-sizing: border-box;
}

/* Force modal to break out of any container constraints */
body>.modal-overlay,
#root>.modal-overlay,
.user-manager>.modal-overlay {
  position: fixed !important;
  z-index: 99999 !important;
  inset: 0 !important;
  transform: none !important;
  contain: none !important;
}

/* Reset any potential transform or positioning issues */
.user-manager .modal-overlay {
  transform: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

/* Ensure modal content is properly centered */
.user-manager .modal-content {
  position: relative;
  transform: none;
  z-index: 100000;
}

/* Smooth scrolling for modal content */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 25px 50px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}



.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0056d2, #0066e6, #0076ff);
  border-radius: 20px 20px 0 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 86, 210, 0.1);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  font-size: 1.2rem;
  color: #ef4444;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.modal-body {
  margin-bottom: 1.25rem;
}

.modal-body p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  padding: 1rem 0;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 86, 210, 0.1);
}

/* Form Styles */
.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #0056d2;
  font-size: 1.1rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
  color: #0066e6;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  padding: 4px;
  border-radius: 4px;
}

.password-toggle:hover {
  color: #0056d2;
  background: rgba(0, 86, 210, 0.1);
}

.password-toggle:focus {
  outline: none;
  color: #0056d2;
  background: rgba(0, 86, 210, 0.1);
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.input-group input:disabled {
  background: rgba(243, 244, 246, 0.8);
  color: #9ca3af;
  cursor: not-allowed;
}

.input-group input::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.input-group input:focus::placeholder {
  color: #d1d5db;
}

.select-group {
  margin-bottom: 1rem;
}

.select-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.select-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.select-group select:focus {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.select-group select:disabled {
  background: rgba(243, 244, 246, 0.8);
  color: #9ca3af;
  cursor: not-allowed;
  border-color: rgba(209, 213, 219, 0.5);
}

.select-group select:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Animations */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Animation Enhancements */
.user-card:nth-child(1) {
  animation-delay: 0.1s;
}

.user-card:nth-child(2) {
  animation-delay: 0.2s;
}

.user-card:nth-child(3) {
  animation-delay: 0.3s;
}

.user-card:nth-child(4) {
  animation-delay: 0.4s;
}

.user-card:nth-child(5) {
  animation-delay: 0.5s;
}

.user-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Disabled States */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn:disabled::before {
  display: none;
}

.status-toggle:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.modal-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .users-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 1200px) {
  .users-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .user-manager {
    padding: 1.5rem;
  }

  .user-manager-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }

  .user-manager-header h1 {
    font-size: 2rem;
  }

  .users-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .user-card {
    padding: 1.5rem;
  }

  .user-card-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .user-avatar {
    padding: 10px;
    font-size: 1.1rem;
  }

  .user-name {
    font-size: 1.1rem;
  }

  .role-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .status-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .user-card-actions {
    gap: 0.6rem;
  }

  .user-card-actions .btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
    max-width: 380px;
    padding: 1.25rem;
    margin: 1rem auto;
  }

  .modal-overlay {
    padding: 1rem;
    align-items: flex-start;
  }



  .modal-header h2 {
    font-size: 1.3rem;
  }

  .input-group input {
    padding: 14px 14px 14px 46px;
  }

  .input-group .input-icon {
    left: 14px;
    font-size: 1rem;
  }

  .password-toggle {
    right: 14px;
    font-size: 1rem;
  }

  .select-group select {
    padding: 12px 14px;
    padding-right: 36px;
  }
}

@media (max-width: 480px) {
  .user-manager {
    padding: 1rem;
  }

  .user-manager-header h1 {
    font-size: 1.75rem;
  }

  .users-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .user-card {
    padding: 1rem;
  }

  .user-card-header {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .user-avatar {
    padding: 8px;
    font-size: 1rem;
  }

  .user-name {
    font-size: 1rem;
  }

  .role-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
  }

  .status-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .user-card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .user-card-actions .btn {
    padding: 12px;
    font-size: 0.85rem;
  }

  .no-users-message {
    padding: 3rem 1.5rem;
  }

  .no-users-icon {
    font-size: 2.5rem;
  }

  .no-users-message h3 {
    font-size: 1.25rem;
  }

  .no-users-message p {
    font-size: 0.9rem;
  }

  .modal-overlay {
    padding: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }



  .modal-content {
    width: 100%;
    max-width: 350px;
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .input-group input {
    padding: 12px 12px 12px 42px;
    font-size: 0.95rem;
  }

  .input-group .input-icon {
    left: 12px;
    font-size: 0.9rem;
  }

  .password-toggle {
    right: 12px;
    font-size: 0.9rem;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #0056d2, #003d99);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0066e6, #0046b8);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #0056d2 #f1f5f9;
}/* Seminar Manager Styles */
.seminar-manager {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  width: 100%;
}

.seminar-manager.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  font-size: 1.1rem;
  color: #64748b;
}

.seminar-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.seminar-manager-header h3 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.no-seminars {
  text-align: center;
  padding: 3rem;
  color: #7f8c8d;
}

.no-seminars svg {
  margin-bottom: 1rem;
  opacity: 0.5;
  color: #cbd5e1;
}

.seminars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.seminar-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 86, 210, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #0056d2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.seminar-card:hover {
  border-color: #0056d2;
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.15);
  transform: translateY(-2px);
}

.seminar-card.past {
  opacity: 0.65;
  background: rgba(248, 249, 250, 0.9);
  border-left-color: #94a3b8;
}

.past-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.seminar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.seminar-type-badge {
  background: linear-gradient(135deg, #f0f6ff, #e3f0ff);
  color: #003d99;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
  text-align: center;
  border: 1px solid rgba(0, 86, 210, 0.2);
}

.seminar-card.past .seminar-type-badge {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.3);
}

.seminar-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border-left: 3px solid rgba(0, 86, 210, 0.3);
}

.delete-btn {
  background: rgba(254, 226, 226, 0.8);
  color: #dc2626;
  border: 1px solid rgba(252, 165, 165, 0.5);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.delete-btn:hover {
  background: rgba(252, 202, 202, 0.9);
  border-color: rgba(252, 165, 165, 0.8);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.seminar-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seminar-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.875rem;
}

.seminar-detail svg {
  color: #64748b;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.seminar-card.past .seminar-detail svg {
  color: #94a3b8;
}

.seminar-detail a {
  color: #0056d2;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seminar-detail a:hover {
  color: #003d99;
  text-decoration: underline;
}

.seminar-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .seminar-manager {
    padding: 1.5rem;
  }

  .seminar-manager-header {
    flex-direction: column;
    align-items: stretch;
  }

  .seminars-grid {
    grid-template-columns: 1fr;
  }

  .seminar-card {
    padding: 1.25rem;
  }

  .seminar-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .delete-btn {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .seminar-manager {
    padding: 1rem;
  }

  .seminar-card {
    padding: 1rem;
  }

  .seminar-detail {
    font-size: 0.9rem;
  }
}

/* Spinner animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f6ff 0%, #e3f0ff 50%, #f5f5f5 100%);
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-title h1 {
  background: linear-gradient(135deg, #0056d2, #003d99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.dashboard-title p {
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

.dashboard-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 0.5rem;
}

.tab-button {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.95rem;
}

.tab-button:hover {
  background: rgba(0, 86, 210, 0.1);
  color: #0056d2;
}

.tab-button.active {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.3);
}

.tab-button svg {
  font-size: 1.1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  width: auto;
  min-width: fit-content;
}

.btn-primary {
  background: linear-gradient(135deg, #0056d2, #003d99);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 86, 210, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0056d2;
  border: 2px solid #b3d9ff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card.blue .stat-icon {
  background: linear-gradient(135deg, #0056d2, #003d99);
}

.stat-card.green .stat-icon {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stat-card.orange .stat-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.purple .stat-icon {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.stat-content p {
  margin: 0.5rem 0 0 0;
  color: #7f8c8d;
  font-size: 0.95rem;
}

.dashboard-content {
  width: 100%;
}

.dashboard-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-section h2 {
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.action-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  padding: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.action-card:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-card svg {
  font-size: 1.5rem;
  color: #0056d2;
}

.action-card span {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.activity-item:hover {
  background: #e9ecef;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.activity-icon.course {
  background: #0056d2;
}

.activity-icon.user {
  background: #2ecc71;
}

.activity-icon.assignment {
  background: #f39c12;
}

.activity-icon.system {
  background: #9b59b6;
}

.activity-content p {
  margin: 0;
  color: #2c3e50;
  font-weight: 500;
}

.activity-content span {
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .dashboard-tabs {
    flex-direction: column;
  }

  .tab-button {
    justify-content: flex-start;
  }

  .dashboard-title h1 {
    font-size: 2rem;
  }

  .dashboard-actions {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-actions .btn {
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 1.5rem;
  }

  .dashboard-section {
    padding: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }
}.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 2rem;
  gap: 16px;
}

.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: modernSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

@keyframes modernSpin {
  0% { 
    transform: rotate(0deg);
    border-top-color: #3b82f6;
  }
  25% {
    border-top-color: #8b5cf6;
  }
  50% { 
    transform: rotate(180deg);
    border-top-color: #06b6d4;
  }
  75% {
    border-top-color: #10b981;
  }
  100% { 
    transform: rotate(360deg);
    border-top-color: #3b82f6;
  }
}

.loading-text {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Modern loading dots */
.loading-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loading-container {
    min-height: 150px;
    padding: 1.5rem;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .loading-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .loading-container {
    min-height: 120px;
    padding: 1rem;
  }
  
  .loading-spinner {
    width: 36px;
    height: 36px;
  }
  
  .loading-text {
    font-size: 0.85rem;
  }
}.App {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

main {
  margin-top: 2rem;
  width: 100%;
}

/* Global button fixes for mobile */
@media (max-width: 768px) {

  button.btn,
  .btn {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 12px 16px !important;
  }

  /* Ensure buttons don't hug left */
  button.btn,
  .btn {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}