@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #090d16;
  --secondary-navy: #111827;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-rgb: 245, 158, 11;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(245, 158, 11, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-navy);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 80px;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients & Grid Overlay */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(rgba(9, 13, 22, 0.88), rgba(9, 13, 22, 0.82)), url('img/school-campus.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Radial Glows */
.background-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.background-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

/* Notebook Graph Paper Grid */
.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* Floating school-themed elements */
.floating-element {
  position: absolute;
  opacity: 0.15;
  color: var(--text-light);
  transition: transform 0.3s ease;
  pointer-events: none;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(110vh) translateX(0) rotate(0deg) scale(0.8);
  }
  50% {
    transform: translateY(50vh) translateX(30px) rotate(180deg) scale(1.1);
  }
  100% {
    transform: translateY(-10vh) translateX(-30px) rotate(360deg) scale(0.8);
  }
}

/* Main Layout Card */
.main-wrapper {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 720px;
  margin: 40px 0;
  perspective: 1000px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
  border-color: rgba(var(--accent-gold-rgb), 0.2);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 40px -10px rgba(var(--accent-gold-rgb), 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* School Branding & Header */
.school-header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.school-logo-container {
  position: relative;
  margin-bottom: 15px;
}

.school-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.school-logo:hover {
  transform: scale(1.08) rotate(5deg);
}

.school-badge {
  background: rgba(var(--accent-gold-rgb), 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.25);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.school-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
}

/* Interactive Bell */
.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 25px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 18px;
}

.interactive-bell {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  cursor: pointer;
  transform-origin: top center;
  transition: transform 0.1s ease;
  filter: drop-shadow(0 0 4px rgba(var(--accent-gold-rgb), 0.3));
}

.interactive-bell.ring-active {
  animation: ring 1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(15deg); }
  20%, 40%, 60%, 80% { transform: rotate(-15deg); }
}

.badge-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* Main Announcement */
.announcement-box {
  margin-bottom: 40px;
}

.announcement-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.announcement-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Countdown Timer */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 10px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-gold-rgb), 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.countdown-val {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  display: block;
}

.countdown-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
  display: block;
}

/* Notification Subscription Form */
.subscription-section {
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.section-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: block;
}

.subscription-form {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscription-form:focus-within {
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 20px rgba(var(--accent-gold-rgb), 0.1);
}

.subscription-form input[type="email"] {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 50px 0 0 50px;
}

.subscription-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.subscription-form button {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #000000;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(var(--accent-gold-rgb), 0.3);
}

.subscription-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--accent-gold-rgb), 0.45);
}

.subscription-form button:active {
  transform: translateY(1px);
}

/* Secondary Info and Social Footer */
.school-contact-info {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-item:hover {
  color: var(--accent-gold);
}

.info-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-gold);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  background-color: rgba(var(--accent-gold-rgb), 0.05);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  z-index: 100;
}

.toast.error {
  background: #ef4444;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.toast.show {
  bottom: 40px;
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  body {
    justify-content: center;
    padding-right: 0;
  }

  .main-wrapper {
    margin: 40px auto;
  }

  .card {
    padding: 35px 25px;
  }
  
  .school-title {
    font-size: 1.8rem;
  }

  .countdown-container {
    gap: 12px;
  }

  .countdown-card {
    padding: 15px 5px;
  }

  .countdown-val {
    font-size: 2rem;
  }

  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .subscription-form {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 12px;
  }

  .subscription-form input[type="email"] {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: 100%;
    padding: 14px 24px;
  }

  .subscription-form button {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
  }

  .school-contact-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .school-title {
    font-size: 1.5rem;
  }
  
  .countdown-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Admin Dashboard Modal Styles */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-content {
  background: #0d131f;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  padding: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(-40px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-modal.show .admin-modal-content {
  transform: translateY(0);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
}

.admin-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.close-admin {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-admin:hover {
  color: #ef4444;
}

.admin-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 12px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: monospace;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.admin-btn:hover {
  transform: translateY(-1px);
}

.admin-btn:active {
  transform: translateY(1px);
}

.csv-btn {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.csv-btn:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.pdf-btn {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pdf-btn:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.clear-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Custom Scrollbar for Admin Table */
.admin-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.admin-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Print CSS Stylesheet for PDF Export */
@media print {
  body * {
    visibility: hidden;
  }
  #admin-modal, #admin-modal * {
    visibility: visible;
  }
  #admin-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: black !important;
  }
  .admin-modal-content {
    background: white !important;
    border: none !important;
    box-shadow: none !important;
    color: black !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    transform: none !important;
  }
  .admin-table {
    border: 1px solid #000 !important;
  }
  .admin-table th {
    background: #f3f4f6 !important;
    color: black !important;
    border-bottom: 2px solid #000 !important;
    font-family: inherit !important;
  }
  .admin-table td {
    color: black !important;
    border-bottom: 1px solid #000 !important;
    font-family: monospace !important;
  }
  .admin-actions, .close-admin, #admin-title {
    display: none !important;
  }
  #admin-modal::before {
    content: "J School Subscribed Visitors List";
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: black;
    font-family: sans-serif;
  }
}

/* Standalone Reports Page Styling */
body.reports-body {
  justify-content: center;
  padding-right: 0;
}

.reports-wrapper {
  max-width: 900px;
  margin: 40px auto;
}

.reports-card {
  padding: 45px 40px;
}

.reports-header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reports-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 15px;
  color: var(--text-light);
}

.reports-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 5px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 35px;
  width: 100%;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px 24px;
  flex: 1;
  max-width: 250px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-gold-rgb), 0.2);
}

.stat-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.reports-table-container {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.4);
  margin-bottom: 35px;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.reports-table th {
  position: sticky;
  top: 0;
  background: #111827;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.reports-table td {
  padding: 14px 20px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
}

.reports-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.reports-table tr:last-child td {
  border-bottom: none;
}

.reports-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(1px);
}

.excel-btn {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.excel-btn:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.pdf-btn {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pdf-btn:hover {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.danger-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.reports-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--accent-gold);
  transform: translateX(-2px);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* Custom Scrollbar for Reports Table */
.reports-table-container::-webkit-scrollbar {
  width: 8px;
}

.reports-table-container::-webkit-scrollbar-track {
  background: transparent;
}

.reports-table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.reports-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Print CSS Layout for Reports PDF Export */
@media print {
  body.reports-body * {
    visibility: hidden;
  }
  
  body.reports-body .reports-card,
  body.reports-body .reports-card * {
    visibility: visible;
  }
  
  body.reports-body .reports-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: black !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
  }
  
  .reports-table-container {
    max-height: none !important;
    overflow-y: visible !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
  }
  
  .reports-table {
    border: 1px solid #000 !important;
    width: 100% !important;
  }
  
  .reports-table th {
    background: #f3f4f6 !important;
    color: black !important;
    border-bottom: 2px solid #000 !important;
    position: static !important;
    font-family: inherit !important;
  }
  
  .reports-table td {
    color: black !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent !important;
    font-family: monospace !important;
  }
  
  .reports-actions, .reports-footer, .stats-bar, .school-logo-container {
    display: none !important;
  }
  
  .reports-title {
    color: black !important;
    font-size: 2.2rem !important;
    margin-bottom: 5px !important;
    text-align: center !important;
  }
  
  .reports-subtitle {
    color: #374151 !important;
    font-size: 1rem !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .reports-wrapper {
    margin: 20px auto;
    width: 95%;
  }

  .reports-card {
    padding: 30px 20px;
  }

  .reports-title {
    font-size: 1.8rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .stat-box {
    width: 100%;
    max-width: 100%;
  }

  .reports-actions {
    flex-direction: column;
    gap: 12px;
  }

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

/* Ambient Background Music Toggle Button */
.music-toggle-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  border-color: rgba(var(--accent-gold-rgb), 0.3);
  color: var(--accent-gold);
  box-shadow: 0 8px 32px 0 rgba(var(--accent-gold-rgb), 0.15);
}

.music-toggle-btn.playing {
  color: var(--accent-gold);
  border-color: rgba(var(--accent-gold-rgb), 0.4);
}

/* Audio wave bars */
.music-waves {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.music-toggle-btn.playing .music-waves {
  display: flex;
}

.music-toggle-btn.playing svg {
  display: none;
}

.music-waves span {
  display: block;
  width: 2.5px;
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: 1px;
  animation: bounce-wave 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.music-waves span:nth-child(1) { animation-duration: 0.5s; }
.music-waves span:nth-child(2) { animation-duration: 0.7s; }
.music-waves span:nth-child(3) { animation-duration: 0.6s; }
.music-waves span:nth-child(4) { animation-duration: 0.8s; }

@keyframes bounce-wave {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

@media (max-width: 768px) {
  .music-toggle-btn {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
