/* Enhanced School Circular Generator - Professional Edition */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --success-color: #4cc9f0;
  --info-color: #4895ef;
  --warning-color: #f72585;
  --danger-color: #e63946;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #0f0f0f 0%, #2d2d2d 100%);
}

/* Enhanced Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.1);
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 80%;
  animation-delay: -5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 70%;
  animation-delay: -15s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  top: 50%;
  left: 40%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(0) rotate(180deg);
  }
  75% {
    transform: translateY(20px) rotate(270deg);
  }
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Enhanced Navigation */
.main-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

[data-theme="dark"] .main-nav {
  background: rgba(30, 30, 30, 0.9);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-text h1 span {
  color: var(--primary-color);
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-controls {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.nav-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.nav-btn:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.user-profile:hover {
  background: var(--bg-secondary);
}

.profile-avatar {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.profile-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.profile-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 120px);
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Stats Panel */
.stats-grid {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card.primary {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white;
}

.stat-card.success {
  background: linear-gradient(135deg, #4cc9f0, #4895ef);
  color: white;
}

.stat-card.warning {
  background: linear-gradient(135deg, #f72585, #b5179e);
  color: white;
}

.stat-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-glow {
  opacity: 1;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.stat-trend.up {
  color: #4ade80;
}

/* AI Panel */
.ai-controls {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ai-btn {
  padding: 1rem;
  border: none;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.ai-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.ai-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.ai-btn:hover .ai-icon {
  background: rgba(255, 255, 255, 0.2);
}

.ai-hover-effect {
  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;
}

.ai-btn:hover .ai-hover-effect {
  left: 100%;
}

.ai-typing {
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.typing-dots {
  display: flex;
  gap: 0.3rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Templates Panel */
.templates-grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.template-card {
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.template-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.template-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.template-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-hover {
  opacity: 0.1;
}

/* Activity Panel */
.activity-list {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: var(--transition);
}

.activity-item:hover {
  background: var(--primary-color);
  color: white;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.activity-item:hover .activity-icon {
  background: rgba(255, 255, 255, 0.2);
}

.activity-content p {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.activity-content span {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auto-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.save-indicator {
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: savePulse 2s infinite;
}

@keyframes savePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Form Content */
.form-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-card {
  padding: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.card-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.form-control:focus ~ .form-underline {
  width: 100%;
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.media-upload-card {
  position: relative;
  height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.media-upload-card:hover {
  border-color: var(--primary-color);
  background: rgba(67, 97, 238, 0.05);
}

.upload-content {
  text-align: center;
  z-index: 2;
}

.upload-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.upload-content p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-content span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.preview-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(67, 97, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.media-upload-card:hover .upload-overlay {
  opacity: 1;
}

/* Editor */
.editor-container {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.toolbar {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  gap: 0.5rem;
}

.toolbar button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.editor-wrapper {
  position: relative;
}

.editor {
  min-height: 300px;
  padding: 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  overflow-y: auto;
}

.editor:focus {
  outline: none;
}

.editor-focus-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 10px;
  pointer-events: none;
  transition: var(--transition);
}

.editor:focus ~ .editor-focus-border {
  border-color: var(--primary-color);
}

.editor-footer {
  padding: 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.ai-suggestions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.suggestion-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.suggestion-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-hover-effect {
  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;
}

.suggestion-btn:hover .btn-hover-effect {
  left: 100%;
}

/* Action Panel */
.action-panel {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-info {
  background: var(--info-color);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-glow {
  position: relative;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-glow:hover .btn-shine {
  left: 100%;
}

/* Preview Section */
.preview-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.device-selector {
  min-width: 150px;
}

.preview-container {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 2rem;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

.circular-paper {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
  padding: 3rem;
  transition: var(--transition);
}

[data-theme="dark"] .circular-paper {
  background: #1a1a1a;
  color: white;
}

/* Circular Styles */
.circular-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 3px double var(--primary-color);
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.circular-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.school-info {
  text-align: left;
}

.school-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.school-contact, .school-address {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.circular-title-section {
  margin-top: 2rem;
}

.circular-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.circular-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
}

.circular-body {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.content-section {
  font-size: 1.1rem;
}

.circular-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(67, 97, 238, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.circular-point i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.info-box {
  background: rgba(67, 97, 238, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.circular-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--primary-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.signature-area {
  text-align: center;
}

.signature-image {
  height: 80px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.signature-line {
  width: 200px;
  height: 1px;
  background: var(--text-primary);
  margin: 0.5rem auto;
}

.signatory-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.signatory-designation {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.qr-section {
  text-align: center;
}

.qr-code {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.qr-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Export Panel */
.export-grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.export-btn {
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.export-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.export-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.export-info {
  flex: 1;
  text-align: left;
}

.export-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.export-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.export-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.export-hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.5s;
}

.export-btn:hover .export-hover-effect {
  left: 100%;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 500px;
  padding: 2rem;
}

.loading-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-orbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: orbit 3s linear infinite;
}

.orbit-1 {
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  animation-delay: 0s;
}

.orbit-2 {
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  animation-delay: -1s;
}

.orbit-3 {
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
  animation-delay: -2s;
}

@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.loading-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.progress-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.loading-tips {
  display: flex;
  justify-content: center;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--success-color);
}

[data-theme="dark"] .toast {
  background: #2d2d2d;
  color: white;
}

.toast.success {
  border-left-color: var(--success-color);
}

.toast.error {
  border-left-color: var(--danger-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

.toast.info {
  border-left-color: var(--info-color);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* AI Modal */
.ai-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.ai-modal-content {
  background: var(--bg-primary);
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ai-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.ai-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.ai-modal-close:hover {
  color: var(--danger-color);
}

.ai-modal-body {
  padding: 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.ai-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
  }
  
  .action-panel {
    flex-direction: column;
  }
  
  .preview-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .export-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .logo-section {
    flex-direction: column;
    text-align: center;
  }
  
  .school-info {
    text-align: center;
  }
}

/* Additional CSS for new components */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--border-color);
}

.suggestion-item.high {
  border-left-color: var(--danger-color);
}

.suggestion-item.medium {
  border-left-color: var(--warning-color);
}

.suggestion-item.low {
  border-left-color: var(--info-color);
}

.suggestion-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.suggestion-content {
  flex: 1;
}

.suggestion-content p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.suggestion-priority {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: capitalize;
}

.drag-over {
  border-color: var(--primary-color) !important;
  background: rgba(67, 97, 238, 0.1) !important;
}

.form-group.focused label {
  color: var(--primary-color);
}

.form-group.focused .form-control {
  border-color: var(--primary-color);
}

.mobile-view .sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
}

.mobile-view .sidebar.active {
  left: 0;
}