/* ============================================
   CampusSphere AI - Global Styles (Dark Theme)
   ============================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #8b5cf6;
  --accent-color: #a78bfa;
  
  /* Dark Backgrounds */
  --bg-primary: #0f172a;      /* Deep navy */
  --bg-secondary: #1e293b;   /* Charcoal */
  --bg-tertiary: #334155;    /* Dark gray */
  --bg-card: #1e293b;        /* Card background */
  --bg-hover: #334155;       /* Hover state */
  
  /* Text Colors */
  --text-primary: #f1f5f9;   /* White/light gray */
  --text-secondary: #cbd5e1; /* Light gray */
  --text-muted: #94a3b8;     /* Muted gray */
  
  /* Borders & Shadows */
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
}

/* Animated Star Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.animated-bg::before,
.animated-bg::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.12), transparent);
  background-size: 200% 200%;
  animation: starMove 60s linear infinite;
}

.animated-bg::after {
  animation: starMove 80s linear infinite reverse;
  opacity: 0.6;
}

@keyframes starMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50%, 50%);
  }
}

/* Disable animation on very small screens for performance */
@media (max-width: 480px) {
  .animated-bg::before,
  .animated-bg::after {
    animation: none;
  }
}

/* Navigation */
.navbar {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Image Section */
.hero-image {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920');
  /* PLACE UNIVERSITY IMAGE HERE */
  /* Replace the URL above with your university image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
  z-index: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Chat Interface */
.chat-container {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.agent-selector {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  cursor: pointer;
}

.agent-selector option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.lang-btn.active {
  background: white;
  color: var(--primary-color);
}

.voice-btn {
  padding: 0.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.voice-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--bg-primary);
}

.message {
  display: flex;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.message.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  word-wrap: break-word;
}

.message.user .message-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.ai .message-bubble {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: right;
}

.message.ai .message-time {
  text-align: left;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 1rem;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-input-container {
  padding: 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
  display: flex;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.send-btn {
  padding: 0.875rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.send-btn:hover {
  background: var(--primary-dark);
}

/* Tour Page */
.tour-container {
  display: flex;
  height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

.tour-sidebar {
  width: 350px;
  background: var(--bg-card);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  position: relative;
}

.tour-content {
  flex: 1;
  position: relative;
}

#tour-scene {
  width: 100%;
  height: 100%;
}

.location-info {
  margin-bottom: 2rem;
}

.location-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.location-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hotspot-list {
  list-style: none;
}

.hotspot-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hotspot-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.hotspot-item i {
  font-size: 1.125rem;
}

/* Location Detail Panel */
.location-detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  max-height: 70vh;
  overflow-y: auto;
}

.location-detail-panel.active {
  transform: translateY(0);
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.panel-close:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.panel-content {
  padding: 2rem;
}

.panel-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-primary);
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-info h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.panel-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.panel-facilities {
  margin-bottom: 1.5rem;
}

.panel-facilities h4,
.panel-timings h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-facilities ul {
  list-style: none;
  padding: 0;
}

.panel-facilities li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.panel-facilities li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.panel-timings p {
  color: var(--text-secondary);
  margin: 0;
}

.panel-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.panel-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Directions Panel */
.directions-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.directions-panel.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.directions-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
}

.directions-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.directions-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.directions-select {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.directions-select label {
  color: var(--text-primary);
  font-weight: 600;
}

.directions-select select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.directions-select select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.directions-route {
  margin-top: 1rem;
}

.route-from,
.route-to {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.route-from i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.route-to i {
  color: #10b981;
  font-size: 1.25rem;
}

.route-steps {
  margin: 1.5rem 0;
}

.route-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.step-text {
  flex: 1;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 0.375rem;
}

/* Helpdesk Page */
.helpdesk-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.helpdesk-container h1 {
  color: var(--text-primary);
}

.helpdesk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.complaint-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.complaint-form h2 {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.ticket-id {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.complaints-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.status-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.complaint-item {
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--primary-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
}

.complaint-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.complaint-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.status-open {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-progress {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-resolved {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ai-suggestion {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
}

.ai-suggestion h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.ai-suggestion p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Dashboard */
.dashboard-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: var(--text-primary);
}

.dashboard-header p {
  color: var(--text-muted);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.stat-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.chart-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 300px;
}

.complaints-table {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.complaints-table h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-primary);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-secondary);
}

.priority-high {
  color: #ef4444;
  font-weight: 600;
}

.priority-medium {
  color: #f59e0b;
  font-weight: 600;
}

.priority-low {
  color: #10b981;
  font-weight: 600;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Title with Accent */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Programs Offered Section */
.programs-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.program-card h3 {
  padding: 1.5rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Placement Statistics Section */
.placement-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.placement-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

.placement-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.placement-image-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.placement-image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.placement-image-item:hover img {
  transform: scale(1.05);
}

.placement-image-item:first-child {
  grid-column: 1 / -1;
}

.placement-image-item-large {
  grid-column: 1 / -1;
}

.placement-image-item.large img {
  height: 250px;
}

.placement-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card-placement {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card-placement:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-info .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* What's New Section */
.news-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: background 0.3s ease;
}

.news-card:hover .news-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.news-card-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Institution Timeline Section */
.institution-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.timeline-container {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

.timeline-track {
  display: flex;
  gap: 2rem;
  animation: scrollTimeline 40s linear infinite;
  width: fit-content;
}

.timeline-track:hover {
  animation-play-state: paused;
}

.timeline-container::before,
.timeline-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.timeline-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.timeline-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.timeline-item {
  flex-shrink: 0;
  width: 320px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.timeline-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.timeline-item-content {
  padding: 1.5rem;
}

.timeline-item-year {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes scrollTimeline {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Floating Chatbot */
.floating-chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  position: relative;
  animation: pulseSoft 3s ease-in-out infinite;
}

.chatbot-button::before {
  content: 'Ask Campus AI';
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.75rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.chatbot-button:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-button::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  animation: pulseBadge 2s ease-in-out infinite;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  animation: none;
}

.chatbot-button.active::after {
  display: none;
}

@keyframes pulseSoft {
  0%, 100% {
    box-shadow: var(--shadow-xl), 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: var(--shadow-xl), 0 0 0 8px rgba(99, 102, 241, 0);
  }
}

@keyframes pulseBadge {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.3s ease;
}

.chatbot-close:hover {
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.chatbot-messages .message {
  display: flex;
  margin-bottom: 1.25rem;
  animation: messageFadeIn 0.3s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.chatbot-messages .message.user {
  justify-content: flex-end;
}

.chatbot-messages .message-bubble {
  max-width: 80%;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-xl);
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.chatbot-messages .message.user .message-bubble {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 6px;
}

.chatbot-messages .message.ai .message-bubble {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 6px;
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-typing {
  display: flex;
  gap: 6px;
  padding: 0.875rem 1.125rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  border-bottom-left-radius: 6px;
  width: fit-content;
  border: 1px solid var(--border-color);
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDots 1.4s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDots {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.chatbot-input-container {
  padding: 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.3s ease;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chatbot-input::placeholder {
  color: var(--text-muted);
}

.chatbot-send {
  padding: 0.875rem 1.25rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.chatbot-send:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    border: 1px solid var(--border-color);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-image {
    height: 40vh;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .chat-container {
    margin: 1rem;
    height: calc(100vh - 100px);
  }

  .chat-controls {
    flex-direction: column;
  }

  .tour-container {
    flex-direction: column;
  }

  .tour-sidebar {
    width: 100%;
    max-height: 300px;
  }

  .location-detail-panel {
    max-height: 80vh;
  }

  .panel-content {
    padding: 1.5rem;
  }

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

  .directions-panel {
    width: 95%;
    max-height: 90vh;
  }

  .directions-select {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .directions-select label {
    margin-top: 0.5rem;
  }

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

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

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

  .hero-image {
    height: 30vh;
    min-height: 250px;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .message-bubble {
    max-width: 85%;
  }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .drive-files {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .placement-content {
    grid-template-columns: 1fr;
  }

  .placement-images {
    grid-template-columns: 1fr;
  }

  .placement-stats {
    grid-template-columns: 1fr;
  }

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

  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 80px;
    height: calc(100vh - 120px);
    max-height: 600px;
  }

  .chatbot-button::before {
    display: none;
  }

  body.chatbot-open {
    overflow: hidden;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .placement-content {
    grid-template-columns: 1fr;
  }

  .placement-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HERO SECTION */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/mriirs_img.webp");
  background-size: fixed;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-image {
  filter: none;
}

.hero-overlay {
  background: linear-gradient(
    rgba(10, 15, 35, 0.35),
    rgba(10, 15, 35, 0.65)
  );
}



.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5, 10, 25, 0.75),
    rgba(5, 10, 25, 0.9)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  /* max-width: 650px; */
  color: #cbd5f5;
  position: relative;
}

.cta-buttons {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* SMALL FOOTER */
.footer-small {
  width: 100%;
  padding: 16px 12px;
  background: rgba(10, 15, 35, 0.9);
  text-align: center;
  font-size: 0.85rem;
  color: #aab4e6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.footer-small span {
  color: #5f7cff;
  font-weight: 500;
}

/* Role Selection Screen */
.role-select-container {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.role-select-content {
  max-width: 900px;
  width: 90%;
  text-align: center;
}

.role-select-header h1 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.role-select-header p {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.role-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.role-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.role-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.role-card h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin: 0;
}

/* Login Modal */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-modal.active {
  opacity: 1;
  pointer-events: all;
}

.login-content {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.login-content h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Role Badge */
.role-badge {
  font-size: 0.75rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Classes Section */
.classes-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

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

.class-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.class-card.ongoing {
  border-left: 4px solid #10b981;
}

.class-card.upcoming {
  border-left: 4px solid var(--primary-color);
}

.class-card.completed {
  opacity: 0.6;
  border-left: 4px solid var(--text-muted);
}

.class-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.class-card.ongoing .class-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.class-card.upcoming .class-status-badge {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
}

.class-card.completed .class-status-badge {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
}

.class-card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-right: 80px;
}

.class-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-details p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.class-details i {
  color: var(--primary-color);
  width: 20px;
}

/* Plans Section */
.plans-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.plans-list {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-item {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.plan-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.plan-item.completed {
  opacity: 0.6;
}

.plan-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.plan-item label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
}

.plan-icon {
  color: var(--primary-color);
  font-size: 1.125rem;
}

.plan-text {
  flex: 1;
}

.plan-item.completed .plan-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Drive Page */
.drive-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

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

.drive-header h1 {
  color: var(--text-primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drive-actions {
  display: flex;
  gap: 1rem;
}

.drive-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
  min-height: 400px;
}

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

.empty-drive {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-drive i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-drive h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.drive-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.drive-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.drive-item-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.drive-item-info {
  text-align: center;
  flex: 1;
  width: 100%;
}

.drive-item-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  word-break: break-word;
  margin-bottom: 0.25rem;
}

.drive-item-size {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.drive-item-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.drive-item:hover .drive-item-delete {
  opacity: 1;
}

.drive-item-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Folder Modal */
.folder-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.folder-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.modal-content h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.modal-content input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 100px;
}

/* Page Container */
.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Attendance Section */
.attendance-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.attendance-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.attendance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.attendance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.attendance-card-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: 0;
}

.subject-code {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.attendance-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.attendance-chart-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.attendance-progress-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.attendance-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.attendance-percentage-large {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.attendance-percentage-large.good {
  color: #10b981;
}

.attendance-percentage-large.warning {
  color: #f59e0b;
}

.attendance-percentage-large.low {
  color: #ef4444;
}

.attendance-details {
  flex: 1;
}

.attendance-details p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.attendance-details span {
  color: var(--text-muted);
  font-weight: 600;
}

/* Parent Dashboard */
.parent-dashboard-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.parent-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.parent-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.parent-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.parent-card h3 i {
  color: var(--primary-color);
}

.parent-announcements,
.parent-calendar,
.parent-guidance,
.parent-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.announcement-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announcement-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.announcement-item h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.announcement-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.calendar-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.calendar-date {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 120px;
}

.calendar-event {
  color: var(--text-secondary);
}

.guidance-item {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.guidance-item h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.guidance-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-item {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-item h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.contact-item p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

/* Exams Section */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.exam-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.exam-card.today {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.exam-card.upcoming {
  border-left: 4px solid var(--primary-color);
}

.exam-card.past {
  opacity: 0.6;
  border-left: 4px solid var(--text-muted);
}

.exam-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.exam-card.today .exam-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.exam-card.upcoming .exam-status-badge {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
}

.exam-card.past .exam-status-badge {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
}

.exam-header {
  margin-bottom: 1.5rem;
}

.exam-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.exam-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-details p {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exam-details i {
  color: var(--primary-color);
  width: 20px;
}

.exam-details strong {
  color: var(--text-primary);
}

/* Results Section */
.results-disclaimer {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-size: 0.875rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.result-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.result-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: 0;
}

.result-grade-large {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0;
}

.result-scores {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}

.score-item.total {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.score-label {
  color: var(--text-secondary);
}

.score-item.total .score-label {
  color: rgba(255, 255, 255, 0.9);
}

.score-value {
  color: var(--text-primary);
  font-weight: 600;
}

.score-item.total .score-value {
  color: white;
}

.result-status {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.result-status.pass {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.result-status.fail {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

