/* 🌈 THEME COLORS — EDIT ANY TIME */
:root {
  --resume-border: #ffb3d6;
  --resume-heading: #ff2ea6;
  --surface-glass: rgba(255, 20, 147, 0.16);
  --surface-panel: #ffffff;
  --text-muted: #754d62;

  --accent-1: #d96fab;      /* HOT PINK */
  --accent-2: #d47ab3;      /* Soft pink */
  --accent-glow: rgba(255, 20, 147, 0.35);
}

/* GLOBAL */
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f5f7ff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 🌙 DARK MODE */
body[data-mode="dark"] {
  background-color: #26090c !important;
  color: #e2e8f0;
}

body[data-mode="dark"] .card {
  background-color: #411041;
  color: #e2e8f0;
}

/* PAGE LAYOUT */
.page-shell {
  max-width: 1200px;
}

/* 🔥 GRADIENT HEADER */
.frosted-header {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  position: relative;
  box-shadow: 0 25px 60px var(--accent-glow);
}

.frosted-header .gradient-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  pointer-events: none;
}

/* DASHBOARD STATS */
.stat-chip {
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  min-width: 120px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

.preview-toolbar .btn.active {
  background-color: #ff2b2b;
  color: #fff;
  border-color: #ff2b2b;
}
/* GLASS PANELS */
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.card {
  background-color: #fff0f0; /* Soft red background */
}

.glass-panel {
  background-color: rgba(255, 0, 0, 0.15); /* Glassy red effect */
  border-color: rgba(255, 0, 0, 0.2);
}

/* FORM BUILDER PANEL */
.builder-panel {
  top: 1rem;
  overflow-y: auto;
  border: none;
}

/* SECTION NAVIGATION */
.section-nav {
  padding: 0 0.2rem 0 0.2rem;
  transition: all 0.3s ease;
}

.section-nav:hover {
  background: rgba(255, 255, 255, 1);
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 0 1rem 0 1rem;
  transition: all 0.3s ease;
}

.section-nav button {
  border-radius: 999px;
  border: 1px solid var(--resume-border);
  background: transparent;
  padding: 0.35rem 0.9rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.section-nav button:hover,
.section-nav button.active {
  background: rgba(122, 92, 255, 0.12);
  color: var(--accent-1);
  border-color: rgba(122, 92, 255, 0.5);
}

.section-nav button.is-complete {
  border-color: rgba(32, 201, 151, 0.8);
  color: #20c997;
}

.section-nav button.is-complete::after {
  content: "✓";
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.section-nav .section-btn-text {
  display: none;
}

.section-nav:hover .section-btn-text {
  display: inline-block;
}

/* PREVIEW AREA */
.preview-shell {
  min-height: 720px;
}

.preview-pane {
  min-height: 640px;
  border-radius: 0 0 2rem 2rem;
  background-size: 40px 40px;
  transition: background-image 0.3s ease, background-color 0.3s ease;
}

.preview-pane.grid {
  background-image:
    linear-gradient(0deg, var(--accent-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-1) 1px, transparent 1px);
  opacity: 0.05;
}

.preview-pane.slate {
  background-color: #0b1729;
}

/* PREVIEW TOOLBAR */
.preview-toolbar .btn.active {
  background-color: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* TEMPLATE SELECTOR */
.template-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 1rem;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.template-pill.active {
  background: #fff;
  color: var(--accent-1);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* RESUME PREVIEW STYLING */
.resume-preview {
  min-height: 600px;
  border: 1px solid var(--resume-border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  background: #ffffff;
}

.resume-preview h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.resume-preview h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-top: 1.5rem;
  text-shadow: 0 2px 8px var(--accent-glow);
}

.resume-preview ul {
  padding-left: 1.1rem;
}

/* EXPORT CARDS */
.export-card {
  border: 1px solid var(--resume-border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #f8f9ff;
  margin-bottom: 1rem;
  box-shadow: 0 3px 12px rgba(122, 92, 255, 0.12);
}

/* SKILLS BADGE */
.badge-skill {
  background-color: rgba(122, 92, 255, 0.12);
  color: var(--accent-1);
  margin: 0.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* TEMPLATES */
.template-minimal {
  border-left: 4px solid var(--resume-heading);
  padding-left: 1.5rem;
}

.template-card {
  border: 1px solid var(--resume-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(122, 92, 255, 0.12);
}

/* FORM LABELS */
.form-section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #65748b;
}

/* FOCUS STYLE */
.builder-panel input:focus,
.builder-panel textarea:focus,
.builder-panel select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 0.25rem rgba(122, 92, 255, 0.25);
}

/* MOBILE FIX */
@media (max-width: 991px) {
  .builder-panel {
    position: static !important;
  }
}