/* ============================================================
   Beekix Study Tools — Shared Styles (Hydro-Organic Design)
   Used by: quiz-list, practice-test-list, flashcard-list
   ============================================================ */

/* ── Page layout ── */
.st-page { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }

/* ── Header ── */
.st-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.st-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--text, #0f172a); }
.st-subtitle { margin: 4px 0 0; font-size: 14px; color: #64748b; }

/* ── Buttons ── */
.st-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 9999px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; text-decoration: none; line-height: 1.4; }
.st-btn .material-symbols-outlined { font-size: 20px; }
.st-btn--primary { background: linear-gradient(135deg, #1e3a5f, #2b5ea7); color: #fff; }
.st-btn--primary:hover { box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3); transform: translateY(-1px); }
.st-btn--hero { background: #fff; color: #1e3a5f; font-weight: 700; padding: 12px 24px; }
.st-btn--hero:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.st-btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.st-btn--ghost:hover { background: rgba(255,255,255,0.25); }
.st-btn--ghost-dark { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.st-btn--ghost-dark:hover { background: #f1f5f9; color: #1e293b; }
.st-btn--sm { padding: 7px 14px; font-size: 12px; }
.st-btn--sm .material-symbols-outlined { font-size: 16px; }

/* ── Stats bar ── */
.st-stats-bar { display: flex; gap: 16px; margin-bottom: 24px; }
.st-stat {
  flex: 1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.st-stat-value { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 800; color: var(--text, #0f172a); }
.st-stat-label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Hero card ── */
.st-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2b5ea7 50%, #00bfa6 100%);
  border-radius: 24px;
  padding: 36px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.st-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,191,166,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.st-hero-content { position: relative; z-index: 1; }
.st-hero-badge {
  display: inline-block;
  background: rgba(0,191,166,0.2);
  border: 1px solid rgba(0,191,166,0.4);
  color: #00bfa6;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.st-hero-title { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; }
.st-hero-meta { font-size: 14px; opacity: 0.8; margin-bottom: 20px; }
.st-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section ── */
.st-section { margin-top: 32px; }
.st-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1e293b);
}
.st-section-title .material-symbols-outlined { font-size: 22px; color: #2b5ea7; }

/* ── Card grid ── */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.st-card {
  position: relative;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.st-card:hover {
  border-color: rgba(30,58,95,0.15);
  box-shadow: 0 4px 20px rgba(30,58,95,0.08);
}

.st-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* ── Card Action Buttons (Practice / View) ── */
.st-card-btns { display: flex; gap: 8px; margin-top: 14px; }

.st-card-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border: none; border-radius: 9999px;
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.st-card-action-btn .material-symbols-outlined { font-size: 16px; }

.st-card-action-btn--primary {
  background: linear-gradient(135deg, #1e3a5f, #2b5ea7); color: #fff;
}
.st-card-action-btn--primary:hover { box-shadow: 0 3px 12px rgba(30,58,95,0.3); }

.st-card-action-btn--secondary {
  background: rgba(0,0,0,0.05); color: #475569;
}
.st-card-action-btn--secondary:hover { background: rgba(0,0,0,0.08); }

/* Visibility toggle button */
.st-vis-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.15s; border: 1.5px solid;
}
.st-vis-btn--public { background: #dcfce7; color: #16a34a; border-color: #22c55e; }
.st-vis-btn--public:hover { background: #bbf7d0; }
.st-vis-btn--private { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.st-vis-btn--private:hover { background: #fee2e2; }
.st-vis-btn .material-symbols-outlined { font-size: 14px; }
.st-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-card-icon .material-symbols-outlined { font-size: 22px; }
.st-card-score { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 800; color: #10b981; }
.st-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1e293b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-card-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.st-card-meta .material-symbols-outlined { font-size: 14px; }
.st-card-actions { display: flex; gap: 8px; }

/* ── Recent History ── */
.st-history-list {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.st-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.st-history-item:last-child { border-bottom: none; }
.st-history-item:hover { background: rgba(99,102,241,0.03); }
.st-history-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st-history-icon .material-symbols-outlined { font-size: 20px; }
.st-history-info { flex: 1; min-width: 0; }
.st-history-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-history-date { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.st-history-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #94a3b8;
  flex-shrink: 0;
}
.st-history-score--good { color: #10b981; }

/* ── Bottom CTA ── */
.st-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: #fff;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.st-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.st-cta h3 { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; position: relative; z-index: 1; }
.st-cta p { margin: 0 0 20px; font-size: 14px; opacity: 0.7; position: relative; z-index: 1; }
.st-cta .st-btn { position: relative; z-index: 1; }

/* ── Empty state ── */
.st-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }
.st-empty .material-symbols-outlined { font-size: 56px; margin-bottom: 12px; opacity: 0.4; }
.st-empty p { margin: 0; font-size: 15px; }
.st-empty-hint { font-size: 13px !important; margin-top: 6px !important; opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .st-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .st-stats-bar { flex-direction: column; }
  .st-grid { grid-template-columns: 1fr; }
  .st-hero { padding: 24px; }
  .st-hero-title { font-size: 18px; }
  .st-hero-actions { flex-direction: column; }
  .st-cta { padding: 28px 20px; }
  .st-cta h3 { font-size: 18px; }
}

@media (max-width: 480px) {
  .st-page { padding: 16px 12px 40px; }
  .st-title { font-size: 20px; }
  .st-stat-value { font-size: 22px; }
  .st-stat { padding: 14px; }
}

/* ── Dark mode ── */
[data-theme="dark"] .st-card { background: var(--card-bg, #1e293b); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .st-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .st-card-title { color: #f1f5f9; }
[data-theme="dark"] .st-title,
[data-theme="dark"] .st-section-title { color: #f1f5f9; }
[data-theme="dark"] .st-stat { background: rgba(30,41,59,0.72); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .st-stat-value { color: #f1f5f9; }
[data-theme="dark"] .st-history-list { background: var(--card-bg, #1e293b); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .st-history-item { border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .st-history-item:hover { background: rgba(99,102,241,0.06); }
[data-theme="dark"] .st-history-title { color: #f1f5f9; }
[data-theme="dark"] .st-btn--ghost-dark { color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .st-btn--ghost-dark:hover { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .st-empty { color: #64748b; }

/* ── Study Folders: Modals ── */
.sf-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: sfFadeIn 0.15s ease;
}
@keyframes sfFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sf-modal-card {
  background: #fff; border-radius: 20px; padding: 32px;
  width: 400px; max-width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: sfPopIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes sfPopIn { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.sf-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sf-modal-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sf-modal-title .material-symbols-outlined { font-size: 24px; color: #f59e0b; }
.sf-modal-close { border: none; background: none; font-size: 24px; cursor: pointer; color: #94a3b8; padding: 4px; border-radius: 8px; }
.sf-modal-close:hover { background: rgba(0,0,0,0.04); color: #475569; }

.sf-modal-input {
  width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc; box-sizing: border-box;
}
.sf-modal-input:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); background: #fff; }
.sf-modal-hint { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.sf-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* Move modal folder list */
.sf-move-list { max-height: 250px; overflow-y: auto; margin: 8px 0; }
.sf-move-folder {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #334155;
  transition: background 0.15s; border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.sf-move-folder:hover { background: rgba(0,0,0,0.04); }
.sf-move-folder .material-symbols-outlined { font-size: 22px; color: #f59e0b; }
.sf-move-folder--root .material-symbols-outlined { color: #6366f1; }

/* ── Card Checkboxes (hover reveal) ── */
.st-card-checkbox {
  position: absolute; top: 12px; left: 12px; width: 22px; height: 22px;
  border: 2px solid #cbd5e1; border-radius: 6px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s; z-index: 3; cursor: pointer; opacity: 0;
}
.st-card-checkbox .material-symbols-outlined { font-size: 16px; color: #fff; display: none; }
.st-card:hover .st-card-checkbox { opacity: 1; }
.st-card.selected .st-card-checkbox { opacity: 1; background: #6366f1; border-color: #6366f1; }
.st-card.selected .st-card-checkbox .material-symbols-outlined { display: block; }
.st-card.selected { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }

/* ── Select Mode Action Bar ── */
.st-select-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #6366f1; color: #fff; border-radius: 16px;
  padding: 12px 20px; margin-bottom: 20px;
  animation: stSlideDown 0.2s ease;
}
@keyframes stSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.st-select-bar-left { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.st-select-bar-actions { display: flex; gap: 8px; }
.st-select-bar .st-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.st-select-bar .st-btn:hover { background: rgba(255,255,255,0.25); }
.st-select-bar .st-btn--danger { background: rgba(239,68,68,0.3); border-color: rgba(239,68,68,0.4); }

/* ── Select Button ── */
.st-btn--select { background: rgba(99,102,241,0.08); color: #6366f1; }
.st-btn--select:hover { background: rgba(99,102,241,0.15); }
.st-btn--select.active { background: #6366f1; color: #fff; }

/* ── 3-dot Menu ── */
.st-card-menu-btn {
  width: 28px; height: 28px; border: none; border-radius: 8px;
  background: transparent; color: #94a3b8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0; z-index: 2;
}
.st-card-menu-btn:hover { background: rgba(0,0,0,0.06); color: #475569; }
.st-card-menu-btn .material-symbols-outlined { font-size: 20px; }

/* ── Dropdown Menu ── */
.st-dropdown {
  position: absolute; top: 48px; right: 12px; z-index: 9999;
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.06);
  min-width: 180px; padding: 6px; display: none;
}
.st-dropdown.open { display: block; }
.st-card:has(.st-dropdown.open) { z-index: 999; overflow: visible; }

.st-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #334155;
  transition: background 0.15s; border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.st-dropdown-item:hover { background: rgba(0,0,0,0.04); }
.st-dropdown-item .material-symbols-outlined { font-size: 18px; color: #64748b; }
.st-dropdown-item--danger { color: #ef4444; }
.st-dropdown-item--danger .material-symbols-outlined { color: #ef4444; }
.st-dropdown-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 4px 0; }

.st-dropdown-submenu { padding: 4px 0 4px 8px; display: none; }
.st-dropdown-submenu.open { display: block; }
.st-dropdown-folder {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: #475569;
  transition: background 0.15s; border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.st-dropdown-folder:hover { background: rgba(0,0,0,0.04); }
.st-dropdown-folder .material-symbols-outlined { font-size: 16px; color: #f59e0b; }

/* ── Folder Card Icon ── */
.st-card-icon--folder { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ── Drag & Drop States ── */
.st-card.drag-over { border-color: #2b5ea7; background: rgba(43,94,167,0.04); box-shadow: 0 0 0 2px rgba(43,94,167,0.2); }
.st-card.dragging { opacity: 0.5; }

/* ── Breadcrumbs ── */
.st-breadcrumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.st-breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #64748b; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.15s; text-decoration: none; }
.st-breadcrumb:hover { background: rgba(0,0,0,0.04); color: #1e3a5f; }
.st-breadcrumb .material-symbols-outlined { font-size: 16px; }
.st-breadcrumb-sep { color: #cbd5e1; }
.st-breadcrumb-sep .material-symbols-outlined { font-size: 16px; }
.st-breadcrumb--current { color: #1e293b; font-weight: 600; cursor: default; }
.st-breadcrumb--back { color: #2b5ea7; padding: 4px 6px; margin-right: 4px; border-radius: 8px; }
.st-breadcrumb--back:hover { background: rgba(43,94,167,0.08); color: #1e3a5f; }
.st-breadcrumb--back .material-symbols-outlined { font-size: 20px; }

/* ── Folder Empty State ── */
.st-folder-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: #94a3b8; }
.st-folder-empty .material-symbols-outlined { font-size: 48px; opacity: 0.4; margin-bottom: 8px; }
.st-folder-empty p { font-size: 14px; margin: 4px 0 0; }

[data-theme="dark"] .sf-modal-card { background: #1e293b; }
[data-theme="dark"] .sf-modal-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .sf-modal-input:focus { border-color: #6366f1; }
[data-theme="dark"] .sf-move-folder { color: #e2e8f0; }
[data-theme="dark"] .sf-move-folder:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .st-dropdown { background: #1e293b; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .st-dropdown-item { color: #e2e8f0; }
[data-theme="dark"] .st-dropdown-item:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .st-dropdown-folder { color: #cbd5e1; }
[data-theme="dark"] .st-dropdown-folder:hover { background: rgba(255,255,255,0.06); }

/* ── Flashcard Create Page ── */
.fc-page { max-width: 800px; margin: 0 auto; padding: 24px 16px 120px; }

.fc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.fc-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 800; color: #1e3a5f; letter-spacing: -0.5px; }
.fc-subtitle { margin: 6px 0 0; font-size: 14px; color: #64748b; font-weight: 500; }

.fc-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border: none; border-radius: 9999px;
  background: #0A2472; color: #fff; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(10, 36, 114, 0.15);
}
.fc-save-btn:hover { box-shadow: 0 12px 32px rgba(10, 36, 114, 0.25); transform: translateY(-1px); }
.fc-save-btn:active { transform: scale(0.97); }
.fc-save-btn--sm { padding: 8px 18px; font-size: 13px; }
.fc-save-btn .material-symbols-outlined { font-size: 20px; }

/* Settings row */
.fc-settings { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.fc-setting-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: 1px solid #e2e8f0; border-radius: 9999px;
  background: #fff; color: #475569; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fc-setting-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.fc-setting-btn .material-symbols-outlined { font-size: 18px; }
.fc-setting-btn--public { background: #dcfce7; color: #16a34a; border-color: #86efac; }
.fc-setting-btn--public:hover { background: #bbf7d0; }
.fc-setting-btn--private { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.fc-setting-btn--private:hover { background: #fee2e2; }

/* Ghost border inputs */
.fc-inputs { max-width: 640px; margin-bottom: 40px; }
.fc-ghost-field { border-bottom: 2px solid #e2e8f0; padding: 8px 0; margin-bottom: 24px; transition: border-color 0.2s; }
.fc-ghost-field:focus-within { border-bottom-color: #68fade; }
.fc-ghost-input {
  width: 100%; border: none; background: transparent; outline: none;
  font-family: inherit; color: #1e3a5f; padding: 4px 0;
}
.fc-ghost-input::placeholder { color: #cbd5e1; }
.fc-ghost-input--title { font-size: 24px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.fc-ghost-input--desc { font-size: 16px; font-weight: 400; color: #64748b; resize: none; }
.fc-ghost-label {
  display: block; font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 2px; margin-top: 6px;
  opacity: 0; transition: opacity 0.2s;
}
.fc-ghost-field:focus-within .fc-ghost-label { opacity: 1; }

/* AI Generate button */
.fc-ai-section { margin-bottom: 40px; }
.fc-ai-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: 9999px;
  background: linear-gradient(135deg, #68fade 0%, #d5e3ff 100%);
  color: #00201b; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(104, 250, 222, 0.2);
}
.fc-ai-btn:hover { box-shadow: 0 10px 30px rgba(104, 250, 222, 0.3); transform: translateY(-1px); }
.fc-ai-btn .material-symbols-outlined { font-size: 20px; }
.fc-ai-btn--locked { opacity: 0.75; }
.fc-pro-badge { background: #0A2472; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }

/* AI Panel */
.fc-ai-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin-bottom: 40px; }
.fc-ai-panel-header { font-size: 16px; color: #1e3a5f; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.fc-ai-panel-header .material-symbols-outlined { color: #68fade; }
.fc-ai-panel-desc { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.fc-ai-textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px; font-family: inherit; font-size: 14px;
  resize: vertical; outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.fc-ai-textarea:focus { border-color: #68fade; }
.fc-ai-options { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fc-ai-label { font-size: 13px; font-weight: 600; color: #475569; }
.fc-ai-select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; font-family: inherit; font-size: 13px; }

/* Card blocks */
.fc-cards { margin-bottom: 24px; }
.fc-card-block {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(0,0,0,0.04); border-radius: 16px;
  padding: 32px; margin-bottom: 24px;
  box-shadow: 0 10px 30px -5px rgba(30, 58, 95, 0.04);
  transition: all 0.2s;
}
.fc-card-block:hover { box-shadow: 0 20px 40px -8px rgba(30, 58, 95, 0.08); }

.fc-card-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.fc-card-block-num { display: flex; align-items: center; gap: 12px; }
.fc-card-num-badge {
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
  color: #1e3a5f; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fc-card-num-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 2px; }

.fc-card-delete {
  width: 36px; height: 36px; border: none; background: transparent;
  color: #cbd5e1; border-radius: 50%; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.fc-card-delete:hover { color: #ef4444; background: rgba(239,68,68,0.05); }
.fc-card-delete .material-symbols-outlined { font-size: 20px; }

.fc-card-block-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.fc-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.fc-card-image-upload { width: 140px; }
.fc-card-image-zone {
  border: 2px dashed #e2e8f0; border-radius: 12px; height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #94a3b8; cursor: pointer; transition: all 0.15s; gap: 4px;
}
.fc-card-image-zone:hover { border-color: #68fade; background: #fff; }
.fc-card-image-zone .material-symbols-outlined { font-size: 28px; }
.fc-card-image-zone span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Add card button */
.fc-add-card {
  width: 100%; padding: 40px; border: 2px dashed #e2e8f0; border-radius: 16px;
  background: transparent; color: #94a3b8; font-family: inherit;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; transition: all 0.2s; margin-bottom: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fc-add-card:hover { border-color: #68fade; color: #005045; background: rgba(104,250,222,0.04); }
.fc-add-card .material-symbols-outlined { font-size: 36px; transition: transform 0.2s; }
.fc-add-card:hover .material-symbols-outlined { transform: scale(1.2); }

/* Responsive */
@media (max-width: 768px) {
  .fc-header { flex-direction: column; }
  .fc-card-block-body { grid-template-columns: 1fr; }
  .fc-card-fields { grid-template-columns: 1fr; }
  .fc-card-image-upload { width: 100%; }
  .fc-card-image-zone { height: 80px; }
  .fc-ghost-input--title { font-size: 20px; }
}
