/* ==========================================================================
   AURA ACADEMY — HIGH-SECURITY ADMIN PANEL STYLES
   Theme: High-Security Cyber Defense & Aura Gold/Orange Aesthetics
   ========================================================================== */

/* Top Live Announcement Marquee Banner */
.aura-live-announcement-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #431407 50%, #1e1b4b 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-orange);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(245, 140, 77, 0.2);
  transition: all 0.3s ease;
}

.aura-live-announcement-bar.hidden {
  display: none !important;
}

.live-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.live-bar-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.live-bar-text {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.live-bar-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.live-bar-close:hover {
  color: #ffffff;
}

/* Notification Drawer Flyout */
.notification-flyout {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: flyoutSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-flyout.active {
  display: flex;
}

@keyframes flyoutSlide {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  padding: 12px 16px;
  background: #FFF9F5;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h4 {
  font-size: 0.9rem;
  color: var(--color-brown);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 0;
}

.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 10px;
  transition: background 0.2s;
}

.notif-item:hover {
  background: #FFF4EC;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.notif-icon.exam { background: #fee2e2; color: #ef4444; }
.notif-icon.material { background: #e0e7ff; color: #6366f1; }
.notif-icon.live { background: #dcfce7; color: #10b981; }
.notif-icon.alert { background: #fef3c7; color: #f59e0b; }

.notif-content h5 {
  font-size: 0.85rem;
  color: var(--color-black);
  margin-bottom: 2px;
}

.notif-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ==========================================
   ADMIN PORTAL FULLSCREEN MODAL
   ========================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.admin-modal-overlay.active {
  display: flex;
}

.admin-auth-card {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border: 1px solid rgba(245, 140, 77, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 140, 77, 0.15);
  color: #f8fafc;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.admin-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F58C4D, #F4A62C, #F58C4D);
}

.admin-shield-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.shield-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 140, 77, 0.12);
  border: 1px solid var(--color-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-orange);
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(245, 140, 77, 0.3);
}

.admin-shield-header h2 {
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.admin-shield-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.security-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.admin-input-group {
  margin-bottom: 1.2rem;
}

.admin-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-wrap i {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.admin-input-field {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.4rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-input-field:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 10px rgba(245, 140, 77, 0.3);
}

/* 2FA PIN Keypad */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.2rem 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #64748b;
  transition: all 0.2s;
}

.pin-dot.filled {
  background: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: 0 0 8px rgba(245, 140, 77, 0.7);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1rem;
}

.keypad-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.keypad-btn:hover {
  background: #334155;
  border-color: var(--color-orange);
}

.keypad-btn:active {
  transform: scale(0.95);
}

.admin-error-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: none;
}

/* ==========================================
   ADMIN DASHBOARD MAIN CONTAINER
   ========================================== */
.admin-dashboard-container {
  width: 100%;
  max-width: 1300px;
  height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(245, 140, 77, 0.3);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  display: flex;
  overflow: hidden;
  color: #f8fafc;
}

.admin-sidebar {
  width: 260px;
  background: #1e293b;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1.5rem;
}

.admin-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-orange);
}

.admin-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 140, 77, 0.25), rgba(244, 166, 44, 0.15));
  border-left: 3px solid var(--color-orange);
}

.admin-nav-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-topbar {
  height: 64px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-title h3 {
  font-size: 1.1rem;
  color: #ffffff;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-btn-lock {
  background: #334155;
  border: 1px solid #475569;
  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-lock:hover {
  background: #475569;
}

.admin-session-badge {
  font-size: 0.75rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-body-panel {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: #0b1120;
}

/* Stat Cards */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::after {
  content: '';
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.stat-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 1.2rem;
  color: var(--color-orange);
}

.stat-big-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
}

.stat-growth {
  font-size: 0.75rem;
  color: #34d399;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Section Containers inside Admin */
.admin-card-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card-section h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tables inside admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid #334155;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}

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

.admin-action-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-action-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #ffffff;
}

.admin-action-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Form Styles in Admin */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.admin-form-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.admin-form-control label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.admin-form-input, .admin-form-select, .admin-form-textarea {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
}

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

/* Card Button: Direct PDF Download */
.btn-download-pdf-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFF4EC;
  color: #c2410c;
  border: 1px solid var(--color-orange);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-download-pdf-card:hover {
  background: var(--color-orange);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 140, 77, 0.35);
}

/* Workspace In-Modal Download PDF Button */
.btn-modal-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F58C4D, #F4A62C);
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(245, 140, 77, 0.3);
}

.btn-modal-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Modern Non-Blocking Admin Toast Notification */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--color-orange);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(245,140,77,0.3);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 20000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.admin-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success i {
  color: #10b981;
  font-size: 1.1rem;
}

.admin-toast.alert i {
  color: #ef4444;
  font-size: 1.1rem;
}
