/* Reset & Biến giao diện hiện đại */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

/* Áp dụng theme */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* HEADER NAVIGATION */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  color: #334155;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
}

.btn-back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.header-left h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.header-left .subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sample {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
.btn-sample:hover {
  background: #e2e8f0;
}

.btn-backup {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.btn-backup:hover {
  background: #dcfce7;
}

.btn-restore {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}
.btn-restore:hover {
  background: #ccfbf1;
}

.btn-print {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}
.btn-print:hover {
  background: #ede9fe;
}

.btn-present {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  padding: 8px 18px;
}
.btn-present:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
.btn-danger:hover {
  background: #ffe4e6;
}

/* DROPDOWN */
.dropdown-group {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 280px;
  z-index: 120;
  overflow: hidden;
  padding: 6px 0;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* WELCOME BANNER KHỞI TẠO */
.welcome-banner {
  max-width: 900px;
  margin: 32px auto 20px;
  padding: 0 20px;
}

.banner-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.banner-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.banner-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.banner-card p {
  color: #475569;
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 26px;
}

.banner-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.banner-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-btn .btn-icon {
  font-size: 32px;
}

.banner-btn .btn-text strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 3px;
}

.banner-btn .btn-text span {
  font-size: 12.5px;
  display: block;
  line-height: 1.35;
}

.banner-btn.btn-primary {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.banner-btn.btn-primary:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.banner-btn.btn-secondary {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.banner-btn.btn-secondary:hover {
  background: #dcfce7;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.15);
}

/* MAIN LAYOUT */
.main-container {
  display: flex;
  height: calc(100vh - 70px);
  overflow: hidden;
}

/* SIDEBAR SLIDES */
.sidebar-slides {
  width: 320px;
  min-width: 300px;
  max-width: 350px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.sidebar-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
}

.dropdown-add-slide {
  position: relative;
}

.btn-add-slide {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.btn-add-slide:hover {
  background: var(--primary-hover);
}

.slide-type-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  width: 250px;
  z-index: 150;
  overflow: hidden;
  padding: 4px 0;
}

.slide-type-dropdown.show {
  display: flex;
}

.slide-type-dropdown button {
  padding: 9px 14px;
  text-align: left;
  border: none;
  background: none;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s;
}

.slide-type-dropdown button:hover {
  background: #eff6ff;
  color: var(--primary);
}

.slides-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* THUMBNAIL CARD */
.slide-thumb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
}

.slide-thumb-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.slide-thumb-item.active {
  background: #eff6ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.slide-thumb-index {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  width: 20px;
  text-align: center;
}

.slide-thumb-preview {
  width: 100px;
  height: 56px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  overflow: hidden;
  font-size: 7px;
  line-height: 1.2;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.05);
}

.thumb-title {
  font-weight: bold;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.thumb-type {
  font-size: 6.5px;
  color: #64748b;
  text-transform: uppercase;
}

.slide-thumb-meta {
  flex: 1;
  overflow: hidden;
}

.slide-thumb-meta .meta-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-thumb-meta .meta-badge {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 6px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 4px;
  margin-top: 3px;
  font-weight: 500;
}

/* SETTINGS BOX IN SIDEBAR */
.presentation-settings-box {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.presentation-settings-box h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #475569;
}

.form-row-sm {
  margin-bottom: 8px;
}

.form-row-sm label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 600;
}

.select-sm {
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 12px;
  background: #ffffff;
  color: #1e293b;
}

/* WORKSPACE */
.editor-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f1f5f9;
}

.slide-toolbar {
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-pos-info {
  font-size: 14.5px;
  color: #334155;
}

.slide-type-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.slide-actions {
  display: flex;
  gap: 6px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-outline-danger {
  color: #e11d48;
  border-color: #fecdd3;
}
.btn-outline-danger:hover {
  background: #fff1f2;
}

.btn-primary-soft {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}
.btn-primary-soft:hover {
  background: #dbeafe;
}

/* EDITOR GRID */
.editor-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  padding: 16px 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.slide-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.preview-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 16px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.preview-stage-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-preview-box {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.preview-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* OPTION ROW FOR QUIZ / GAME */
.option-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.option-item-row input[type="radio"],
.option-item-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-remove-opt {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

/* THEMES CHO SLIDE */
/* Theme 1: Modern Blue */
.theme-modern-blue {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  color: #ffffff;
}
.theme-modern-blue .slide-title-hero {
  color: #fef08a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.theme-modern-blue .card-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
}

/* Theme 2: Emerald */
.theme-emerald {
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #ffffff;
}
.theme-emerald .slide-title-hero {
  color: #fef08a;
}
.theme-emerald .card-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Theme 3: Sunset */
.theme-sunset {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
  color: #ffffff;
}
.theme-sunset .slide-title-hero {
  color: #fef08a;
}
.theme-sunset .card-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Theme 4: Chalkboard */
.theme-dark-chalk {
  background: #1e293b;
  color: #f8fafc;
  border: 8px solid #334155;
}
.theme-dark-chalk .slide-title-hero {
  color: #38bdf8;
}
.theme-dark-chalk .card-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #f8fafc;
}

/* Theme 5: Purple */
.theme-purple {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  color: #ffffff;
}
.theme-purple .slide-title-hero {
  color: #fde047;
}
.theme-purple .card-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* SLIDE INTERIOR LAYOUTS */
.slide-content-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Font Size Scales */
.fs-normal {
  font-size: 15px;
}
.fs-normal h2.slide-header { font-size: 24px; }
.fs-normal .slide-title-hero { font-size: 32px; }

.fs-large {
  font-size: 18px;
}
.fs-large h2.slide-header { font-size: 28px; }
.fs-large .slide-title-hero { font-size: 38px; }

.fs-xlarge {
  font-size: 22px;
}
.fs-xlarge h2.slide-header { font-size: 34px; }
.fs-xlarge .slide-title-hero { font-size: 46px; }

/* Slide Types Specific Stylings */
.slide-title-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.slide-title-layout .badge-subject {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.slide-title-hero {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}

.slide-title-sub {
  font-size: 1.15em;
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 80%;
}

.slide-title-footer {
  margin-top: 10px;
  display: flex;
  gap: 24px;
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: 500;
}

.slide-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.slide-header {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

.slide-tag {
  font-size: 0.7em;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Quiz Layout */
.quiz-question-text {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95em;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.quiz-option-btn .opt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

.quiz-option-btn.revealed-correct {
  background: #10b981 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  color: #ffffff;
  font-weight: 700;
}

.quiz-option-btn.revealed-wrong {
  background: #ef4444 !important;
  border-color: #f87171 !important;
  opacity: 0.7;
}

.quiz-control-bar {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-reveal-answer {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Content Layout (Khung kiến thức 1 hoặc 2 cột) */
.content-layout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 100%;
}

.content-layout-full {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-box {
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-y: auto;
  line-height: 1.55;
}

.card-box h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
  font-weight: 700;
  color: #fef08a;
  border-bottom: 1px dashed rgba(255,255,255,0.25);
  padding-bottom: 6px;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li {
  margin-bottom: 8px;
}

/* Game / Challenge Layout */
.game-challenge-card {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed #facc15;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.game-title {
  font-size: 1.3em;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 10px;
}

.game-rule {
  font-size: 1em;
  margin-bottom: 16px;
}

.game-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.game-badge-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* FULLSCREEN PRESENTATION OVERLAY */
.fullscreen-presentation-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 999999;
  flex-direction: column;
}

.fullscreen-presentation-overlay.active {
  display: flex;
}

.presentation-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.presentation-slide-canvas {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: 4vw 6vw;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity 0.25s ease-in-out;
}

/* Floating Presentation Controls */
.presentation-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0.15;
  transition: opacity 0.25s, transform 0.2s;
}

.presentation-controls:hover {
  opacity: 1;
}

.pres-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.pres-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pres-counter {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}

.pres-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.btn-pres-close {
  color: #f87171;
}
.btn-pres-close:hover {
  background: rgba(239, 68, 68, 0.2);
}

.pres-timer-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fef08a;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pres-timer-badge button {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 90%;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-warning {
  font-size: 40px;
  margin-bottom: 12px;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
}

.modal-card p {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-modal {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-cancel {
  background: #f1f5f9;
  color: #475569;
}

.btn-cancel:hover {
  background: #e2e8f0;
}

.btn-confirm-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-confirm-danger:hover {
  background: #b91c1c;
}

/* TOAST */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 10001;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease-out;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* PRINT & A4 LANDSCAPE STYLES */
.only-print {
  display: none;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .no-print {
    display: none !important;
  }

  .only-print {
    display: block !important;
  }

  .print-page-slide {
    page-break-after: always;
    width: 100%;
    height: 180mm;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    color: #0f172a;
  }

  .print-page-slide:last-child {
    page-break-after: auto;
  }

  .print-header-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .print-school-info {
    font-size: 10pt;
    font-weight: 600;
    color: #475569;
  }

  .print-slide-num {
    font-size: 10.5pt;
    font-weight: 700;
    color: #2563eb;
  }

  .print-slide-title {
    font-size: 20pt;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 16px;
  }

  .print-slide-body {
    flex: 1;
    font-size: 12pt;
    line-height: 1.6;
  }

  .print-footer-bottom {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 9pt;
    color: #64748b;
  }
}
