/* =============================================
   STUDENT DETAIL MODAL STYLES
   Theme: Jungle, Gold, Ivory (Modern & Clean)
   ============================================= */

:root {
  /* Brand Colors */
  --color-jungle: #128E5A;
  --color-jungle-dark: #0B5E3B;
  --color-rose: #be123c;
  --color-rose-dark: #9f1239;
  --color-gold: #FFF600;
  --color-gold-dim: #D4C000;
  --color-ivory: #FFFFF0;
  --color-ink: #022c22;
}

.student-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.student-modal.active {
  display: flex;
  opacity: 1;
}

.student-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 44, 34, 0.6);
  /* Ink with opacity */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  cursor: pointer;
  transition: background 0.3s ease;
}

.student-modal-content {
  position: relative;
  /* Background handled by Tailwind (bg-ivory) */
  border-radius: 2rem;
  /* Matches rounded-3xl/2rem */
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--color-jungle) transparent;
}

.student-modal-content::-webkit-scrollbar {
  width: 6px;
}

.student-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.student-modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(18, 142, 90, 0.3);
  border-radius: 10px;
}

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

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

/* Mobile Responsive - Keep card look but ensure it fits */
@media (max-width: 640px) {
  .student-modal-content {
    max-height: 85vh;
    /* Keep rounded corners */
    border-radius: 1.5rem;
    /* Allow some spacing */
    width: 100%;
    height: auto;
  }
}
}
}