/* ================================================================
   PHASE 8: MODALS & OVERLAYS STYLES
   Sophia College STARS - Reengagement Room System
   Extracted from inline styles - January 2026
   ================================================================ */

/* ================== MODAL SIZES ================== */
.modal-sm { 
  max-width: 400px; 
}

.modal-md { 
  max-width: 600px; 
}

.modal-lg { 
  max-width: 800px; 
}

.modal-fullscreen { 
  max-width: 95vw; 
  max-height: 95vh; 
  width: 95vw; 
  height: 95vh; 
}

/* ================== MODAL CONTAINER ================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  contain: layout style;
  will-change: opacity, transform;
}

/* ================== MODAL CONTENT ================== */
.modal-content {
  background: var(--card);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ================== MODAL HEADER ================== */
.modal-header {
  background: var(--nav-bg);
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

/* ================== MODAL CLOSE BUTTON ================== */
.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--spacing-xs);
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
}

/* ================== MODAL BODY ================== */
.modal-body {
  padding: var(--spacing-xl);
}

/* ================== MODAL FOOTER ================== */
.modal-footer {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* ================== DROP ZONE ================== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  padding: var(--spacing-2xl);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--border-light);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: #fff5f5;
}

.drop-zone-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

.drop-zone-text {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.drop-zone-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ================== PROGRESS STEPS (MULTI-STEP MODALS) ================== */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

/* ================== RESPONSIVE MOBILE STYLES ================== */
@media (max-width: 768px) {
  /* Enhanced mobile modals */
  .modal-content {
    width: 98%;
    margin: var(--spacing-sm);
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .modal-fullscreen {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .drop-zone {
    padding: var(--spacing-lg);
  }

  .drop-zone-icon {
    font-size: 1.5rem;
  }
}
