/* 
   FileForge Premium Theme & Global Stylesheet
   Powered by HSL Variable System - 16 Master Themes
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- 16 CURATED THEMES --- */

/* 1. Midnight Slate (Default Slate Dark) */
.theme-midnight {
  --bg-color: #0b0f19;
  --card-bg: rgba(22, 30, 49, 0.7);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --glow-color: rgba(99, 102, 241, 0.25);
  --border-color: rgba(255, 255, 255, 0.08);
}

/* 2. Cyberpunk Neon */
.theme-cyberpunk {
  --bg-color: #050508;
  --card-bg: rgba(13, 10, 18, 0.85);
  --text-primary: #00ffcc;
  --text-secondary: #ff007f;
  --accent-primary: #ff0055;
  --accent-secondary: #00f0ff;
  --accent-gradient: linear-gradient(135deg, #ff0055 0%, #00f0ff 100%);
  --glow-color: rgba(255, 0, 85, 0.4);
  --border-color: rgba(0, 255, 204, 0.15);
}

/* 3. Dracula */
.theme-dracula {
  --bg-color: #1e1f29;
  --card-bg: rgba(40, 42, 54, 0.8);
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --accent-primary: #ff79c6;
  --accent-secondary: #bd93f9;
  --accent-gradient: linear-gradient(135deg, #ff79c6 0%, #bd93f9 100%);
  --glow-color: rgba(189, 147, 249, 0.35);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 4. Tokyo Night */
.theme-tokyonight {
  --bg-color: #1a1b26;
  --card-bg: rgba(36, 40, 59, 0.8);
  --text-primary: #c0caf5;
  --text-secondary: #787c99;
  --accent-primary: #7aa2f7;
  --accent-secondary: #bb9af3;
  --accent-gradient: linear-gradient(135deg, #7aa2f7 0%, #bb9af3 100%);
  --glow-color: rgba(122, 162, 247, 0.3);
  --border-color: rgba(255, 255, 255, 0.07);
}

/* 5. Emerald Forest */
.theme-emerald {
  --bg-color: #06110d;
  --card-bg: rgba(16, 29, 24, 0.75);
  --text-primary: #ecfdf5;
  --text-secondary: #6ee7b7;
  --accent-primary: #10b981;
  --accent-secondary: #34d399;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --glow-color: rgba(16, 185, 129, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 6. Ocean Breeze */
.theme-ocean {
  --bg-color: #030e1a;
  --card-bg: rgba(9, 28, 47, 0.75);
  --text-primary: #f0f9ff;
  --text-secondary: #7dd3fc;
  --accent-primary: #0ea5e9;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --glow-color: rgba(14, 165, 233, 0.3);
  --border-color: rgba(255, 255, 255, 0.08);
}

/* 7. Nordic Frost */
.theme-nord {
  --bg-color: #2e3440;
  --card-bg: rgba(59, 66, 82, 0.8);
  --text-primary: #eceff4;
  --text-secondary: #d8dee9;
  --accent-primary: #88c0d0;
  --accent-secondary: #8fbcbb;
  --accent-gradient: linear-gradient(135deg, #88c0d0 0%, #8fbcbb 100%);
  --glow-color: rgba(136, 192, 208, 0.25);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 8. Amethyst Jewel */
.theme-amethyst {
  --bg-color: #0e0516;
  --card-bg: rgba(26, 13, 39, 0.75);
  --text-primary: #faf5ff;
  --text-secondary: #d8b4fe;
  --accent-primary: #a855f7;
  --accent-secondary: #c084fc;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  --glow-color: rgba(168, 85, 247, 0.35);
  --border-color: rgba(255, 255, 255, 0.05);
}

/* 9. Sunset Glow */
.theme-sunset {
  --bg-color: #170d0d;
  --card-bg: rgba(36, 21, 21, 0.8);
  --text-primary: #fff7ed;
  --text-secondary: #fdba74;
  --accent-primary: #f97316;
  --accent-secondary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --glow-color: rgba(249, 115, 22, 0.35);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 10. Golden Luxury */
.theme-gold {
  --bg-color: #0b0a07;
  --card-bg: rgba(28, 26, 20, 0.8);
  --text-primary: #fefcf6;
  --text-secondary: #e6c894;
  --accent-primary: #d4af37;
  --accent-secondary: #f3e5ab;
  --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%);
  --glow-color: rgba(212, 175, 55, 0.3);
  --border-color: rgba(255, 255, 255, 0.05);
}

/* 11. Matrix Digital */
.theme-matrix {
  --bg-color: #000000;
  --card-bg: rgba(5, 12, 5, 0.85);
  --text-primary: #33ff33;
  --text-secondary: #008800;
  --accent-primary: #00ff00;
  --accent-secondary: #00cc00;
  --accent-gradient: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
  --glow-color: rgba(0, 255, 0, 0.45);
  --border-color: rgba(0, 255, 0, 0.2);
}

/* 12. Sakura Petal */
.theme-sakura {
  --bg-color: #120d10;
  --card-bg: rgba(33, 21, 27, 0.8);
  --text-primary: #fff1f2;
  --text-secondary: #fbcfe8;
  --accent-primary: #f472b6;
  --accent-secondary: #fda4af;
  --accent-gradient: linear-gradient(135deg, #f472b6 0%, #fda4af 100%);
  --glow-color: rgba(244, 114, 182, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 13. Lavender Dream */
.theme-lavender {
  --bg-color: #100f1c;
  --card-bg: rgba(30, 28, 48, 0.75);
  --text-primary: #f5f3ff;
  --text-secondary: #c7d2fe;
  --accent-primary: #818cf8;
  --accent-secondary: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --glow-color: rgba(129, 140, 248, 0.25);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 14. Carbon Tech */
.theme-carbon {
  --bg-color: #121315;
  --card-bg: rgba(28, 30, 34, 0.8);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-primary: #ff6600;
  --accent-secondary: #ff8833;
  --accent-gradient: linear-gradient(135deg, #ff6600 0%, #ff8833 100%);
  --glow-color: rgba(255, 102, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
}

/* 15. Crimson Velvet */
.theme-crimson {
  --bg-color: #0e0507;
  --card-bg: rgba(30, 12, 16, 0.8);
  --text-primary: #fff5f5;
  --text-secondary: #fca5a5;
  --accent-primary: #dc2626;
  --accent-secondary: #ef4444;
  --accent-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --glow-color: rgba(220, 38, 38, 0.35);
  --border-color: rgba(255, 255, 255, 0.05);
}

/* 16. Clarity Light */
.theme-light {
  --bg-color: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --accent-secondary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --glow-color: rgba(37, 99, 235, 0.15);
  --border-color: rgba(0, 0, 0, 0.08);
}


/* --- GLOBAL CORE BASICS --- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- CUSTOM SCROLLBARS --- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-bg);
  border: 2px solid var(--bg-color);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}


/* --- PREMIUM GLASS NAVIGATION & HERO --- */

.site-nav {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.hero {
  padding: 90px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 15px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero.small {
  padding: 50px 20px 30px;
}

.hero.small h1 {
  font-size: 38px;
}


/* --- HOME GRID LAYOUT --- */

.home-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
}


/* --- PREMIUM GLASS CARDS & HOVER SHIMMERS --- */

.tool-box-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.tool-box-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.tool-box-card:hover::before {
  left: 150%;
}

.tool-box-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px var(--glow-color);
}

.tool-box-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tool-box-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.tool-box-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 15px;
}


/* --- INTEGRATED APP WORKBENCH --- */

.app {
  max-width: 960px;
  width: 100%;
  margin: 20px auto 60px;
  padding: 0 24px;
}

.panel {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}


/* --- FORMS & INPUT CONTROLS --- */

textarea {
  width: 100%;
  min-height: 180px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-color);
}

select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
}

select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-color);
}

input[type="text"],
input[type="number"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-color);
}

/* --- FILE UPLOAD COMPONENT --- */
input[type="file"] {
  display: none;
}

.file-dropzone {
  border: 2px dashed var(--border-color);
  background: rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-dropzone:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.2);
}

.file-dropzone p {
  color: var(--text-secondary);
  font-size: 16px;
}

.file-dropzone i {
  font-size: 42px;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* --- MODERN COMPACT RANGE SLIDERS --- */

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--glow-color);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}


/* --- RICH GRID & OPTIONS CONTROLS --- */

.options-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.options-panel label {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.options-panel label:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
}

.options-panel input[type="checkbox"], 
.options-panel input[type="radio"] {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}


/* --- BUTTON STATES & ACTION BARS --- */

.action-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

button {
  padding: 15px 28px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--card-bg);
  color: var(--text-primary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px var(--glow-color);
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 6px 20px var(--glow-color);
}

button.primary:hover {
  box-shadow: 0 10px 25px var(--accent-primary);
}


/* --- FLOATING SETTINGS BTN & DIALOGS --- */

.floating-settings-btn {
  background: var(--accent-gradient);
  color: #fff !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
  border: none !important;
}

.theme-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 30px;
  z-index: 10000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.theme-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 5px;
  margin: 20px 0;
}

.theme-swatch {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.theme-swatch:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

.theme-swatch.active {
  border-color: var(--accent-primary);
  background: var(--accent-gradient);
  color: #fff;
}

.swatch-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}


/* --- VISUAL PDF WORKBENCH DASHBOARD --- */

.pdf-visual-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.pdf-page-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pdf-page-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.pdf-page-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pdf-page-number {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 10px var(--glow-color);
}

.pdf-page-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pdf-page-delete:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #fff;
  border-color: transparent;
}

.pdf-page-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 Ratio */
  background: #111520;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-page-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-page-controls {
  display: flex;
  gap: 8px;
  width: 100%;
}

.pdf-page-controls button {
  flex-grow: 1;
  padding: 8px;
  font-size: 12px;
  justify-content: center;
  border-radius: 10px;
}


/* --- PRESET UTILITIES --- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 15px;
}

.back-link:hover {
  color: var(--accent-secondary);
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}


/* --- BEAUTIFUL ALERTS & SPIN OVERLAYS --- */

.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100000;
}

.toast {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 16px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #dc2626;
}

.spinner-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* --- RESPONSIVE LAYOUT BREAKPOINTS --- */

@media (max-width: 768px) {
  .site-nav {
    padding: 15px 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .home-wrap {
    padding: 20px;
    gap: 20px;
  }
  .panel {
    padding: 20px;
  }
}
