@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #fafafa;
  color: #111;
}

/* Neobrutalist custom utilities */
.neo-shadow {
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
}
.neo-shadow-sm {
  box-shadow: 2px 2px 0px rgba(0,0,0,1);
}

/* Button click effects */
button.neo-shadow:active:not(:disabled) {
  box-shadow: 1px 1px 0px rgba(0,0,0,1);
  transform: translate(3px, 3px);
}
button.neo-shadow-sm:active:not(:disabled) {
  box-shadow: 1px 1px 0px rgba(0,0,0,1);
  transform: translate(1px, 1px);
}

/* Minimal Scrollbar matching Website Design */
* {
  scrollbar-width: thin;
  scrollbar-color: #111111 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-track:hover {
  background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
  background-color: #111111;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #2563eb;
}

::-webkit-scrollbar-thumb:active {
  background-color: #1d4ed8;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Scrollable session list */
.session-scroll {
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
@media (min-width: 640px) {
  .modal-backdrop {
    padding: 1rem;
  }
}

/* Session card hover */
.session-card {
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.session-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px rgba(0,0,0,1);
}
.session-card:active {
  transform: none;
  box-shadow: 1px 1px 0px rgba(0,0,0,1);
}

/* Disabled add-student button */
#addStudentBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #9ca3af;
  border-color: #6b7280;
  box-shadow: none;
  transform: none;
}

/* Neo-brutalist loading bar */
.neo-loader-track {
  width: 200px;
  height: 8px;
  border: 2px solid #000;
  background: #e5e7eb;
  overflow: hidden;
}
.neo-loader-bar {
  height: 100%;
  width: 40%;
  background: #2563eb;
  animation: neo-slide 1.2s ease-in-out infinite;
}
@keyframes neo-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Disabled config inputs in locked state */
#harshness-select:disabled,
#total-questions-input:disabled,
#max-marks-input:disabled,
.per-q-mark:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* Plan badge in nav */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #000;
  border-radius: 0;
  white-space: nowrap;
  line-height: 1rem;
}
.plan-badge-free { background: #fef3c7; color: #92400e; }
.plan-badge-expired { background: #fee2e2; color: #991b1b; }
.plan-badge-pay { background: #dbeafe; color: #1e40af; }
.plan-badge-pro { background: #d1fae5; color: #166534; }
.plan-badge-coming { background: #f3f4f6; color: #4b5563; }

/* Responsive nav bar utilities */
@media (max-width: 639px) {
  .desktop-only-nav {
    display: none !important;
  }
  .mobile-only-menu-section .plan-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (min-width: 640px) {
  .mobile-only-menu-section {
    display: none !important;
  }
}

/* Pricing modal plan cards */
.plan-card {
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.plan-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px rgba(0,0,0,1);
}
.plan-card:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px rgba(0,0,0,1);
}

/* Upgrade pulsing banner */
.upgrade-pulse {
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Read-only overlay on locked sections */
.locked-overlay {
  position: relative;
}
.locked-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  z-index: 5;
  cursor: not-allowed;
}
.locked-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: #fee2e2;
  border: 2px solid #dc2626;
  color: #991b1b;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* Global loading overlay */
#globalLoadingOverlay {
  transition: opacity 0.3s ease;
}
#globalLoadingOverlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Student draft row */
.student-draft-row {
  border: 2px solid #000;
  background: #fff;
  padding: 0.75rem;
  position: relative;
}
.student-draft-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

