/* ==========================================
   GYM PROGRAM - Desktop App Style
   Minimal, Clean, Professional
   ========================================== */

/* ── فونت لوکال ── */
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables (پیش‌فرض clean-light) ── */
:root {
  --bg: #e8ecf1;
  --app-bg: #ffffff;
  --sidebar-bg: #fafbfc;
  --sidebar-border: #e5e7eb;
  --sidebar-link-hover: #f0f1f3;
  --sidebar-active-bg: #eff6ff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-glow: rgba(37,99,235,0.1);
  --titlebar-bg: #f8f9fa;
  --titlebar-border: #e5e7eb;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --card-bg: #fafbfc;
  --card-hover-border: #2563eb;
  --input-bg: #fafbfc;
  --input-border: #e5e7eb;
  --dot-color: #e5e7eb;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: "IRANSans", Tahoma, Arial, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── APP WINDOW ── */
.app-window {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 40px);
  background: var(--app-bg);
  border-radius: 12px;
  box-shadow: 0 2px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TITLE BAR ── */
.title-bar {
  height: 44px;
  background: var(--titlebar-bg);
  border-bottom: 1px solid var(--titlebar-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}

.title-bar-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ed6a5e; }
.dot-yellow { background: #f5bd4f; }
.dot-green { background: #61c454; }

.title-bar-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.title-bar-actions {
  display: flex;
  gap: 4px;
}

.title-bar-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.title-bar-btn:hover {
  background: var(--sidebar-link-hover);
  color: var(--text);
}

/* ── APP BODY ── */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 200px;
  background: var(--sidebar-bg);
  border-left: 1px solid var(--sidebar-border);
  padding: 16px 12px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  text-align: right;
}

.sidebar-link:hover {
  background: var(--sidebar-link-hover);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--accent);
}

.sidebar-link.active svg {
  color: var(--accent);
}

.sidebar-link svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.page.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
  padding: 24px 24px 0 24px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── WELCOME PAGE ── */
.welcome-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding: 48px 40px;
  scroll-behavior: smooth;
}

.welcome-scroll::-webkit-scrollbar {
  width: 5px;
}

.welcome-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.welcome-scroll::-webkit-scrollbar-thumb {
  background: var(--dot-color);
  border-radius: 10px;
}

.welcome-hero {
  text-align: center;
  margin-bottom: 48px;
}

.welcome-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.welcome-brand svg {
  color: var(--accent);
}

.welcome-brand h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.welcome-tagline {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Intro Text */
.welcome-intro {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.welcome-intro p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2.4;
  margin: 0;
  font-weight: 300;
}

/* Features */
.welcome-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.welcome-feature-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s;
}

.welcome-feature-box:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.welcome-feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.welcome-feature-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.welcome-feature-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* Roadmap Grid */
.welcome-roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  max-width: 700px;
  margin: 0 auto 56px;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.roadmap-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.roadmap-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.roadmap-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* Testimonials */
.welcome-testimonials-wrap {
  max-width: 700px;
  margin: 0 auto 56px;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
}

.testimonials-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.testimonials-slide.active {
  display: grid;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.testimonial-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 2;
  margin-bottom: 20px;
  position: relative;
  padding-right: 16px;
  font-weight: 300;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  right: 0;
  top: -4px;
  font-size: 28px;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dot-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-info strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.testimonial-info span {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.testimonial-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.testimonials-dots {
  display: flex;
  gap: 6px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
  cursor: pointer;
  transition: all 0.2s;
}

.testimonials-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* CTA */
.welcome-cta {
  text-align: center;
  padding-bottom: 16px;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.welcome-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-cancel {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CONTROLS ── */
.controls-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
  padding: 0 24px;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-icon-svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-wrap input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* ── CATEGORIES ── */
.categories-row {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  padding: 0 24px;
}

.category-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.category-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.add-category-chip {
  height: 30px;
  width: 30px;
  border-radius: 6px;
  border: 1px dashed var(--text-muted);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-category-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── STUDENTS GRID ── */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  overflow-y: auto;
  flex: 1;
  padding: 5px 24px 24px 24px;
  align-content: start;
}

.students-grid::-webkit-scrollbar {
  width: 5px;
}

.students-grid::-webkit-scrollbar-track {
  background: transparent;
}

.students-grid::-webkit-scrollbar-thumb {
  background: var(--dot-color);
  border-radius: 10px;
}

.student-card {
  background: var(--app-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.student-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.student-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.student-info .student-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── SETTINGS ── */
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  padding: 0 24px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.settings-content::-webkit-scrollbar {
  width: 5px;
}

.settings-content::-webkit-scrollbar-track {
  background: transparent;
}

.settings-content::-webkit-scrollbar-thumb {
  background: var(--dot-color);
  border-radius: 10px;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.settings-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.settings-group input,
.settings-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.settings-group input:focus,
.settings-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.gym-logo-picker {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gym-logo-preview-col {
  flex-shrink: 0;
}

.gym-logo-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--app-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 780px;
  padding: 28px 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.modal-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
}

.modal-photos-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.photo-upload {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px dashed var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}

.photo-upload:hover {
  border-color: var(--accent);
}

.photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(220,38,38,0.9);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-fields-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-fields-col .full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: none;
  height: 56px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

/* ── DETAIL PANEL ── */
.detail-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.detail-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.detail-panel {
  background: var(--app-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.detail-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--border-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.view-info-link {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

.detail-close {
  margin-right: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.detail-close:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.programs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.program-item:hover {
  border-color: var(--card-hover-border);
}

.program-item-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.program-item-info span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

.program-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.program-open-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.program-open-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn.delete:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.add-program-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px dashed var(--border);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  margin-top: 10px;
  transition: all 0.2s;
}

.add-program-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.no-programs {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 300;
}

/* ── INFO PANEL ── */
.info-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.info-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.info-panel {
  background: var(--app-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.info-panel-left {
  width: 320px;
  padding: 60px 12px 12px 12px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
}

.info-panel-photos-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.photo-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.photo-nav-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.info-panel-photos {
  flex: 1;
  align-self: stretch;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border-light);
  cursor: pointer;
  min-height: 200px;
}

.info-panel-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-panel-photos img.active {
  opacity: 1;
}

.info-panel-photos .no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.2;
}

.info-panel-dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.info-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color);
  cursor: pointer;
  transition: background 0.2s;
}

.info-panel-dot.active {
  background: var(--accent);
}

.info-panel-right {
  flex: 1;
  padding: 28px 24px;
  overflow-y: auto;
}

.info-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.info-panel-close:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.info-panel-edit-btn {
  position: absolute;
  top: 12px;
  right: 50px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--app-bg);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  z-index: 5;
}

.info-panel-edit-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.info-panel-delete-btn {
  position: absolute;
  top: 12px;
  right: 130px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #fecaca;
  background: var(--app-bg);
  color: #dc2626;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  z-index: 5;
}

.info-panel-delete-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.info-field {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.info-field-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.info-notes {
  margin-top: 16px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.info-notes strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  font-size: 18px;
  z-index: 301;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .app-window {
    border-radius: 0;
    height: 100vh;
  }

  .sidebar {
    width: 160px;
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }

  .info-panel {
    flex-direction: column;
  }

  .info-panel-left {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding: 50px 12px 12px 12px;
  }

  .welcome-features-row {
    grid-template-columns: 1fr;
  }

  .welcome-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .welcome-scroll {
    padding: 32px 20px;
  }

  .welcome-brand h1 {
    font-size: 24px;
  }

  .testimonials-slide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sidebar {
    display: none;
  }

  .page-header {
    padding: 16px 16px 0 16px;
  }

  .controls-row,
  .categories-row {
    padding: 0 16px;
  }

  .students-grid {
    padding: 5px 16px 16px 16px;
  }

  .settings-content {
    padding: 0 16px 16px 16px;
  }

  .welcome-scroll {
    padding: 24px 16px;
  }

  .welcome-brand h1 {
    font-size: 24px;
  }
}