/* Admin CSS - Built from src/css/main.css */

/* === reset.css === */
/* Reset & Base Styles + Complete 2025 Design System */

/* === COMPREHENSIVE 2025 DESIGN SYSTEM === */
:root {
  /* === COMPLETE SPACING SCALE (0-96 + special values) === */
  --space-0: 0;
  --space-px: 1px;
  --space-0\.5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;      /* 4px */
  --space-1\.5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;       /* 8px */
  --space-2\.5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;      /* 12px */
  --space-3\.5: 0.875rem;  /* 14px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-7: 1.75rem;      /* 28px */
  --space-8: 2rem;         /* 32px */
  --space-9: 2.25rem;      /* 36px */
  --space-10: 2.5rem;      /* 40px */
  --space-11: 2.75rem;     /* 44px */
  --space-12: 3rem;        /* 48px */
  --space-14: 3.5rem;      /* 56px */
  --space-16: 4rem;        /* 64px */
  --space-18: 4.5rem;      /* 72px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-28: 7rem;        /* 112px */
  --space-32: 8rem;        /* 128px */
  --space-36: 9rem;        /* 144px */
  --space-40: 10rem;       /* 160px */
  --space-44: 11rem;       /* 176px */
  --space-48: 12rem;       /* 192px */
  --space-52: 13rem;       /* 208px */
  --space-56: 14rem;       /* 224px */
  --space-60: 15rem;       /* 240px */
  --space-64: 16rem;       /* 256px */
  --space-72: 18rem;       /* 288px */
  --space-80: 20rem;       /* 320px */
  --space-96: 24rem;       /* 384px */

  /* === COMPLETE TYPOGRAPHY SCALE (xs to 9xl + special) === */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */
  --text-9xl: 8rem;        /* 128px */
  
  /* Legacy font- aliases for compatibility */
  --font-xs: var(--text-xs);
  --font-sm: var(--text-sm);
  --font-base: var(--text-base);
  --font-lg: var(--text-lg);
  --font-xl: var(--text-xl);
  --font-2xl: var(--text-2xl);
  --font-3xl: var(--text-3xl);
  --font-4xl: var(--text-4xl);
  --font-5xl: var(--text-5xl);
  --font-6xl: var(--text-6xl);
  --font-7xl: var(--text-7xl);
  --font-8xl: var(--text-8xl);
  --font-9xl: var(--text-9xl);
  
  /* Special purpose sizes */
  --font-tiny: 0.6875rem;   /* 11px */
  --font-small: 0.8125rem;  /* 13px */
  --font-medium: 0.9375rem; /* 15px */
  --font-large: 1.75rem;    /* 28px */
  --font-huge: 2.5rem;      /* 40px */

  /* === FONT WEIGHTS === */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium-weight: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* === LINE HEIGHT SCALE === */
  --leading-3: .75rem;      /* 12px */
  --leading-4: 1rem;        /* 16px */
  --leading-5: 1.25rem;     /* 20px */
  --leading-6: 1.5rem;      /* 24px */
  --leading-7: 1.75rem;     /* 28px */
  --leading-8: 2rem;        /* 32px */
  --leading-9: 2.25rem;     /* 36px */
  --leading-10: 2.5rem;     /* 40px */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* === LETTER SPACING SCALE === */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Legacy aliases */
  --letter-tighter: var(--tracking-tighter);
  --letter-tight: var(--tracking-tight);
  --letter-normal: var(--tracking-normal);
  --letter-wide: var(--tracking-wide);
  --letter-wider: var(--tracking-wider);
  --letter-widest: var(--tracking-widest);

  /* === COMPLETE WIDTH SCALE (0-96 + percentages + viewport + special) === */
  --w-0: 0;
  --w-px: 1px;
  --w-0\.5: 0.125rem;       /* 2px */
  --w-1: 0.25rem;           /* 4px */
  --w-1\.5: 0.375rem;       /* 6px */
  --w-2: 0.5rem;            /* 8px */
  --w-2\.5: 0.625rem;       /* 10px */
  --w-3: 0.75rem;           /* 12px */
  --w-3\.5: 0.875rem;       /* 14px */
  --w-4: 1rem;              /* 16px */
  --w-5: 1.25rem;           /* 20px */
  --w-6: 1.5rem;            /* 24px */
  --w-7: 1.75rem;           /* 28px */
  --w-8: 2rem;              /* 32px */
  --w-9: 2.25rem;           /* 36px */
  --w-10: 2.5rem;           /* 40px */
  --w-11: 2.75rem;          /* 44px */
  --w-12: 3rem;             /* 48px */
  --w-14: 3.5rem;           /* 56px */
  --w-15: 3.75rem;          /* 60px */
  --w-16: 4rem;             /* 64px */
  --w-18: 4.5rem;           /* 72px */
  --w-20: 5rem;             /* 80px */
  --w-24: 6rem;             /* 96px */
  --w-25: 6.25rem;          /* 100px */
  --w-28: 7rem;             /* 112px */
  --w-30: 7.5rem;           /* 120px */
  --w-32: 8rem;             /* 128px */
  --w-36: 9rem;             /* 144px */
  --w-38: 9.5rem;           /* 152px */
  --w-40: 10rem;            /* 160px */
  --w-44: 11rem;            /* 176px */
  --w-48: 12rem;            /* 192px */
  --w-50: 12.5rem;          /* 200px */
  --w-52: 13rem;            /* 208px */
  --w-56: 14rem;            /* 224px */
  --w-60: 15rem;            /* 240px */
  --w-62: 15.5rem;          /* 248px */
  --w-64: 16rem;            /* 256px */
  --w-70: 17.5rem;          /* 280px */
  --w-72: 18rem;            /* 288px */
  --w-80: 20rem;            /* 320px */
  --w-96: 24rem;            /* 384px */
  
  /* Fractional widths */
  --w-1\/2: 50%;
  --w-1\/3: 33.333333%;
  --w-2\/3: 66.666667%;
  --w-1\/4: 25%;
  --w-2\/4: 50%;
  --w-3\/4: 75%;
  --w-1\/5: 20%;
  --w-2\/5: 40%;
  --w-3\/5: 60%;
  --w-4\/5: 80%;
  --w-1\/6: 16.666667%;
  --w-2\/6: 33.333333%;
  --w-3\/6: 50%;
  --w-4\/6: 66.666667%;
  --w-5\/6: 83.333333%;
  --w-1\/12: 8.333333%;
  --w-2\/12: 16.666667%;
  --w-3\/12: 25%;
  --w-4\/12: 33.333333%;
  --w-5\/12: 41.666667%;
  --w-6\/12: 50%;
  --w-7\/12: 58.333333%;
  --w-8\/12: 66.666667%;
  --w-9\/12: 75%;
  --w-10\/12: 83.333333%;
  --w-11\/12: 91.666667%;
  
  /* Special widths */
  --w-full: 100%;
  --w-screen: 100vw;
  --w-min: min-content;
  --w-max: max-content;
  --w-fit: fit-content;
  
  /* Named responsive widths */
  --w-xs: 20rem;            /* 320px mobile */
  --w-sm: 24rem;            /* 384px */
  --w-md: 28rem;            /* 448px */
  --w-lg: 32rem;            /* 512px */
  --w-xl: 36rem;            /* 576px */
  --w-2xl: 42rem;           /* 672px */
  --w-3xl: 48rem;           /* 768px tablet */
  --w-4xl: 56rem;           /* 896px */
  --w-5xl: 64rem;           /* 1024px */
  --w-6xl: 72rem;           /* 1152px */
  --w-7xl: 80rem;           /* 1280px */
  
  /* Project-specific sizes */
  --w-mobile: 23.4375rem;   /* 375px */
  --w-tablet: 48rem;        /* 768px */
  --w-desktop: 75rem;       /* 1200px */
  --w-content: 50rem;       /* 800px */
  --w-modal: 56.25rem;      /* 900px */
  --w-modal-sm: 28.125rem;  /* 450px */

  /* === COMPLETE HEIGHT SCALE === */
  --h-0: 0;
  --h-px: 1px;
  --h-0\.5: 0.125rem;       /* 2px */
  --h-1: 0.25rem;           /* 4px */
  --h-1\.5: 0.375rem;       /* 6px */
  --h-2: 0.5rem;            /* 8px */
  --h-2\.5: 0.625rem;       /* 10px */
  --h-3: 0.75rem;           /* 12px */
  --h-3\.5: 0.875rem;       /* 14px */
  --h-4: 1rem;              /* 16px */
  --h-5: 1.25rem;           /* 20px */
  --h-6: 1.5rem;            /* 24px */
  --h-7: 1.75rem;           /* 28px */
  --h-8: 2rem;              /* 32px */
  --h-9: 2.25rem;           /* 36px */
  --h-10: 2.5rem;           /* 40px */
  --h-11: 2.75rem;          /* 44px */
  --h-12: 3rem;             /* 48px */
  --h-14: 3.5rem;           /* 56px */
  --h-15: 3.75rem;          /* 60px */
  --h-16: 4rem;             /* 64px */
  --h-18: 4.5rem;           /* 72px */
  --h-20: 5rem;             /* 80px */
  --h-24: 6rem;             /* 96px */
  --h-25: 6.25rem;          /* 100px */
  --h-28: 7rem;             /* 112px */
  --h-30: 7.5rem;           /* 120px */
  --h-32: 8rem;             /* 128px */
  --h-36: 9rem;             /* 144px */
  --h-40: 10rem;            /* 160px */
  --h-44: 11rem;            /* 176px */
  --h-48: 12rem;            /* 192px */
  --h-50: 12.5rem;          /* 200px */
  --h-52: 13rem;            /* 208px */
  --h-56: 14rem;            /* 224px */
  --h-60: 15rem;            /* 240px */
  --h-64: 16rem;            /* 256px */
  --h-72: 18rem;            /* 288px */
  --h-75: 18.75rem;         /* 300px */
  --h-80: 20rem;            /* 320px */
  --h-96: 24rem;            /* 384px */
  --h-100: 25rem;           /* 400px */
  --h-150: 37.5rem;         /* 600px */
  
  /* Fractional heights */
  --h-1\/2: 50%;
  --h-1\/3: 33.333333%;
  --h-2\/3: 66.666667%;
  --h-1\/4: 25%;
  --h-2\/4: 50%;
  --h-3\/4: 75%;
  --h-1\/5: 20%;
  --h-2\/5: 40%;
  --h-3\/5: 60%;
  --h-4\/5: 80%;
  --h-1\/6: 16.666667%;
  --h-5\/6: 83.333333%;
  
  /* Special heights */
  --h-auto: auto;
  --h-full: 100%;
  --h-screen: 100vh;
  --h-min: min-content;
  --h-max: max-content;
  --h-fit: fit-content;
  
  /* Pixel heights for borders/lines */
  --h-2px: 2px;
  --h-3px: 3px;
  --h-4px: 4px;
  --h-8px: 8px;
  
  /* Device heights */
  --h-mobile: 50.75rem;     /* 812px */
  --h-tablet: 64rem;        /* 1024px */

  /* === COMPLETE BORDER RADIUS SCALE === */
  --radius-none: 0;
  --radius-sm: 0.125rem;    /* 2px */
  --radius: 0.25rem;        /* 4px */
  --radius-md: 0.375rem;    /* 6px */
  --radius-lg: 0.5rem;      /* 8px */
  --radius-xl: 0.75rem;     /* 12px */
  --radius-2xl: 1rem;       /* 16px */
  --radius-3xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;

  /* === COMPLETE SHADOW SCALE === */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-none: 0 0 #0000;

  /* === Z-INDEX SCALE === */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;

  /* === OPACITY SCALE === */
  --opacity-0: 0;
  --opacity-5: 0.05;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-25: 0.25;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-75: 0.75;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-95: 0.95;
  --opacity-100: 1;

  /* === TRANSITIONS === */
  --transition-none: none;
  --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color, background-color, border-color, text-decoration-color, fill, stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Speed variants */
  --transition-fast: all 75ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === BREAKPOINT TOKENS === */
  --screen-sm: 640px;
  --screen-md: 768px;
  --screen-lg: 1024px;
  --screen-xl: 1280px;
  --screen-2xl: 1536px;

  /* === GRID SYSTEM TOKENS === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* === COMPLETE COLOR PALETTE (50-950 variants) === */
  /* Primary Blues */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #007cba;   /* Brand primary */
  --blue-700: #005a87;   /* Brand primary hover */
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  
  /* Grays (Complete scale) */
  --gray-50: #f8f9fa;    /* Light bg */
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #dee2e6;   /* Border color */
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #666;      /* Secondary text */
  --gray-700: #444;      /* Hover text */
  --gray-800: #333;      /* Primary text */
  --gray-900: #111827;
  --gray-950: #030712;
  
  /* Slate (Modern alternative to gray) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  
  /* Red (Complete scale) */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc3545;    /* Brand danger */
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --red-950: #450a0a;
  
  /* Green (Complete scale) */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #28a745;  /* Brand success */
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-950: #052e16;
  
  /* Yellow (Complete scale) */
  --yellow-50: #fefce8;
  --yellow-100: #fef3c7;
  --yellow-200: #fde68a;
  --yellow-300: #fcd34d;
  --yellow-400: #fbbf24;
  --yellow-500: #f59e0b;
  --yellow-600: #ffc107; /* Brand warning */
  --yellow-700: #d97706;
  --yellow-800: #92400e;
  --yellow-900: #78350f;
  --yellow-950: #451a03;
  
  /* Orange (Complete scale) */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --orange-950: #431407;
  
  /* Teal (Complete scale) */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #17a2b8;   /* Brand teal */
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;
  
  /* Purple (Complete scale) */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9c27b0; /* Brand purple */
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --purple-950: #3b0764;
  
  /* Indigo (Complete scale) */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;
  --indigo-950: #1e1b4b;
  
  /* Pink (Complete scale) */
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;
  --pink-950: #500724;
  
  /* Rose (Complete scale) */
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-800: #9f1239;
  --rose-900: #881337;
  --rose-950: #4c0519;
  
  /* Cyan (Complete scale) */
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-800: #155e75;
  --cyan-900: #164e63;
  --cyan-950: #083344;
  
  /* Lime (Complete scale) */
  --lime-50: #f7fee7;
  --lime-100: #ecfccb;
  --lime-200: #d9f99d;
  --lime-300: #bef264;
  --lime-400: #a3e635;
  --lime-500: #84cc16;
  --lime-600: #65a30d;
  --lime-700: #4d7c0f;
  --lime-800: #3f6212;
  --lime-900: #365314;
  --lime-950: #1a2e05;
  
  /* Emerald (Complete scale) */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;
  
  /* Sky (Complete scale) */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;
  --sky-950: #082f49;
  
  /* Violet (Complete scale) */
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;
  --violet-950: #2e1065;
  
  /* Fuchsia (Complete scale) */
  --fuchsia-50: #fdf4ff;
  --fuchsia-100: #fae8ff;
  --fuchsia-200: #f5d0fe;
  --fuchsia-300: #f0abfc;
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;
  --fuchsia-700: #a21caf;
  --fuchsia-800: #86198f;
  --fuchsia-900: #701a75;
  --fuchsia-950: #4a044e;
  
  /* White/Black */
  --white: #ffffff;
  --black: #000000;

  /* === SEMANTIC TOKENS (Easy to use) === */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-secondary: var(--gray-600);
  --color-secondary-hover: var(--gray-700);
  --color-success: var(--green-600);
  --color-danger: var(--red-600);
  --color-warning: var(--yellow-600);
  --color-info: var(--blue-500);

  /* ===================================
     CATEGORY COLORS
     Used for category badges, hero gradients, and featured image fallbacks
     =================================== */

  /* Marketing - Blue */
  --category-marketing: hsl(213, 94%, 53%);
  --category-marketing-light: hsl(213, 94%, 93%);
  --category-marketing-dark: hsl(213, 94%, 33%);
  --category-marketing-text: hsl(213, 94%, 20%);

  /* Development - Green */
  --category-development: hsl(142, 76%, 36%);
  --category-development-light: hsl(142, 76%, 93%);
  --category-development-dark: hsl(142, 76%, 26%);
  --category-development-text: hsl(142, 76%, 16%);

  /* Automation - Purple */
  --category-automation: hsl(271, 76%, 53%);
  --category-automation-light: hsl(271, 76%, 93%);
  --category-automation-dark: hsl(271, 76%, 33%);
  --category-automation-text: hsl(271, 76%, 20%);

  /* Technology - Cyan */
  --category-technology: hsl(187, 76%, 43%);
  --category-technology-light: hsl(187, 76%, 93%);
  --category-technology-dark: hsl(187, 76%, 23%);
  --category-technology-text: hsl(187, 76%, 13%);

  /* Business - Orange */
  --category-business: hsl(24, 94%, 53%);
  --category-business-light: hsl(24, 94%, 93%);
  --category-business-dark: hsl(24, 94%, 33%);
  --category-business-text: hsl(24, 94%, 20%);

  /* Gaming - Pink/Magenta (for gaming sites) */
  --category-gaming: hsl(338, 94%, 53%);
  --category-gaming-light: hsl(338, 94%, 93%);
  --category-gaming-dark: hsl(338, 94%, 33%);
  --category-gaming-text: hsl(338, 94%, 20%);

  /* General - Gray */
  --category-general: hsl(220, 13%, 46%);
  --category-general-light: hsl(220, 13%, 93%);
  --category-general-dark: hsl(220, 13%, 26%);
  --category-general-text: hsl(220, 13%, 16%);

  /* Backgrounds */
  --bg-page: #f5f5f5;        /* Current body bg */
  --bg-card: var(--white);
  --bg-muted: var(--gray-50);
  --bg-secondary: var(--gray-100);
  
  /* Text */
  --text-primary: var(--gray-800);    /* Current #333 */
  --text-secondary: var(--gray-600);   /* Current #666 */
  --text-muted: var(--gray-500);
  
  /* Borders */
  --border: var(--gray-300);           /* Current #dee2e6 */
  --border-light: var(--gray-200);
  --border-strong: var(--gray-400);
  --border-dark: var(--gray-500);
  --border-color: var(--border);       /* Legacy alias */

  /* === PREMIUM GRADIENTS (2025 Modern UI) === */
  /* Primary gradients - Blue based */
  --gradient-primary: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  --gradient-primary-hover: linear-gradient(135deg, #005a87 0%, #004461 100%);
  --gradient-primary-shine: linear-gradient(135deg, #0095e3 0%, #007cba 50%, #005a87 100%);

  /* AI/Magic gradients - Purple to blue */
  --gradient-ai: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-ai-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --gradient-magic: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

  /* Success gradients - Green */
  --gradient-success: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  --gradient-success-hover: linear-gradient(135deg, #1e7e34 0%, #145523 100%);

  /* Danger gradients - Red */
  --gradient-danger: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
  --gradient-danger-hover: linear-gradient(135deg, #bd2130 0%, #a71d2a 100%);

  /* Warm gradients - Orange/Yellow */
  --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  --gradient-sunset: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);

  /* Cool gradients - Cyan/Blue */
  --gradient-cool: linear-gradient(135deg, #17a2b8 0%, #007cba 100%);
  --gradient-ocean: linear-gradient(135deg, #667eea 0%, #17a2b8 100%);

  /* Neutral/Professional */
  --gradient-slate: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  --gradient-gray: linear-gradient(135deg, #6b7280 0%, #374151 100%);

  /* Subtle backgrounds */
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --gradient-muted: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);

  /* === MISSING DESIGN TOKENS === */
  /* Breakpoints */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
  --bp-2xl: 1400px;
  
  /* Additional common colors */
  --gray-666: #666;
  --black-0: rgba(0,0,0,0);
  --black-03: rgba(0, 0, 0, 0.03);
  --black-5: rgba(0,0,0,0.05);
  --black-50: rgba(0,0,0,0.5);
  --black-80: rgba(0,0,0,0.8);
  
  /* Transform values */
  --transform-up: translateY(-1px);
  --transform-up-half: translateY(-0.5px);
  
  /* Calc values */
  --vh-minus-nav: calc(100vh - 60px);
  --vh-minus-header: calc(100vh - 80px);
  
  /* Common pixel values */
  --w-12\.5: 3.125rem;  /* 50px */
  
  /* Additional breakpoints */
  --bp-lg-down: 1000px;
  --bp-md-down: 800px;
  
  /* Additional colors */
  --white-20: rgba(255, 255, 255, 0.2);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-80: rgba(255, 255, 255, 0.8);
  
  /* Blur values */
  --blur-sm: 8px;
  --blur-none: 0px;
  --blur-xs: 4px;
  
  /* Additional colors */
  --editor-bg: #fafbfc;
  --editor-border: #d1d5db;
  --blue-05: rgba(59, 130, 246, 0.05);
  --blue-15: rgba(59, 130, 246, 0.15);
  
  /* Preview specific colors */
  --slate-400-hex: #94a3b8;
  --slate-200-hex: #e2e8f0;
  --blue-600-hex: #2563eb;
  --slate-900-hex: #0f172a;
  --slate-100-hex: #f1f5f9;
  --slate-600-hex: #475569;
  --blue-700-hex: #1d4ed8;
  --red-500-hex: #ef4444;
  --red-100-hex: #fecaca;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);  /* Improved readability: 1.625 instead of 1.5 */
    letter-spacing: var(--tracking-normal);
    color: var(--text-primary);
    background: var(--bg-page);
    transition: var(--transition-fast);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY HIERARCHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);  /* Tighter line-height for headings */
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);  /* 48px */
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
}

h2 {
    font-size: var(--text-4xl);  /* 36px */
    font-weight: var(--font-bold);
    line-height: 1.2;
}

h3 {
    font-size: var(--text-3xl);  /* 30px */
    font-weight: var(--font-bold);
}

h4 {
    font-size: var(--text-2xl);  /* 24px */
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-xl);  /* 20px */
    font-weight: var(--font-semibold);
}

h6 {
    font-size: var(--text-lg);  /* 18px */
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

/* Remove top margin from first heading */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

/* Paragraph & Text Elements */
p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

li:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* Text Utilities */
strong, b {
    font-weight: var(--font-bold);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Code elements */
code, pre {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: var(--text-sm);
}

code {
    background: var(--bg-muted);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

pre {
    background: var(--bg-muted);
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

pre code {
    background: none;
    padding: 0;
}

/* ===================================
   CATEGORY BADGE UTILITY CLASSES
   =================================== */

/* Base category badge styles */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--white);
    backdrop-filter: blur(var(--blur-sm));
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.category-badge:hover {
    transform: var(--transform-up);
    box-shadow: var(--shadow-md);
}

/* Dynamic category badge colors */
.category-badge.marketing {
    background: var(--category-marketing);
}

.category-badge.development {
    background: var(--category-development);
}

.category-badge.automation {
    background: var(--category-automation);
}

.category-badge.technology {
    background: var(--category-technology);
}

.category-badge.business {
    background: var(--category-business);
}

.category-badge.gaming {
    background: var(--category-gaming);
}

.category-badge.general {
    background: var(--category-general);
}

/* === navigation.css === */
/* Modern Navigation Component - 2025 Style */
.admin-nav {
    background: var(--bg-card);
    border-bottom: var(--h-px) solid var(--border-light);
    padding: 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur-sm));
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: var(--bp-xl);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--space-15);
}

.nav-brand a {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-brand a:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: var(--font-medium-weight);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* Icons are already aligned via flexbox, no need for vertical-align */
.nav-menu a svg,
.nav-menu a i {
    flex-shrink: 0;
}

.nav-menu a:hover {
    color: var(--color-primary);
    background: var(--bg-muted);
    transform: var(--transform-up);
}

.nav-menu a.active {
    color: var(--color-primary);
    background: var(--blue-50);
    font-weight: var(--font-semibold);
}

/* === buttons.css === */
/* Modern Button Components - 2025 Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);  /* 12px 20px */
    border: none;
    border-radius: var(--radius);            /* Modern 12px radius */
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);                        /* Slightly bolder */
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);           /* Smoother easing */
    white-space: nowrap;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(calc(-1 * var(--space-px)));
    box-shadow: var(--shadow-md);           /* Modern layered shadow */
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Disabled/saving state */
.btn[style*="pointer-events: none"] {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: var(--gray-500) !important;
    transition: var(--transition-slow);
}

.btn[style*="pointer-events: none"]:hover {
    transform: none !important;
    box-shadow: var(--shadow-xs) !important;
}

/* Icon animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* === BUTTON VARIANTS === */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-secondary-hover);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: var(--gradient-danger-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

/* Outline variant - modern alternative */
.btn-outline {
    background: var(--bg-card);
    color: var(--color-primary);
    border: var(--h-px) solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
}

/* === BUTTON SIZES === */
.btn-sm {
    padding: var(--space-2) var(--space-3);  /* 8px 12px */
    font-size: var(--font-small);
    border-radius: var(--radius-sm);         /* Smaller radius */
}

.btn-lg {
    padding: var(--space-4) var(--space-6);  /* 16px 24px */
    font-size: var(--font-base);
    border-radius: var(--radius-lg);         /* Larger radius */
}

/* === SPECIAL STATES === */
.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: var(--gradient-success-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

/* Large buttons with extra prominence */
.btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-base);
    font-weight: var(--font-bold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.btn-large:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

/* AI Button Styles */
.input-with-ai {
    position: relative;
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

.input-with-ai textarea {
    flex: 1;
}

/* Button Loading States */
.btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

.btn.success {
    background: var(--color-success) !important;
    color: white !important;
}

.btn.error {
    background: var(--color-danger) !important;
    color: white !important;
}

/* Small Inline Spinner for Buttons */
.spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: var(--space-1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




/* AI Suggestions Display */







/* SEO Tips Styling */
.seo-tip {
    margin: var(--space-2) 0;
    padding: var(--space-2) var(--space-3);
    background: linear-gradient(135deg, var(--yellow-100), var(--yellow-200));
    border-left: var(--space-1) solid var(--yellow-500);
    border-radius: var(--radius-sm);
}

.seo-tip small {
    color: var(--yellow-900);
    font-weight: var(--font-medium-weight);
}

/* === badges.css === */
/* Modern Badge Components - 2025 Style */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-xl);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.badge:hover {
    transform: var(--transform-up);
    box-shadow: var(--shadow-sm);
}

/* Badge variants */
.badge-featured {
    background: var(--yellow-100);
    color: var(--yellow-700);
    border: var(--h-px) solid var(--yellow-200);
}

.badge-category {
    background: var(--blue-100);
    color: var(--blue-700);
    border: var(--h-px) solid var(--blue-200);
}

.badge-draft {
    background: var(--gray-100);
    color: var(--gray-700);
    border: var(--h-px) solid var(--border);
}

.badge-published {
    background: var(--green-100);
    color: var(--green-700);
    border: var(--h-px) solid var(--green-200);
}

.badge-success {
    background: var(--green-100);
    color: var(--green-700);
    border: var(--h-px) solid var(--green-200);
}

.badge-warning {
    background: var(--yellow-100);
    color: var(--yellow-700);
    border: var(--h-px) solid var(--yellow-200);
}

.badge-danger {
    background: var(--red-50);
    color: var(--red-600);
    border: var(--h-px) solid var(--red-200);
}

/* Badge sizes */
.badge-sm {
    padding: var(--space-0\.5) var(--space-2);
    font-size: var(--font-tiny);
}

.badge-lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-small);
}

/* === table.css === */
/* Modern Table Component - 2025 Style */
.articles-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
    border: var(--h-px) solid var(--border-light);
}

.articles-table th {
    background: var(--bg-muted);
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: var(--h-2px) solid var(--border);
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    position: sticky;
    top: 0;
    z-index: 10;
}

.articles-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: var(--h-px) solid var(--border-light);
    vertical-align: middle;
    transition: var(--transition-fast);
}

.articles-table tr {
    transition: var(--transition-fast);
}

.articles-table tr:hover {
    background: var(--bg-muted);
    transform: var(--transform-up);
    box-shadow: var(--shadow-xs);
}

.articles-table tr:hover td {
    border-color: var(--border);
}

.articles-table tr:last-child td {
    border-bottom: none;
}

/* Table cell content styling */
.articles-table .table-title {
    font-weight: 600;
    color: var(--text-primary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.articles-table .table-meta {
    color: var(--text-muted);
    font-size: var(--font-small);
}

.articles-table .table-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* Responsive table */
@media (max-width: var(--bp-md)) {
    .articles-table th,
    .articles-table td {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-sm);
    }
}

/* === forms.css === */
/* Modern Form Components - 2025 Style */

/* === AI FEATURED SNIPPET OPTIMIZER === */
.snippet-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    border-bottom: var(--h-px) solid var(--border);
    padding-bottom: var(--space-3);
}

.snippet-tab {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-muted);
    border: var(--h-px) solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-sm);
    font-weight: var(--font-medium-weight);
}

.snippet-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--blue-300);
}

.snippet-tab.active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: white;
}

.snippet-tab-content {
    display: none;
}

.snippet-tab-content.active {
    display: block;
}

.snippet-item {
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.snippet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.snippet-header strong {
    flex: 1;
    color: var(--text-primary);
    font-size: var(--font-base);
    line-height: 1.4;
}

.insert-snippet-btn {
    background: var(--color-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-1\.5) var(--space-3);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: var(--letter-wider);
}

.insert-snippet-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(calc(-1 * var(--space-px)));
}

.snippet-preview {
    margin-top: var(--space-3);
}

.snippet-preview p {
    margin: 0 0 var(--space-2) 0;
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

.snippet-preview small {
    display: block;
    margin-top: var(--space-2);
    font-style: italic;
}

/* === SEO SCORE SECTION === */
.seo-score-section {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    border: var(--h-px) solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: var(--h-px) solid var(--border);
}

.score-display label {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.score-value {
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    background: var(--gray-500);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.score-value.good { 
    background: var(--color-success);
    box-shadow: var(--shadow-sm);
}
.score-value.fair { 
    background: var(--color-warning); 
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}
.score-value.excellent { 
    background: var(--blue-500);
    box-shadow: var(--shadow-sm);
}
.score-value.poor { 
    background: var(--color-danger);
    box-shadow: var(--shadow-sm);
}

/* AI Analysis Results Styles */
.analysis-results {
    background: var(--white);
    border: var(--h-px) solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-top: var(--space-4);
}

.analysis-results h3 {
    margin-top: 0;
    color: var(--text-primary);
    border-bottom: var(--h-2px) solid var(--border-color);
    padding-bottom: var(--space-2);
}

.analysis-scores {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    flex-wrap: wrap;
}

.score-item {
    flex: 1;
    min-width: var(--w-30);
    text-align: center;
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border-color);
}

.score-label {
    display: block;
    font-size: var(--font-xs);
    font-weight: var(--font-medium-weight);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: var(--letter-wider);
}

.score-item .score-value {
    font-size: var(--font-large);
    font-weight: var(--font-extrabold);
    margin: 0;
    padding: var(--space-2) 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-primary);
}

/* AI Score Colors */
.score-item .score-value:after {
    content: '';
    display: block;
    width: var(--w-full);
    height: var(--h-3px);
    margin-top: var(--space-1);
    border-radius: var(--radius);
    background: var(--gray-300);
}

.analysis-section {
    margin: var(--space-4) 0;
}

.analysis-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--font-base);
}

.analysis-list {
    margin: 0;
    padding-left: var(--space-4);
}

.analysis-list li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    line-height: 1.5;
}

.analysis-list.issues li {
    color: var(--color-danger);
}

.analysis-list.improvements li {
    color: var(--blue-600);
}

/* Input with AI button layout */
.input-with-ai {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.input-with-ai input {
    flex: 1;
}




/* AI Suggestions Container */
.ai-suggestions-container {
    margin-top: var(--space-3);
    background: var(--white);
    border: var(--h-px) solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.suggestions-header {
    margin-bottom: var(--space-3);
    text-align: center;
}

.suggestions-header h4 {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
}

.suggestions-header small {
    color: var(--text-secondary);
    font-size: var(--font-xs);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.title-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--gray-50);
    border: var(--h-px) solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.title-suggestion:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
}

.suggestion-text {
    flex: 1;
    font-weight: var(--font-medium-weight);
    color: var(--text-primary);
    margin-right: var(--space-3);
    line-height: 1.4;
}

.btn-select {
    background: var(--blue-500);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-select:hover {
    background: var(--blue-600);
}

/* Unified SEO Analysis Styles */
.seo-header {
    text-align: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: var(--h-2px) solid var(--border-color);
}

.seo-header h3 {
    margin: 0 0 var(--space-2) 0;
    color: var(--text-primary);
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
}

.score-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.score-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    color: white;
    background: var(--gray-500);
}

.score-badge.excellent {
    background: var(--blue-500);
}

.score-badge.good {
    background: var(--color-success);
}

.score-badge.fair {
    background: var(--color-warning);
    color: var(--gray-900);
}

.score-badge.poor {
    background: var(--color-danger);
}

/* AI-Powered SEO Checklist */
.seo-checklist-ai {
    margin: var(--space-4) 0;
}

.seo-checklist-ai h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.check-item {
    display: flex;
    align-items: flex-start;
    padding: var(--space-3);
    border-radius: var(--radius);
    border-left: var(--space-1) solid var(--border-color);
    background: var(--gray-50);
    transition: var(--transition);
}

.check-item.good {
    border-left-color: var(--color-success);
    background: var(--green-50);
}

.check-item.warning {
    border-left-color: var(--color-warning);
    background: var(--yellow-50);
}

.check-item.bad {
    border-left-color: var(--color-danger);
    background: var(--red-50);
}

.check-icon {
    font-size: var(--font-lg);
    margin-right: var(--space-3);
    flex-shrink: 0;
    margin-top: var(--space-0\\.5);
}

.check-content {
    flex: 1;
}

.check-title {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-size: var(--font-sm);
}

.check-details {
    color: var(--text-secondary);
    font-size: var(--font-small);
    line-height: 1.4;
    margin-bottom: var(--space-1);
}

.check-action {
    color: var(--blue-600);
    font-size: var(--font-xs);
    font-weight: var(--font-medium-weight);
    background: var(--blue-50);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    margin-top: var(--space-2);
    display: inline-block;
}

.analysis-list.quick-wins li {
    margin-bottom: var(--space-3);
    padding: var(--space-2);
    background: var(--blue-50);
    border-radius: var(--radius);
    border-left: var(--space-1) solid var(--blue-500);
}

.seo-checklist {
    display: grid;
    gap: var(--space-2);
}

.check-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    background: var(--bg-card);
    border: var(--h-px) solid var(--border);
    font-size: var(--font-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.check-item:hover {
    box-shadow: var(--shadow-sm);
}

.check-item.passed {
    background: var(--green-50);
    border-color: var(--green-500);
    color: var(--green-700);
}

.check-item.failed {
    background: var(--red-50);
    border-color: var(--red-500);
    color: var(--red-700);
}
/* === FORM LAYOUT === */
.form-row {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: var(--font-sm);
}

/* === MODERN INPUTS === */
.form-group input,
.form-group select,
.form-group textarea {
    width: var(--w-full);
    padding: var(--space-3) var(--space-4);
    border: var(--h-px) solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    background: var(--bg-card);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-strong);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 var(--space-1) var(--blue-50);
    background: white;
}

/* Input states - only show validation after user interaction */
.form-group input.touched:invalid,
.form-group textarea.touched:invalid {
    border-color: var(--red-500);
}

.form-group input.touched:valid,
.form-group textarea.touched:valid {
    border-color: var(--green-500);
}

/* === TEXTAREA SPECIFIC === */
textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    line-height: 1.6;
    min-height: var(--h-30);
}

/* === MODERN FORM ADDITIONS === */

/* Help text */
.form-group small,
.help-text {
    color: var(--text-muted);
    font-size: var(--font-small);
    margin-top: var(--space-1);
    line-height: 1.4;
}

/* Character counter */
.char-counter {
    color: var(--text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-medium-weight);
    margin-left: var(--space-2);
}

.char-counter.warning {
    color: var(--color-warning);
}

.char-counter.danger {
    color: var(--color-danger);
}

/* Checkbox and radio styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-medium-weight);
    cursor: pointer;
    padding: var(--space-2) 0;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

/* Form sections */
.form-section {
    background: var(--bg-card);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-xs);
}

.form-section-title {
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: var(--h-px) solid var(--border-light);
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: var(--space-10);
}

.input-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--font-base);
    pointer-events: none;
}

/* Modern select dropdown */
select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: var(--space-4);
    padding-right: var(--space-10);
}

/* Master SEO Analyzer Styles (2025) */
.btn-ai-master {
    background: var(--gradient-ai);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-5);
    font-weight: var(--font-semibold);
    font-size: var(--font-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.btn-ai-master:hover {
    background: var(--gradient-ai-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

.btn-ai-master:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.master-seo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--w-full);
    height: var(--h-full);
    background: var(--gray-900);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-50);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: var(--w-content);
    width: var(--w-9/12);
    max-height: var(--h-9/12);
    overflow-y: auto;
    border: var(--h-px) solid var(--border-light);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: var(--h-px) solid var(--border-light);
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: var(--w-8);
    height: var(--h-8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.analysis-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: var(--transition);
}

.progress-step.completed {
    background: var(--green-50);
    border: var(--h-px) solid var(--green-200);
}

.step-icon {
    font-size: var(--font-xl);
    width: var(--w-6);
    text-align: center;
}

.step-text {
    flex: 1;
    font-weight: var(--font-medium-weight);
    color: var(--text-primary);
}

.master-results {
    margin-top: var(--space-6);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: var(--h-2px) solid var(--border-light);
}

.master-score {
    font-size: var(--font-lg);
    color: var(--blue-600);
    font-weight: var(--font-bold);
}

.results-section {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: var(--gray-50);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border-light);
}

.results-section h5 {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
}

.analysis-scores {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.score-item {
    background: white;
    padding: var(--space-3);
    border-radius: var(--radius);
    font-weight: var(--font-semibold);
    color: var(--blue-600);
    border: var(--h-px) solid var(--blue-200);
}

.keyword-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.keyword-badge {
    background: var(--blue-500);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: var(--transition);
}

.keyword-badge:hover {
    background: var(--blue-600);
    transform: translateY(calc(-1 * var(--space-px)));
}

.title-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: white;
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
}

.title-text {
    flex: 1;
    margin-right: var(--space-3);
    font-weight: var(--font-medium-weight);
}

.meta-description {
    background: white;
    padding: var(--space-4);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border-light);
}

.meta-description p {
    margin: 0 0 var(--space-3) 0;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: var(--h-px) solid var(--border-light);
}

/* Master SEO Analyzer Enhanced Styles */
.master-seo-modal-content {
    max-width: var(--w-modal);
    max-height: var(--h-5/6);
    background: var(--bg-card) !important;
    border: var(--h-2px) solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}

.modal-header .header-content h3 {
    margin: 0;
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.modal-subtitle {
    margin: var(--space-1) 0 0 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: normal;
}

.close-btn {
    background: none;
    border: none;
    width: var(--w-8);
    height: var(--h-8);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Progress Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.progress-header h4 {
    margin: 0;
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.progress-bar {
    width: var(--w-50);
    height: var(--h-2);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

.progress-fill {
    height: var(--h-full);
    background: linear-gradient(90deg, var(--blue-500), var(--green-500));
    border-radius: var(--radius);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    font-weight: var(--font-medium-weight);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border-light);
    background: var(--bg-card);
    transition: var(--transition);
}

.progress-step.active {
    border-color: var(--blue-500);
    background: var(--blue-50);
    transform: scale(1.02);
}

.progress-step.completed {
    border-color: var(--green-500);
    background: var(--gray-50);
}

.step-indicator {
    position: relative;
    width: var(--w-10);
    height: var(--h-10);
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-step.active .step-indicator {
    background: var(--blue-500);
    color: white;
}

.progress-step.completed .step-indicator {
    background: var(--green-500);
    color: white;
}

.step-number {
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    color: white;
}

.step-icon {
    display: none;
    font-size: var(--font-lg);
}

.step-content h5 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.step-description {
    margin: 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Results Section */
.results-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--green-50) 100%);
    border-radius: var(--radius-lg);
    border: var(--h-px) solid var(--green-200);
}

.success-icon {
    flex-shrink: 0;
}

.results-title h4 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.results-subtitle {
    margin: 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.optimization-summary {
    background: var(--bg-secondary);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.optimization-summary h5 {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.changes-list p {
    margin: var(--space-2) 0;
    color: var(--text-secondary);
    padding-left: var(--space-5);
    position: relative;
    font-size: var(--font-sm);
    line-height: 1.4;
}

.changes-list p::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: bold;
    font-size: var(--font-base);
}

.completion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--w-50), 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.completion-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: white;
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.completion-item:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.completion-icon {
    font-size: var(--font-2xl);
    flex-shrink: 0;
}

.completion-content h6 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.completion-content p {
    margin: 0;
    font-size: var(--font-xs);
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Button variations for Master SEO */
.results-actions .btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-weight: var(--font-medium-weight);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: var(--h-px) solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

/* Responsive adjustments */
@media (max-width: var(--screen-md)) {
    .master-seo-modal-content {
        max-width: var(--w-screen);
        margin: var(--space-4);
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .progress-indicator {
        width: var(--w-full);
        justify-content: space-between;
    }
    
    .progress-bar {
        flex: 1;
        max-width: var(--w-38);
    }
    
    .completion-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .results-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .results-actions .btn {
        justify-content: center;
    }
}

.quick-wins ul {
    margin: var(--space-2) 0 0 0;
    padding-left: var(--space-5);
}

.quick-wins li {
    margin-bottom: var(--space-1);
    line-height: 1.5;
}

/* === tabs.css === */
/* Modern Tab Components - 2025 Style */
.metadata-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-5);
    overflow: hidden;
    border: var(--h-px) solid var(--border-light);
    transition: var(--transition);
}

.tab-navigation {
    display: flex;
    background: var(--bg-muted);
    border-bottom: var(--h-px) solid var(--border-light);
    gap: var(--space-px);
}

.tab-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: var(--font-medium-weight);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: var(--text-sm);
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--text-secondary);
    transform: var(--transform-up);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--color-primary);
    border-bottom: var(--h-3px) solid var(--color-primary);
    font-weight: var(--font-semibold);
    transform: var(--transform-up);
    box-shadow: var(--shadow-xs);
}

.tab-content {
    display: none;
    padding: var(--space-6);
}

.tab-content.active {
    display: block;
}

.tab-content .form-row {
    margin-bottom: var(--space-5);
}

.tab-content .form-group.full-width {
    grid-column: 1 / -1;
}

/* Character counters */
.char-counter {
    float: right;
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium-weight);
}

.char-counter.warning {
    color: var(--color-warning);
}

.char-counter.error {
    color: var(--color-danger);
}

/* Help text */
.help-text {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-style: italic;
    line-height: var(--leading-snug);
}

/* Checkbox labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-2) 0;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--color-primary);
}

/* === sidebar.css === */
/* Modern Collapsible Sidebar - 2025 Design */

.editor-layout {
    display: flex;
    min-height: calc(var(--h-screen) - var(--space-20));
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: inset 0 var(--h-px) 0 var(--border-light);
}

/* Sidebar Styles */
.editor-sidebar {
    width: var(--w-80);
    background: linear-gradient(to bottom, var(--gray-50), var(--bg-card));
    border-right: var(--h-px) solid var(--border-light);
    transition: var(--transition-slow);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.editor-sidebar.collapsed {
    width: var(--w-0);
    border-right: none;
    opacity: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: var(--h-px) solid var(--border-light);
    background: var(--bg-card);
}

.sidebar-header h3 {
    margin: 0;
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    letter-spacing: var(--letter-tight);
}

.sidebar-toggle {
    width: var(--w-8);
    height: var(--h-8);
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-2);
    overflow-y: auto;
}

.nav-item {
    width: var(--w-full);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    border: none;
    background: transparent;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: var(--font-medium-weight);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: var(--space-1);
    text-align: left;
}

.nav-item:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.nav-item.active {
    background: var(--blue-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

.nav-item svg {
    flex-shrink: 0;
    width: var(--w-4);
    height: var(--h-4);
}

.nav-item span {
    white-space: nowrap;
}

/* Main Content Area */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: var(--w-0);
    position: relative;
}

.sidebar-expand {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    width: var(--w-10);
    height: var(--h-10);
    border: var(--h-px) solid var(--border-light);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.sidebar-expand:hover {
    background: var(--blue-50);
    color: var(--blue-600);
    border-color: var(--blue-200);
}

/* Tab Content Updates */
.tab-content {
    display: none;
    flex: 1;
    background: var(--bg-card);
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    animation: slideIn var(--transition-slow);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(var(--space-5)); }
    to { opacity: 1; transform: translateX(0); }
}

/* Content Tab Special Layout */
#content-tab.tab-content {
    padding: 0;
}

/* Other tabs get padding */
#basic-tab.tab-content,
#seo-tab.tab-content,
#advanced-tab.tab-content,
#featured-tab.tab-content {
    padding: var(--space-8);
    max-width: var(--w-desktop);
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: var(--bp-lg)) {
    .editor-sidebar {
        width: var(--w-60);
    }
    
    .nav-item {
        padding: var(--space-2\.5) var(--space-3);
        font-size: var(--font-small);
    }
    
    .nav-item span {
        display: none;
    }
    
    .editor-sidebar {
        width: var(--w-15);
    }
    
    .sidebar-header h3 {
        display: none;
    }
}

@media (max-width: var(--bp-md)) {
    .editor-layout {
        flex-direction: column;
    }
    
    .editor-sidebar {
        width: var(--w-full);
        max-height: var(--h-30);
        border-right: none;
        border-bottom: var(--h-px) solid var(--border-light);
    }
    
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: var(--space-2) var(--space-4);
    }
    
    .nav-item {
        flex-shrink: 0;
        min-width: var(--w-30);
        margin-right: var(--space-2);
        margin-bottom: 0;
    }
    
    .nav-item span {
        display: block;
        font-size: var(--font-tiny);
    }
}

/* === toolbar.css === */
/* Modern Content Toolbar - Professional 2025 Style */
.content-toolbar {
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-card), var(--gray-50));
    padding: var(--space-2\.5) var(--space-3);
    border-bottom: var(--h-px) solid var(--border-light);
    box-shadow: var(--shadow-xs);
    gap: var(--space-2);
    min-height: var(--h-11);
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.toolbar-group:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(calc(-1 * var(--space-px)));
}

.toolbar-group[data-group="view"] {
    margin-left: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.toolbar-group[data-group="view"]:hover {
    transform: none;
    box-shadow: none;
}

.toolbar-group[data-group="view"] .btn {
    background: var(--bg-card);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-md);
    margin-left: var(--space-1);
}

/* Professional toolbar button styling */
.toolbar-group .btn {
    border: none;
    border-radius: 0;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: var(--space-1\.5) var(--space-2\.5);
    font-size: var(--font-small);
    font-weight: var(--font-medium-weight);
    border-right: var(--h-px) solid var(--border-light);
    transition: var(--transition-fast);
    box-shadow: none;
    height: var(--h-8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--w-9);
}

.toolbar-group .btn:last-child {
    border-right: none;
}

.toolbar-group .btn:hover {
    background: var(--blue-50);
    color: var(--blue-600);
    transform: none;
    box-shadow: none;
}

.toolbar-group .btn:active {
    background: var(--blue-100);
    transform: scale(var(--opacity-95));
}

.toolbar-group .btn.active {
    background: var(--blue-600);
    color: white;
}

/* Special styling for AI button */


/* Formatting buttons with actual styling */
.toolbar-group .btn strong {
    font-weight: var(--font-bold);
}

.toolbar-group .btn em {
    font-style: italic;
}

.toolbar-group .btn u {
    text-decoration: underline;
}

.toolbar-group .btn s {
    text-decoration: line-through;
}

/* Responsive toolbar */
@media (max-width: var(--bp-2xl)) {
    .content-toolbar {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-px);
    }
    
    .toolbar-group:not(:last-child) {
        margin-right: var(--space-1);
    }
    
    .toolbar-group .btn {
        padding: var(--space-1\.5) var(--space-2);
        font-size: var(--font-xs);
    }
}

@media (max-width: var(--bp-xl)) {
    /* Hide alignment group to save space */
    .toolbar-group:nth-child(5) {
        display: none;
    }
}

@media (max-width: var(--bp-lg-down)) {
    /* Hide view group on medium screens */
    .toolbar-group[data-group="view"] {
        display: none;
    }
}

@media (max-width: var(--bp-md-down)) {
    .content-toolbar {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .toolbar-group {
        margin-bottom: var(--space-1);
    }
    
    .toolbar-group[data-group="view"] {
        margin-left: 0;
    }
}

.toolbar-stats {
    display: flex;
    gap: var(--space-4);
    font-size: var(--font-small);
    color: var(--text-muted);
}

.toolbar-stats span {
    padding: var(--space-1) var(--space-2);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border-light);
    transition: var(--transition);
    font-weight: var(--font-medium-weight);
}

/* Panel headers */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-actions {
    display: flex;
    gap: var(--space-2);
}

/* SEO Sidebar */
.seo-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: var(--h-px) solid var(--border-light);
    transition: var(--transition);
}

.seo-score h4 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

#seo-score {
    color: var(--color-primary);
    font-weight: var(--font-bold);
    font-size: var(--font-lg);
}

.check-item {
    padding: var(--space-2) 0;
    font-size: var(--font-sm);
    border-bottom: var(--h-px) solid var(--border-light);
    transition: var(--transition);
}

.check-item:last-child {
    border-bottom: none;
}

.check-item.passed {
    color: var(--color-success);
    font-weight: var(--font-medium-weight);
}

.check-item.failed {
    color: var(--color-danger);
    font-weight: var(--font-medium-weight);
}

.seo-target {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-bottom: var(--space-4);
    font-style: italic;
    line-height: 1.4;
}

.seo-info {
    margin-top: var(--space-3);
    padding: var(--space-2);
    background: var(--bg-muted);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    border: var(--h-px) solid var(--border-light);
}

.quick-actions {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: var(--h-px) solid var(--border-light);
}

.quick-actions h4 {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.quick-actions button {
    display: block;
    width: var(--w-full);
    margin-bottom: var(--space-2);
}

/* Action groups */
.editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) 0;
    gap: var(--space-4);
}

.action-group {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

/* === autosave.css === */
/* Auto-Save Indicator Styles - Subtle and non-intrusive */

.autosave-indicator {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    z-index: 100;
    background: var(--green-600);
    color: white;
    border-radius: var(--radius);
    padding: var(--space-1\.5) var(--space-3);
    font-size: var(--font-small);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.autosave-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.autosave-icon {
    font-size: var(--font-base);
    min-width: var(--w-5);
}

.autosave-text {
    font-weight: var(--font-medium-weight);
    color: white;
}

.autosave-time {
    margin-left: var(--space-2);
    color: white;
    font-size: var(--font-xs);
}

/* Status-specific styles - No animations, just color changes */
.autosave-indicator.ready {
    background: var(--blue-600);
}

.autosave-indicator.saving {
    background: var(--yellow-600);
}

.autosave-indicator.saved {
    background: var(--green-600);
}

.autosave-indicator.error {
    background: var(--red-600);
}

.autosave-indicator.waiting {
    background: var(--purple-600);
}

.autosave-indicator.restored {
    background: var(--teal-600);
}

/* No animations - keep it simple and non-distracting */

/* Clean Toggle Switch - Integrated in Header */
.autosave-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.autosave-label {
    font-weight: var(--font-medium-weight);
    white-space: nowrap;
}

.switch {
    position: relative;
    width: var(--w-9);
    height: var(--h-5);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: var(--h-4);
    width: var(--w-4);
    left: var(--space-0\.5);
    top: var(--space-0\.5);
    background: var(--bg-card);
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .slider {
    background: var(--green-500);
}

input:checked + .slider:before {
    transform: translateX(var(--w-4));
}

/* Mobile responsiveness */
@media (max-width: var(--bp-md)) {
    .autosave-indicator {
        bottom: var(--space-2\.5);
        right: var(--space-2\.5);
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-xs);
    }
}

/* === dashboard.css === */
/* Modern Dashboard 2025-2026 */
.dashboard-2026 {
    max-width: var(--bp-2xl);
    margin: 0 auto;
    padding: var(--space-6);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: var(--h-px) solid var(--border-light);
}

.header-left h1 {
    font-size: var(--font-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.dashboard-subtitle {
    font-size: var(--font-base);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* SEO Strategy Selector */
.strategy-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.strategy-selector label {
    font-size: var(--font-sm);
    font-weight: var(--font-medium-weight);
    color: var(--text-secondary);
}

.strategy-selector select {
    min-width: var(--w-60);
}

.strategy-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.btn-large {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-icon {
    font-size: var(--font-lg);
}

/* AI Hero Button - Premium AI gradient for modern, magical feel */
.btn-ai-hero {
    background: var(--gradient-ai);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-ai-hero:hover {
    background: var(--gradient-ai-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(-2 * var(--space-px)));
}

.btn-ai-hero:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);  /* Increased from space-5 for better breathing room */
    margin-bottom: var(--space-10);  /* Increased from space-8 for stronger section separation */
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);  /* Increased from space-5 for better internal spacing */
    border: var(--h-px) solid var(--border-light);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: var(--space-5);  /* Increased from space-4 for better icon-content separation */
    position: relative;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(calc(-1 * var(--h-2px)));
}

.stat-icon {
    font-size: var(--font-4xl);
    width: var(--w-14);
    height: var(--h-14);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.stat-icon.published {
    background: var(--blue-50);
}

.stat-icon.drafts {
    background: var(--yellow-50);
}

.stat-icon.featured {
    background: var(--purple-50);
}

.stat-icon.performance {
    background: var(--green-50);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: var(--font-large);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-weight: var(--font-medium-weight);
}

.stat-trend {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--font-lg);
}

.stat-trend.positive {
    color: var(--green-500);
}

.stat-trend.neutral {
    color: var(--gray-400);
}

.stat-action {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
}

.link-subtle {
    color: var(--blue-600);
    text-decoration: none;
    font-size: var(--font-small);
    font-weight: var(--font-medium-weight);
}

.link-subtle:hover {
    text-decoration: underline;
}

/* Content Section */
.content-section {
    background: white;
    border-radius: var(--radius-xl);
    border: var(--h-px) solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-8);  /* Added spacing between sections */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);  /* Increased from space-5 for better breathing room */
    border-bottom: var(--h-px) solid var(--border-light);
    background: var(--bg-muted);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-left h2 {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.item-count {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--font-small);
    font-weight: var(--font-medium-weight);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Search Box */
.search-box {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    padding-right: var(--space-10);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    background: white;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 var(--h-3px) var(--blue-100);
}

.search-icon {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: white;
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-btn {
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--gray-50);
}

.view-btn.active {
    background: var(--color-primary);
    color: white;
}

.view-btn svg {
    width: var(--w-4);
    height: var(--h-4);
}

/* Filter Select */
.filter-select {
    padding: var(--space-2) var(--space-3);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    min-width: var(--w-30);
}

.filter-select:hover {
    border-color: var(--gray-400);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 var(--h-3px) var(--blue-100);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--w-80), 1fr));
    gap: var(--space-6);  /* Increased from space-5 for better card separation */
    padding: var(--space-6);  /* Increased from space-5 for better edge spacing */
}

/* Article Card */
.article-card {
    background: white;
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-xl);  /* Increased from radius-lg for more modern look */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(calc(-1 * var(--h-2px)));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-muted);
    border-bottom: var(--h-px) solid var(--border-light);
}

.card-badges {
    display: flex;
    gap: var(--space-2);
}

.badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--font-tiny);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

.badge-draft {
    background: var(--yellow-100);
    color: var(--yellow-700);
    border: var(--h-px) solid var(--yellow-200);
}

.badge-live {
    background: var(--green-100);
    color: var(--green-700);
    border: var(--h-px) solid var(--green-200);
}

.badge-featured {
    background: var(--purple-100);
    color: var(--purple-700);
    border: var(--h-px) solid var(--purple-200);
}

/* Dropdown Menu */
.card-menu {
    position: relative;
}

.menu-btn {
    background: transparent;
    border: none;
    font-size: var(--font-xl);
    cursor: pointer;
    padding: var(--space-1);
    color: var(--text-muted);
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: var(--w-40);
    z-index: 10;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.menu-item {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    text-align: left;
    font-size: var(--font-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.menu-item:hover {
    background: var(--gray-50);
}

.menu-item.menu-danger {
    color: var(--red-600);
}

.menu-divider {
    margin: var(--space-1) 0;
    border: none;
    border-top: var(--h-px) solid var(--border-light);
}

/* Card Body */
.card-body {
    padding: var(--space-5);  /* Increased from space-4 for better breathing room */
    flex: 1;
}

.card-title {
    font-size: var(--font-xl);  /* Increased from font-lg for better hierarchy */
    font-weight: var(--font-semibold);
    margin: 0 0 var(--space-3) 0;  /* Increased from space-2 for better separation */
    line-height: var(--leading-snug);
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-excerpt {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);  /* Improved readability */
    margin: 0;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: var(--space-3);
    padding: 0 var(--space-4) var(--space-3);
    font-size: var(--font-small);
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.stat-icon {
    font-size: var(--font-sm);
}

.seo-good {
    color: var(--green-600);
}

.seo-ok {
    color: var(--yellow-600);
}

.seo-bad {
    color: var(--red-600);
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-muted);
    border-top: var(--h-px) solid var(--border-light);
}

.card-date {
    font-size: var(--font-small);
    color: var(--text-muted);
}

/* List View */
.articles-list {
    padding: var(--space-5);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    padding: var(--space-3);
    background: var(--bg-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    color: var(--text-muted);
    border-bottom: var(--h-px) solid var(--border-light);
}

.modern-table td {
    padding: var(--space-3);
    border-bottom: var(--h-px) solid var(--border-light);
}

.modern-table tr:hover {
    background: var(--gray-50);
}

.title-cell {
    max-width: var(--w-100);
}

.title-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-medium-weight);
}

.title-link:hover {
    color: var(--color-primary);
}

.excerpt-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.category-tag {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: var(--font-medium-weight);
}

.category-marketing {
    background: var(--purple-100);
    color: var(--purple-700);
}

.category-development {
    background: var(--blue-100);
    color: var(--blue-700);
}

.category-automation {
    background: var(--orange-100);
    color: var(--orange-700);
}

.category-general {
    background: var(--gray-100);
    color: var(--gray-700);
}

.word-count-badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
}

.word-count-badge.high {
    background: var(--green-50);
    color: var(--green-700);
}

.word-count-badge.medium {
    background: var(--yellow-50);
    color: var(--yellow-700);
}

.word-count-badge.low {
    background: var(--red-50);
    color: var(--red-700);
}

.seo-badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
}

.seo-badge.seo-good {
    background: var(--green-50);
    color: var(--green-700);
}

.seo-badge.seo-ok {
    background: var(--yellow-50);
    color: var(--yellow-700);
}

.seo-badge.seo-bad {
    background: var(--red-50);
    color: var(--red-700);
}

.table-actions {
    display: flex;
    gap: var(--space-2);
}

.action-btn {
    background: transparent;
    border: none;
    font-size: var(--font-base);
    cursor: pointer;
    padding: var(--space-1);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.danger {
    color: var(--red-600);
}

/* Bulk Actions */
.bulk-actions {
    position: sticky;
    bottom: 0;
    background: var(--gray-900);
    color: white;
    padding: var(--space-3) var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-info {
    font-size: var(--font-sm);
}

.bulk-buttons {
    display: flex;
    gap: var(--space-3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-15) var(--space-5);
}

.empty-icon {
    font-size: var(--font-6xl);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    font-size: var(--font-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: var(--bp-md)) {
    .dashboard-2026 {
        padding: var(--space-4);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .header-controls {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-controls {
        justify-content: flex-start;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* === editor.css === */
/* Modern Full-Width Editor - 2025 Style */
.editor-container {
    min-height: var(--h-screen);
    background: var(--gray-50);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.editor-header-bar {
    background: var(--bg-card);
    border-bottom: var(--h-px) solid var(--border-light);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-50);
    box-shadow: var(--shadow-xs);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.editor-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: var(--letter-tight);
}

.autosave-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-small);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-shrink: 0;
}

.header-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.editor-area {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--h-screen) - var(--h-30));
    position: relative;
    background: var(--bg-card);
}

.editor-area.with-outline {
    display: grid;
    grid-template-columns: var(--w-72) 1fr;
    gap: var(--space-4);
}

/* Document Outline Sidebar */
.document-outline {
    background: var(--bg-muted);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    overflow-y: auto;
    max-height: var(--h-150);
    display: none;
    box-shadow: var(--shadow-xs);
}

.document-outline.visible {
    display: block;
}

.outline-header {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

.outline-item {
    padding: var(--space-2) var(--space-3);
    margin: var(--space-1) 0;
    cursor: pointer;
    border-radius: var(--radius);
    font-size: var(--font-small);
    line-height: var(--leading-snug);
    color: var(--text-muted);
    transition: var(--transition);
    border-left: var(--space-1) solid transparent;
}

.outline-item:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
    transform: translateX(var(--space-0\.5));
}

.outline-item.active {
    background: var(--blue-50);
    color: var(--blue-600);
    border-left-color: var(--blue-600);
    box-shadow: var(--shadow-xs);
}

.outline-item.h1 { font-weight: var(--font-semibold); }
.outline-item.h2 { padding-left: var(--space-5); }
.outline-item.h3 { padding-left: var(--space-8); font-size: var(--font-xs); }

/* Writing Stats Panel */
.writing-stats-panel {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: var(--h-px) solid var(--border-light);
}

.stats-header {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin: var(--space-2) 0;
    font-size: var(--font-small);
    color: var(--text-muted);
}

.stat-row span:last-child {
    font-weight: var(--font-medium-weight);
    color: var(--text-secondary);
}

.stat-warning {
    color: var(--color-warning) !important;
}

.stat-detail {
    font-size: var(--font-tiny);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-style: italic;
}

/* Enhanced Toolbar Stats */
.toolbar-stats span {
    transition: all 0.3s ease;
}

.stat-excellent {
    color: var(--color-success) !important;
    font-weight: var(--font-semibold);
}

.stat-good {
    color: var(--cyan-600) !important;
    font-weight: var(--font-medium-weight);
}

.stat-fair {
    color: var(--color-warning) !important;
}

/* Bottom Status Bar */
.editor-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-muted);
    border-top: var(--h-px) solid var(--border-light);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-5);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.status-left,
.status-center,
.status-right {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.status-center {
    flex: 1;
    justify-content: center;
}

.status-item {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
}

.status-item.clickable {
    cursor: pointer;
    background: var(--blue-50);
    color: var(--text-primary);
    font-weight: var(--font-medium-weight);
}

.status-item.clickable:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.status-item.stat-excellent {
    background: var(--green-50);
    color: var(--green-600);
    font-weight: var(--font-semibold);
}

.status-item.stat-good {
    background: var(--teal-50);
    color: var(--teal-600);
    font-weight: var(--font-medium-weight);
}

.status-item.stat-fair {
    background: var(--yellow-50);
    color: var(--yellow-600);
}

/* Focus mode removed - not needed */

/* Tab System Integration */
.editor-area .preview-panel.hidden {
    display: none;
}

/* Stats Popup */
.stats-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.stats-popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    min-width: var(--w-100);
    max-width: 90vw;
    box-shadow: var(--shadow-xl);
}

.stats-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: var(--h-px) solid var(--border);
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-lg);
    cursor: pointer;
    color: var(--text-secondary);
}

.close-btn:hover {
    color: var(--red-600);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-muted);
    border-radius: var(--radius);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.stat-value {
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.stat-value.warning {
    color: var(--yellow-600);
}

/* Mobile responsive layout */
@media (max-width: var(--bp-md)) {
    .editor-area.with-outline {
        grid-template-columns: 1fr;
        gap: var(--space-3\.5);
    }
    
    .document-outline {
        width: var(--w-full);
        position: relative;
        max-height: var(--h-50);
        margin-bottom: var(--space-3\.5);
        order: -1;
    }
    
    .editor {
        padding: var(--space-3\.5);
    }
    
    .editor-header {
        flex-direction: column;
        gap: var(--space-3\.5);
        text-align: center;
    }
    
    .header-actions {
        order: -1; /* Put buttons above title on mobile */
        width: var(--w-full);
        justify-content: center;
    }
    
    .content-toolbar {
        flex-wrap: wrap;
        gap: var(--space-2\.5);
    }
    
    .toolbar-stats {
        width: var(--w-full);
        justify-content: center;
        margin-top: var(--space-2\.5);
    }
}

/* Auto-adjusting preview height */
#preview-frame {
    min-height: var(--h-100);
    height: auto;
}

.editor-panel,
.preview-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.panel-header {
    background: var(--bg-muted);
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    border-bottom: var(--h-px) solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Old responsive preview CSS removed - now in preview.css */

/* Enhanced Content Editor */
#content {
    flex: 1;
    border: none;
    padding: var(--space-4);
    resize: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: var(--font-sm);
    line-height: var(--leading-relaxed);
    -moz-tab-size: 4;
      -o-tab-size: 4;
         tab-size: 4;
    background: var(--slate-50);
    color: var(--slate-800);
    height: var(--h-150);
    max-height: var(--h-150);
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#content:focus {
    outline: none;
    background: var(--bg-card);
    box-shadow: 0 0 0 var(--space-1) var(--blue-50);
}

/* Line numbers */
.editor-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Editor Content Area with Line Numbers */
.editor-content-area {
    display: flex;
    flex: 1;
    height: var(--h-150);
    max-height: var(--h-150);
    overflow: hidden;
}

.line-numbers {
    width: var(--w-12\.5);
    background: var(--slate-50);
    border-right: var(--h-px) solid var(--border-light);
    color: var(--slate-500);
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: var(--font-xs);
    line-height: var(--leading-relaxed);
    padding: var(--space-4) var(--space-2);
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    white-space: pre;
    overflow: hidden;
    flex-shrink: 0;
}

/* Syntax highlighting */
.syntax-highlighted {
    background: transparent;
}

.markdown-header {
    color: var(--blue-600);
    font-weight: var(--font-semibold);
}

.markdown-bold {
    background: var(--blue-50);
    color: var(--blue-600);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-sm);
    padding: var(--space-px) var(--space-0\.5);
}

.markdown-italic {
    color: var(--red-600);
    font-style: italic;
}

.markdown-link {
    color: var(--blue-600);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.markdown-code {
    background: var(--gray-100);
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    padding: var(--space-0\.5) var(--space-1);
    font-family: inherit;
}

.markdown-list {
    color: var(--gray-600);
}

.markdown-quote {
    color: var(--gray-600);
    border-left: var(--h-3px) solid var(--gray-300);
    padding-left: var(--space-2);
    font-style: italic;
}

#preview {
    padding: var(--space-4);
    height: var(--h-100);
    overflow-y: auto;
}

/* Quick Insert Floating Toolbar */
.quick-insert-menu {
    position: absolute;
    background: var(--white);
    border: var(--h-px) solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1000;
    min-width: var(--w-50);
}

.quick-insert-menu.active {
    display: block;
}

.quick-insert-item {
    display: flex;
    align-items: center;
    padding: var(--space-2\.5) var(--space-3\.5);
    border: none;
    background: none;
    width: var(--w-full);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-colors);
}

.quick-insert-item:hover {
    background: var(--bg-muted);
}

.quick-insert-item .icon {
    margin-right: var(--space-2\.5);
    font-size: var(--font-base);
    width: var(--w-5);
}

.quick-insert-item .shortcut {
    margin-left: auto;
    font-size: var(--font-xs);
    color: var(--text-secondary);
    font-family: monospace;
}

/* Keyboard shortcuts help */
.shortcuts-help {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    background: var(--black-80);
    color: var(--white);
    padding: var(--space-3\.5);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    max-width: var(--w-62);
    opacity: 0;
    transform: translateY(var(--space-2\.5));
    transition: var(--transition-slow);
    z-index: 1001;
}

.shortcuts-help.visible {
    opacity: 1;
    transform: translateY(0);
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    margin: var(--space-1) 0;
}

.shortcut-key {
    font-family: monospace;
    background: var(--white-20);
    padding: var(--space-0\.5) var(--space-1\.5);
    border-radius: var(--radius-sm);
    font-size: var(--font-tiny);
}

/* Fullscreen mode removed - tabs provide better UX */

/* === editor-tabs.css === */
/* Professional Tab-Based Editor Layout - Enhanced 2025 */

/* Color scheme for better visual hierarchy */
:root {
    --tab-primary-bg: linear-gradient(135deg, var(--blue-50), var(--bg-card));
    --tab-active-shadow: 0 2px 8px var(--blue-15);
}

/* Main Editor Tabs - Professional Navigation */
.main-editor-tabs {
    background: linear-gradient(to bottom, var(--bg-card), var(--gray-50));
    border-bottom: var(--h-2px) solid var(--border-light);
    padding: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 0;
    box-shadow: var(--shadow-xs);
}

.main-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3\.5) var(--space-6) var(--space-3);
    border: none;
    background: transparent;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    color: var(--text-muted);
    font-weight: var(--font-medium-weight);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    margin: 0 var(--space-0\.5);
    border: var(--h-px) solid transparent;
    letter-spacing: var(--letter-wide);
}

.main-tab-btn:hover {
    background: var(--blue-05);
    color: var(--blue-600);
    transform: translateY(calc(-1 * var(--space-0\.5)));
}

.main-tab-btn.active {
    background: var(--bg-card);
    color: var(--blue-600);
    border: var(--h-px) solid var(--border-light);
    border-bottom: var(--h-px) solid var(--bg-card);
    box-shadow: var(--tab-active-shadow);
    font-weight: var(--font-semibold);
    transform: translateY(var(--space-px));
    z-index: 10;
}

.main-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--h-2px));
    left: 0;
    right: 0;
    height: var(--h-3px);
    background: var(--blue-600);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.main-tab-content {
    display: none;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 0;
    animation: fadeIn var(--transition-slow);
}

.main-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(calc(-1 * var(--space-2\.5))); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Tab Special Styling */
#content-tab.main-tab-content {
    padding: 0;
    background: var(--editor-bg);
    border: var(--h-px) solid var(--editor-border);
    border-top: none;
    overflow: hidden;
}


/* Editor Tab Navigation - Write/Preview */
.editor-tabs {
    background: linear-gradient(to right, var(--gray-50), var(--bg-card));
    border-bottom: var(--h-px) solid var(--border-light);
    padding: 8px 16px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.tab-navigation {
    display: flex;
    gap: 4px;
    background: var(--black-03);
    border-radius: 8px;
    padding: 4px;
    border: var(--h-px) solid var(--border-light);
}

.editor-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: var(--font-medium-weight);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.editor-tab-btn:hover {
    background: var(--white-50);
    color: var(--text-primary);
}

.editor-tab-btn.active {
    background: var(--bg-card);
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-semibold);
}

.editor-tab-btn svg {
    width: var(--w-4);
    height: var(--h-4);
    stroke-width: 2;
}

.editor-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Outline Toggle Button - Professional Style */
#outline-toggle-btn {
    padding: var(--space-1\.5) var(--space-3);
    background: var(--bg-card);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: var(--font-medium-weight);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#outline-toggle-btn:hover {
    background: var(--blue-50);
    color: var(--blue-600);
    border-color: var(--blue-200);
}

#outline-toggle-btn.active {
    background: var(--blue-600);
    color: white;
    border-color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

/* Tab Content Areas - Professional Layout */
.editor-tab-content {
    display: none;
    height: 100%;
    background: var(--bg-card);
    border-radius: 0 0 8px 8px;
}

.editor-tab-content.active {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Write Tab - Full Width Editor */
#write-tab {
    height: var(--h-150);
}

#write-tab .editor-panel {
    width: 100%;
    height: 100%;
}

#write-tab .editor-content-area {
    height: var(--vh-minus-nav);
}

#write-tab #content {
    height: 100%;
    min-height: var(--h-125);
}

/* Preview Tab - Full Width Preview */
#preview-tab {
    height: var(--h-150);
}

#preview-tab .preview-panel {
    width: 100%;
    height: 100%;
}

#preview-tab .preview-wrapper {
    height: var(--vh-minus-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--bg-muted);
    overflow: auto;
}

/* Enhanced Device Frames for Full Width */
#preview-tab .preview-wrapper[data-device="desktop"] .preview-device-frame {
    width: 100%;
    max-width: var(--w-desktop);
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#preview-tab .preview-wrapper[data-device="tablet"] .preview-device-frame {
    width: var(--w-tablet);
    height: var(--h-tablet);
    max-height: 90%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

#preview-tab .preview-wrapper[data-device="tablet"] .preview-device-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-15);
    height: var(--h-8px);
    background: var(--gray-500);
    border-radius: 4px;
    z-index: 1;
}

#preview-tab .preview-wrapper[data-device="mobile"] .preview-device-frame {
    width: var(--w-mobile);
    height: var(--h-mobile);
    max-height: 90%;
    background: var(--bg-card);
    border: 3px solid var(--gray-800);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

#preview-tab .preview-wrapper[data-device="mobile"] .preview-device-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-25);
    height: var(--h-5);
    background: var(--gray-800);
    border-radius: 10px;
    z-index: 1;
}

#preview-tab .preview-wrapper[data-device="mobile"] .preview-device-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-20);
    height: var(--h-4px);
    background: var(--gray-500);
    border-radius: 2px;
    z-index: 1;
}


@media (max-width: 48rem) {
    .editor-tabs {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-3);
    }
    
    .tab-navigation {
        width: 100%;
        justify-content: space-around;
    }
    
    .editor-tab-btn {
        flex: 1;
        justify-content: center;
        padding: var(--space-3);
    }
    
    .editor-tab-btn span {
        display: none;
    }
    
    #preview-tab .preview-wrapper[data-device="tablet"] .preview-device-frame,
    #preview-tab .preview-wrapper[data-device="mobile"] .preview-device-frame {
        transform: scale(0.8);
    }
}

/* Enhanced Document Outline in Tabs */
.editor-area.with-outline #write-tab,
.editor-area.with-outline #preview-tab {
    grid-template-columns: 280px 1fr;
}

/* Tab Indicators */
.editor-tab-btn::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-px));
    left: 0;
    right: 0;
    height: var(--h-2px);
    background: var(--blue-600);
    border-radius: var(--space-px);
    opacity: 0;
    transform: scaleX(0);
    transition: var(--transition);
}

.editor-tab-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Content Synchronization Visual Feedback */
.content-mirror.syncing {
    background: var(--blue-50);
    border-left: 3px solid var(--blue-500);
}

/* Loading States */
.preview-content.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.preview-content.loading::after {
    content: 'Updating preview...';
}

/* === preview.css === */
/* Modern Preview System - No iframes */

.preview-panel {
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-controls {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--white-50);
    border-radius: var(--radius-lg);
}

.preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--w-9);
    height: var(--h-9);
    border: none;
    background: transparent;
    color: var(--slate-500);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.preview-btn:hover {
    background: var(--white-80);
    color: var(--slate-700);
}

.preview-btn.active {
    background: var(--white);
    color: var(--blue-600);
    box-shadow: var(--shadow-md);
}

/* Preview Wrapper - Professional Implementation */
.preview-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: var(--slate-100);
    overflow: auto;
}

/* Device Frame - Clean Container */
.preview-device-frame {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

/* Preview Content - Responsive Container */
.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.preview-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--white);
}

/* Desktop View - Full Responsive */
.preview-wrapper[data-device="desktop"] .preview-device-frame {
    width: 100%;
    max-width: var(--w-desktop);
    height: var(--h-150);
}

/* Tablet View - Fixed 768px Container */
.preview-wrapper[data-device="tablet"] .preview-device-frame {
    width: var(--w-tablet);
    height: var(--h-tablet);
    max-height: 70vh;
    border: var(--h-2px) solid var(--gray-200);
}

.preview-wrapper[data-device="tablet"] .preview-device-frame::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--space-4));
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-15);
    height: var(--h-2);
    background: var(--gray-400);
    border-radius: var(--radius);
    z-index: 1;
}

/* Mobile View - Fixed 375px Container */
.preview-wrapper[data-device="mobile"] .preview-device-frame {
    width: var(--w-mobile);
    height: var(--h-mobile);
    max-height: 80vh;
    border: var(--space-1) solid var(--gray-700);
    border-radius: var(--radius-3xl);
}

.preview-wrapper[data-device="mobile"] .preview-device-frame::before {
    content: '';
    position: absolute;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-25);
    height: var(--h-5);
    background: var(--gray-700);
    border-radius: var(--radius-2xl);
    z-index: 1;
}

.preview-wrapper[data-device="mobile"] .preview-device-frame::after {
    content: '';
    position: absolute;
    bottom: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    width: var(--w-20);
    height: var(--h-1);
    background: var(--gray-500);
    border-radius: var(--radius-sm);
    z-index: 1;
}

/* Responsive Scaling for Small Screens */
@media (max-width: var(--bp-2xl)) {
    .preview-wrapper[data-device="tablet"] .preview-device-frame {
        transform: scale(0.8);
    }
    
    .preview-wrapper[data-device="mobile"] .preview-device-frame {
        transform: scale(0.9);
    }
}

@media (max-width: var(--bp-lg-down)) {
    .preview-wrapper[data-device="tablet"] .preview-device-frame {
        transform: scale(0.7);
    }
    
    .preview-wrapper[data-device="mobile"] .preview-device-frame {
        transform: scale(0.8);
    }
}

/* Loading State */
.preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--slate-400-hex);
}

.preview-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--slate-200-hex);
    border-top-color: var(--blue-600-hex);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Preview Content Styles - Match actual blog */
.preview-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

.preview-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--slate-900-hex);
}

.preview-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.preview-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    color: var(--slate-700);
}

.preview-content p {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.preview-content ul, .preview-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.preview-content li {
    margin: 0.5rem 0;
}

.preview-content blockquote {
    border-left: 4px solid var(--blue-600-hex);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--slate-600-hex);
    font-style: italic;
}

.preview-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.preview-content pre {
    background: var(--slate-900-hex);
    color: var(--slate-200-hex);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.preview-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.preview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.preview-content th {
    background: var(--bg-muted);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--slate-200-hex);
}

.preview-content td {
    padding: 0.75rem;
    border-bottom: var(--h-px) solid var(--border-light);
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.preview-content a {
    color: var(--blue-600-hex);
    text-decoration: underline;
}

.preview-content a:hover {
    color: var(--blue-700-hex);
}

/* Table of Contents in Preview */
.preview-content .table-of-contents {
    background: var(--bg-muted);
    border: var(--h-px) solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.preview-content .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.preview-content .toc-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--slate-700);
}

.preview-content .toc-list {
    padding-left: 0;
}

.preview-content .toc-list ul {
    list-style: none;
    padding-left: 0;
}

.preview-content .toc-list li {
    padding: 0.5rem 0;
    border-bottom: var(--h-px) solid var(--border-light);
}

.preview-content .toc-list li:last-child {
    border-bottom: none;
}

.preview-content .toc-list a {
    color: var(--slate-600-hex);
    text-decoration: none;
    transition: color 0.2s;
}

.preview-content .toc-list a:hover {
    color: var(--blue-600-hex);
}

/* Fullscreen Preview Modal */
.fullscreen-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.fullscreen-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-muted);
    border-bottom: var(--h-px) solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.preview-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-title span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.preview-url {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-family: monospace;
}

.fullscreen-preview-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--w-9);
    height: var(--h-9);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: var(--space-3);
}

.close-fullscreen-btn:hover {
    background: var(--bg-secondary);
    color: var(--red-500-hex);
    border-color: var(--red-100-hex);
}

.fullscreen-preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    overflow: hidden;
}

.fullscreen-preview-content iframe {
    border: none;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

/* Fullscreen Device Views */
.fullscreen-preview-modal[data-device="desktop"] iframe {
    width: 100%;
    height: 100%;
    max-width: var(--bp-2xl);
    max-height: 100%;
}

.fullscreen-preview-modal[data-device="tablet"] iframe {
    width: var(--w-3xl);
    height: var(--bp-lg);
    max-height: var(--vh-minus-header);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.fullscreen-preview-modal[data-device="mobile"] iframe {
    width: var(--w-mobile);
    height: var(--h-mobile);
    max-height: var(--vh-minus-header);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
}

/* === notifications.css === */
/* Modern Notifications & Dialogs - 2025 Style */

/* Toast Notifications */
.notification {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    z-index: 10000;
    min-width: var(--w-75);
    max-width: var(--w-125);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(var(--w-100));
    transition: var(--transition-slow);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notification-icon {
    font-size: var(--font-xl);
    flex-shrink: 0;
}

.notification-message {
    font-size: var(--font-sm);
    line-height: 1.4;
    font-weight: var(--font-medium-weight);
}

/* Notification Types */
.notification-success {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    color: white;
    border: var(--h-px) solid var(--green-400);
}

.notification-error {
    background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
    color: white;
    border: var(--h-px) solid var(--red-400);
}

.notification-warning {
    background: linear-gradient(135deg, var(--yellow-500) 0%, var(--yellow-600) 100%);
    color: white;
    border: var(--h-px) solid var(--yellow-400);
}

.notification-info {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    color: white;
    border: var(--h-px) solid var(--blue-400);
}

/* Custom Dialog & Modal System */
.custom-dialog-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-50);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(var(--blur-xs));
    transition: var(--transition);
}

.custom-dialog,
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: var(--w-modal-lg);
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transition: var(--transition-slow);
    border: var(--h-px) solid var(--border-light);
}

.custom-dialog {
    max-width: var(--w-modal-sm);
    transform: scale(0.8);
    opacity: 0;
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1);
    opacity: 1;
}

.dialog-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: var(--h-px) solid var(--border-light);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.dialog-header h3 {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.dialog-body {
    padding: var(--space-6);
}

.dialog-body p {
    margin: 0;
    font-size: var(--font-medium);
    line-height: 1.6;
    color: var(--text-secondary);
}

.dialog-body strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.dialog-footer {
    padding: var(--space-4) var(--space-6);
    border-top: var(--h-px) solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    background: var(--bg-muted);
}

.dialog-footer .btn {
    min-width: var(--w-20);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: var(--font-medium-weight);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dialog-footer .btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: var(--h-px) solid var(--gray-300);
}

.dialog-footer .btn-secondary:hover {
    background: var(--gray-300);
    transform: var(--transform-up);
    box-shadow: var(--shadow-sm);
}

.dialog-footer .btn-danger {
    background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
    color: white;
    border: var(--h-px) solid var(--red-500);
}

.dialog-footer .btn-danger:hover {
    background: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
    transform: var(--transform-up);
    box-shadow: var(--shadow-lg);
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Fade out animation for table rows */
@keyframes fadeOutRow {
    to {
        opacity: 0;
        transform: translateX(calc(-1 * var(--space-5)));
    }
}

/* Modal Header/Body/Footer */
.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: var(--h-px) solid var(--border-light);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: var(--w-8);
    height: var(--w-8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: var(--h-px) solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    background: var(--bg-muted);
}

/* Topic Results Specific Styles */
.topic-results {
    max-width: var(--w-modal-xl);
}

.analysis-summary {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius-lg);
    border: var(--h-px) solid var(--gray-200);
}

.analysis-summary h3 {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.analysis-summary p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.6;
}

.pillar-section,
.cluster-section {
    margin-bottom: var(--space-6);
}

.pillar-section h3,
.cluster-section h3 {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.topic-item {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: var(--h-px) solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.topic-item:hover {
    transform: var(--transform-up);
    box-shadow: var(--shadow-md);
}

.topic-item.pillar {
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border-color: var(--green-200);
}

.topic-item.pillar:hover {
    border-color: var(--green-300);
}

.topic-item.cluster {
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-color: var(--blue-200);
}

.topic-item.cluster:hover {
    border-color: var(--blue-300);
}

.topic-title {
    font-size: var(--font-medium);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.topic-meta {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.topic-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-3);
}

.topic-action {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-ai);
    color: white;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    transition: var(--transition);
    margin-top: var(--space-2);
}

.topic-item:hover .topic-action {
    background: var(--gradient-ai-hover);
    transform: translateX(var(--space-1));
}

/* Already Generated Topics - Grayed Out */
.topic-item.already-generated {
    opacity: 0.5;
    cursor: default;
    filter: grayscale(50%);
}

.topic-item.already-generated:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-light);
}

/* Currently Generating Topics - Blue Animation */
.topic-item.generating {
    cursor: default;
    position: relative;
    overflow: hidden;
}

.topic-item.generating:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Shimmer animation for generating state */
.topic-item.generating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.topic-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: white;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    margin-top: var(--space-2);
}

/* Generating Badge - Blue with pulse animation */
.topic-badge.generating {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Generation Progress Modal */
.generation-progress {
    max-width: var(--w-modal);
}

.generation-topic {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    border: var(--h-px) solid var(--border-light);
    text-align: center;
}

.generation-topic strong {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.generation-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-4);
}

.spinner {
    width: var(--w-16);
    height: var(--h-16);
    border: var(--space-1) solid var(--gray-200);
    border-top-color: var(--orange-500);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generation-status {
    font-size: var(--font-base);
    color: var(--text-primary);
    font-weight: var(--font-medium-weight);
    margin: 0;
}

/* Past Analyses List */
.analyses-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.analysis-item {
    padding: var(--space-4);
    background: var(--gray-50);
    border: var(--h-px) solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.analysis-item:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
    transform: var(--transform-up);
    box-shadow: var(--shadow-md);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.analysis-header strong {
    font-size: var(--font-base);
    color: var(--text-primary);
}

.analysis-meta {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
}

.analysis-stats {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: var(--bp-sm)) {
    .notification {
        right: var(--space-3);
        left: var(--space-3);
        top: var(--space-3);
        min-width: auto;
    }

    .custom-dialog,
    .modal-content {
        width: 95%;
        margin: var(--space-4);
        max-height: 90vh;
    }

    .dialog-header,
    .modal-header {
        padding: var(--space-4) var(--space-4);
    }

    .dialog-body,
    .modal-body {
        padding: var(--space-4);
    }

    .dialog-footer,
    .modal-footer {
        padding: var(--space-3) var(--space-4);
        flex-direction: column;
    }

    .dialog-footer .btn,
    .modal-footer .btn {
        width: 100%;
    }
}

/* === background-tasks.css === */
/* Notification Bell Icon (Header) */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    color: var(--text-primary);
    background: var(--gray-100);
    border-radius: var(--radius);
}

.notification-bell.has-notifications {
    color: var(--orange-500);
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.notification-badge {
    position: absolute;
    top: var(--space-0\.5);
    right: var(--space-0\.5);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    font-size: var(--font-tiny);
    font-weight: var(--font-bold);
    padding: var(--space-0\.5) var(--space-1);
    border-radius: var(--radius-full);
    min-width: var(--space-4);
    height: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    line-height: 1;
}

/* Background Tasks Panel - Floating Task Indicator */

.background-tasks-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: var(--h-px) solid var(--border-light);
    min-width: 320px;
    max-width: 400px;
    transition: var(--transition-slow);
}

.background-tasks-panel.collapsed {
    max-height: 60px;
}

.background-tasks-panel.expanded {
    max-height: 600px;
    overflow-y: auto;
}

/* Panel Header */
.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    cursor: pointer;
    border-bottom: var(--h-px) solid var(--border-light);
}

.background-tasks-panel.collapsed .tasks-header {
    border-bottom: none;
}

.tasks-header:hover {
    background: var(--gray-50);
}

.tasks-status {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.status-badge.running {
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    color: var(--blue-700);
}

.status-badge.completed {
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    color: var(--green-700);
}

.status-badge.neutral {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-700);
}

.toggle-btn {
    background: none;
    border: none;
    font-size: var(--font-lg);
    cursor: pointer;
    color: var(--gray-600);
    padding: var(--space-1);
    line-height: 1;
}

/* Panel Body */
.tasks-body {
    padding: var(--space-4);
    max-height: 500px;
    overflow-y: auto;
}

.task-section {
    margin-bottom: var(--space-4);
}

.task-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.task-section h4,
.task-section-header h4 {
    margin: 0;
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.btn-link {
    background: none;
    border: none;
    color: var(--blue-600);
    font-size: var(--font-xs);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--blue-700);
}

/* Task Item */
.task-item {
    padding: var(--space-3);
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
    border: var(--h-px) solid var(--border-light);
}

.task-item.running {
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-color: var(--blue-200);
}

.task-item.completed {
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border-color: var(--green-200);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.task-item.completed:hover {
    background: linear-gradient(135deg, var(--green-100), var(--green-150));
    border-color: var(--green-300);
}

.task-item.completed.unread {
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-color: var(--blue-300);
    border-width: var(--h-2px);
}

.task-item.completed.unread::after {
    content: 'NEW';
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--orange-500);
    color: white;
    font-size: var(--font-tiny);
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    line-height: 1;
}

.task-item.completed.read {
    opacity: 0.8;
}

.unread-indicator {
    position: absolute;
    left: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--orange-500);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 2px var(--orange-100);
}

.task-item.error {
    background: linear-gradient(135deg, var(--red-50), var(--red-100));
    border-color: var(--red-200);
}

.task-title {
    font-size: var(--font-sm);
    font-weight: var(--font-medium-weight);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.task-time {
    font-size: var(--font-xs);
    color: var(--gray-600);
}

.task-meta {
    font-size: var(--font-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.task-error {
    font-size: var(--font-xs);
    color: var(--red-600);
    margin-bottom: var(--space-2);
}

.task-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.btn-small {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border);
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: var(--font-medium-weight);
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--gray-100);
    transform: var(--transform-up);
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    border-color: var(--blue-500);
}

.btn-small.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
}

.btn-clear-all {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    margin-top: var(--space-3);
    font-size: var(--font-sm);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border);
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: var(--font-medium-weight);
    transition: var(--transition);
}

.btn-clear-all:hover {
    background: var(--gray-100);
}

/* Empty State for Notifications */
.empty-state-notifications {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.empty-state-notifications .empty-icon {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-3);
    opacity: 0.3;
}

.empty-state-notifications h3 {
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.empty-state-notifications p {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Persistent Notifications Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 500px;
}

/* Persistent Notification Styles */
.notification-persistent {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: var(--h-px) solid var(--border-light);
    padding: var(--space-4);
    opacity: 0;
    transform: translateX(calc(100% + var(--space-5)));
    transition: var(--transition-slow);
}

.notification-persistent.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-persistent.notification-success {
    border-left: var(--space-1) solid var(--green-500);
}

.notification-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.notification-icon {
    font-size: var(--font-2xl);
    line-height: 1;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: var(--font-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.notification-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.notification-close {
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--font-lg);
    line-height: 1;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.notification-meta {
    display: flex;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.notification-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-notification {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius);
    border: var(--h-px) solid var(--border);
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.btn-notification:hover {
    background: var(--gray-100);
    transform: var(--transform-up);
}

.btn-notification.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: white;
    border-color: var(--green-500);
}

.btn-notification.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
}

/* Responsive */
@media (max-width: var(--bp-sm)) {
    .background-tasks-panel {
        right: var(--space-3);
        left: var(--space-3);
        bottom: var(--space-3);
        min-width: auto;
    }

    #notification-container {
        right: var(--space-3);
        left: var(--space-3);
        max-width: none;
    }

    .notification-persistent {
        width: 100%;
    }
}


/* === auth.css === */
/* Auth Pages Styles */

.auth-page {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.auth-container {
    width: 100%;
    max-width: var(--space-96);
    margin: 0 auto;
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-header {
    background: var(--color-primary-600);
    color: var(--color-white);
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

.auth-header h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin: 0 0 var(--space-2) 0;
}

.auth-header p {
    font-size: var(--text-base);
    margin: 0;
    opacity: 0.9;
}

.auth-body {
    padding: var(--space-8) var(--space-6);
}

.auth-form {
    max-width: var(--space-80);
    margin: 0 auto;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.step {
    border: var(--border-width-2) solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.step h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin: 0 0 var(--space-3) 0;
}

.step p {
    color: var(--color-gray-600);
    margin: 0 0 var(--space-4) 0;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.qr-code {
    max-width: var(--space-64);
    width: 100%;
    height: auto;
}

.secret-container {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border: var(--border-width-2) dashed var(--color-gray-300);
}

.secret-code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--color-gray-900);
    word-break: break-all;
}

.btn-copy {
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-600);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium-weight);
    transition: background-color var(--duration-200) var(--ease-in-out);
}

.btn-copy:hover {
    background: var(--color-primary-700);
}

.totp-input {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    text-align: center;
    letter-spacing: var(--tracking-wider);
}

.error-message {
    padding: var(--space-3) var(--space-4);
    background: var(--color-red-50);
    color: var(--color-red-700);
    border: var(--border-width-2) solid var(--color-red-200);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    font-size: var(--text-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-page {
        padding: var(--space-2);
    }

    .auth-header {
        padding: var(--space-6) var(--space-4);
    }

    .auth-header h1 {
        font-size: var(--text-2xl);
    }

    .auth-body {
        padding: var(--space-6) var(--space-4);
    }

    .step {
        padding: var(--space-4);
    }

    .secret-container {
        flex-direction: column;
    }

    .secret-code {
        font-size: var(--text-base);
    }

    .totp-input {
        font-size: var(--text-xl);
    }
}


/* === main.css === */
/* Main CSS - imports all components */


















/* Additional global styles */
.admin-main {
    min-height: var(--vh-minus-nav);
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: var(--w-px);
    height: var(--h-px);
    padding: 0;
    margin: calc(-1 * var(--space-px));
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.empty-state {
    text-align: center;
    padding: var(--space-15) var(--space-5);
    color: var(--gray-666);
}


/* Global styles */
.admin-main {
    min-height: calc(100vh - 60px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
