@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 33, 0.65);
    --bg-card-hover: rgba(26, 31, 46, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 229, 153, 0.25);
    
    --primary: #00e599;
    --primary-glow: rgba(0, 229, 153, 0.4);
    --primary-bg: rgba(0, 229, 153, 0.1);
    
    --secondary: #00bfff;
    --secondary-glow: rgba(0, 191, 255, 0.4);
    
    --accent: #bd00ff;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #4b5563;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-blur: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 229, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(189, 0, 255, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   Glassmorphism Classes
   ============================================ */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card-interactive {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.glass-card-interactive:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ============================================
   Button Stylings
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00d2aa);
    color: #050505;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    gap: 4px;
}

/* ============================================
   Badge States
   ============================================ */
.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 229, 153, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 229, 153, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 229, 153, 0.2); }
}

@keyframes scanner {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes progressStripe {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes healthPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Login Screen
   ============================================ */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    text-align: center;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1.5rem;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.user-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.user-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
    transform: translateY(-1px);
}

.user-option.selected {
    background: rgba(0, 229, 153, 0.15);
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.03);
}

.user-option.selected .user-check-icon {
    display: block !important;
}

/* Visually dim other unselected items to emphasize the chosen user */
.user-selector:has(.user-option.selected) .user-option:not(.selected) {
    opacity: 0.4;
    transform: scale(0.97);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid var(--border-color);
}

.user-option.selected .avatar {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   App Main Layout
   ============================================ */
#app-layout {
    display: none; /* Shown via JS */
    min-height: 100vh;
}

.app-container {
    display: flex;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

.page-view {
    display: none; /* Toggled by Router */
    animation: slideIn 0.4s ease-out;
}

.page-view.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   Metric Cards
   ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    padding: 24px;
}

.metric-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(135deg, #ffffff, #cfcfcf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.metric-change.up { color: var(--primary); }
.metric-change.down { color: #ef4444; }

/* ============================================
   Dashboard Layout Sections
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
}

.panel-body {
    padding: 24px;
}

/* ============================================
   Lists and Tables
   ============================================ */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scrollable-list {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

/* ============================================
   Ingestion Rules Setup
   ============================================ */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.rule-editor-card {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* ============================================
   Post Creator & Publisher
   ============================================ */
.editor-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.post-wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.wizard-step {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.wizard-step.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.social-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.social-pill:hover, .social-pill.selected {
    border-color: var(--primary);
    background: rgba(0, 229, 153, 0.05);
}

.preview-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 200px;
    padding: 20px;
    position: relative;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.preview-body {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.preview-image {
    width: 100%;
    border-radius: 8px;
    max-height: 250px;
    object-fit: cover;
    display: none;
}

/* ============================================
   Creative Tools (Watermark & Image)
   ============================================ */
.creative-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.image-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.image-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.image-thumb:hover, .image-thumb.selected {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Watermark removal box */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropzone:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 153, 0.02);
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.scanning-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 10px var(--primary);
    animation: scanner 2s infinite ease-in-out;
    display: none;
}

.watermark-comparison {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.image-compare-box {
    text-align: center;
}

.image-compare-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.label-before { color: #f87171; font-weight: 600; font-size: 0.8rem; margin-top: 8px; text-transform: uppercase; }
.label-after { color: var(--primary); font-weight: 600; font-size: 0.8rem; margin-top: 8px; text-transform: uppercase; }

/* ============================================
   Scheduler / Calendar Grid
   ============================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.calendar-day {
    min-height: 55px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.03);
}

.calendar-day.today {
    border-color: var(--secondary);
    background: rgba(0, 191, 255, 0.03);
}

.calendar-posts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 32px;
}

.calendar-post-indicator {
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 0.6rem;
    color: #000;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-linkedin { background-color: #0077b5; color: #fff; }
.platform-instagram { background-color: #e1306c; color: #fff; }
.platform-facebook { background-color: #1877f2; color: #fff; }
.platform-blog { background-color: #f58220; color: #fff; }

/* Calendar post status indicators */
.calendar-post-indicator.status-draft       { background-color: #6b7280; color: #fff; }
.calendar-post-indicator.status-approved    { background-color: var(--primary); color: #050505; }
.calendar-post-indicator.status-scheduled   { background-color: var(--secondary); color: #050505; }
.calendar-post-indicator.status-published   { background-color: #10b981; color: #fff; }
.calendar-post-indicator.status-failed      { background-color: #ef4444; color: #fff; }

/* Platform badges (small round icons) */
.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.platform-badge.linkedin  { background: #0077b5; }
.platform-badge.instagram { background: #e1306c; }
.platform-badge.facebook  { background: #1877f2; }
.platform-badge.x         { background: #1d9bf0; }
.platform-badge.blog      { background: #f58220; }


/* ============================================
   1. Channel Strategy Cards
   ============================================ */
.channel-strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.channel-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-left: 4px solid var(--border-color);
    padding: 24px;
    transition: var(--transition);
}

.channel-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.channel-card[data-channel="linkedin"],
.channel-card.channel-linkedin { border-left-color: #0077b5; }
.channel-card[data-channel="instagram"],
.channel-card.channel-instagram { border-left-color: #e1306c; }
.channel-card[data-channel="facebook"],
.channel-card.channel-facebook { border-left-color: #1877f2; }
.channel-card[data-channel="x"],
.channel-card.channel-x { border-left-color: #1d9bf0; }

.channel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.channel-card-header h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* iOS-style animated toggle switch */
.channel-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
    border: none;
    flex-shrink: 0;
}

.channel-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.channel-toggle:checked,
.channel-toggle.active {
    background: var(--primary);
}

.channel-toggle:checked::before,
.channel-toggle.active::before {
    transform: translateX(22px);
}


/* ============================================
   2. Custom Range Sliders
   ============================================ */
.agency-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
}

.agency-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 0 6px var(--primary-glow);
    transition: var(--transition);
    margin-top: -6px;
}

.agency-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--primary-glow);
}

.agency-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 0 6px var(--primary-glow);
}

.agency-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--value, 50%), rgba(255, 255, 255, 0.08) var(--value, 50%));
}

.agency-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.agency-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--primary);
}


/* ============================================
   3. QC Inspector Drawer
   ============================================ */
.qc-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qc-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.qc-drawer {
    position: fixed;
    top: 0;
    right: -620px;
    width: 600px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.qc-drawer.open {
    right: 0;
}

.qc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.qc-drawer-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.qc-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    overscroll-behavior: contain;
}

.qc-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}


/* ============================================
   4. Platform Preview Cards
   ============================================ */
.preview-toggle-bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.preview-toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.preview-toggle-btn:hover {
    color: var(--text-main);
}

.preview-toggle-btn.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.preview-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.preview-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.preview-char-counter {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
    margin-top: 8px;
    transition: color 0.2s;
}

.preview-char-counter.warning {
    color: #f59e0b;
}

.preview-char-counter.danger {
    color: #ef4444;
    font-weight: 700;
}


/* ============================================
   5. Integration Manager
   ============================================ */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.integration-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.integration-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.integration-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.integration-card-header .integration-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.integration-status.connected {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.integration-status.disconnected {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.integration-status.expiring {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* Status dot inside integration-status */
.integration-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.integration-status.connected::before    { background: #10b981; box-shadow: 0 0 6px #10b981; }
.integration-status.disconnected::before { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.integration-status.expiring::before     { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }


/* ============================================
   6. Category Tags (Content Pillars)
   ============================================ */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.category-tag.savings_roi,
.category-tag.pillar-savings_roi {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.category-tag.authority,
.category-tag.pillar-authority {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.category-tag.proof,
.category-tag.pillar-proof {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.category-tag.behind_scenes,
.category-tag.pillar-behind_scenes {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.category-tag.market_intel,
.category-tag.pillar-market_intel {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.category-tag.sustainability,
.category-tag.pillar-sustainability {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}


/* ============================================
   7. Generation Progress
   ============================================ */
.generation-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.generation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00d2aa);
    border-radius: 4px;
    transition: width 0.4s ease;
    background-size: 40px 8px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: progressStripe 0.8s linear infinite;
}

.generation-log {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    max-height: 240px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    white-space: pre-wrap;
    scrollbar-gutter: stable;
}

.generation-log .log-success { color: var(--primary); }
.generation-log .log-error   { color: #ef4444; }
.generation-log .log-warning { color: #f59e0b; }
.generation-log .log-info    { color: var(--secondary); }


/* ============================================
   8. Performance Heatmap
   ============================================ */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    cursor: default;
    position: relative;
}

.heatmap-cell:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    z-index: 1;
}

.heatmap-cell.intensity-0 { background: rgba(0, 229, 153, 0.0); }
.heatmap-cell.intensity-1 { background: rgba(0, 229, 153, 0.12); }
.heatmap-cell.intensity-2 { background: rgba(0, 229, 153, 0.28); }
.heatmap-cell.intensity-3 { background: rgba(0, 229, 153, 0.48); }
.heatmap-cell.intensity-4 { background: rgba(0, 229, 153, 0.7); }
.heatmap-cell.intensity-5 { background: rgba(0, 229, 153, 0.92); }


/* ============================================
   9. Knowledge Stream
   ============================================ */
.knowledge-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.knowledge-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.knowledge-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.knowledge-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.knowledge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}


/* ============================================
   10. Upload Dropzone
   ============================================ */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(0, 229, 153, 0.04);
    box-shadow: inset 0 0 30px rgba(0, 229, 153, 0.05);
}

.upload-dropzone .dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.upload-dropzone:hover .dropzone-icon,
.upload-dropzone.dragover .dropzone-icon {
    color: var(--primary);
}

.upload-dropzone .dropzone-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-dropzone .dropzone-hint {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-top: 4px;
}


/* ============================================
   11. Calendar Enhancements (see also section above)
   ============================================ */
/* Additional calendar post status variants (already defined above in section 11) */


/* ============================================
   12. Bulk Action Bar
   ============================================ */
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 229, 153, 0.06);
    border: 1px solid rgba(0, 229, 153, 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease-out;
}

.bulk-action-bar .bulk-count {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.bulk-action-bar .bulk-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}


/* ============================================
   13. Agent Status Banner
   ============================================ */
.agent-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-dark);
    margin-bottom: 20px;
    transition: var(--transition);
}

.agent-status-banner .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-status-banner .status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Idle state */
.agent-status-banner.idle {
    border-left-color: var(--text-muted);
}
.agent-status-banner.idle .status-indicator {
    background: var(--text-muted);
}

/* Running state */
.agent-status-banner.running {
    border-left-color: var(--primary);
    background: rgba(0, 229, 153, 0.04);
}
.agent-status-banner.running .status-indicator {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    animation: healthPulse 1.5s ease-in-out infinite;
}

/* Error state */
.agent-status-banner.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}
.agent-status-banner.error .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}


/* ============================================
   14. System Health
   ============================================ */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.health-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.health-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.health-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.health-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    animation: healthPulse 2s ease-in-out infinite;
}

.health-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-item-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.health-item-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* ============================================
   15. (Button variants — defined above in Button Stylings)
   ============================================ */


/* ============================================
   16. Strategy Log
   ============================================ */
.strategy-log {
    position: relative;
    padding-left: 24px;
}

/* Vertical timeline line */
.strategy-log::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
}

.strategy-log-entry {
    position: relative;
    padding: 12px 0 12px 20px;
    border-bottom: none;
}

/* Timeline dot */
.strategy-log-entry::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 6px var(--primary-glow);
    z-index: 1;
}

.strategy-log-entry .entry-time {
    font-size: 0.7rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.strategy-log-entry .entry-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.strategy-log-entry .entry-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}


/* ============================================
   17. Top Performers
   ============================================ */
.top-performer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 8px;
}

.top-performer-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Gold, Silver, Bronze for top 3 */
.rank-badge.rank-1 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.rank-badge.rank-2 {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
    border-color: rgba(192, 192, 192, 0.3);
}

.rank-badge.rank-3 {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border-color: rgba(205, 127, 50, 0.3);
}

.top-performer-item .performer-info {
    flex: 1;
    min-width: 0;
}

.top-performer-item .performer-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-performer-item .performer-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.top-performer-item .performer-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}


/* ============================================
   18. Brain Sub-tabs
   ============================================ */
.brain-panel {
    display: none;
}

.brain-panel.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.brain-sub-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.brain-sub-tab {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.brain-sub-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.brain-sub-tab.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}


/* ============================================
   Modal Overlay (generic)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(14, 17, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    animation: slideIn 0.3s ease-out;
}


/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1024px) {
    .dashboard-grid, .editor-layout, .creative-tools {
        grid-template-columns: 1fr;
    }
    .channel-strategies-grid {
        grid-template-columns: 1fr 1fr;
    }
    .integrations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 64px;
        padding: 24px 8px;
    }
    .sidebar-brand span, .menu-item span, .user-badge span {
        display: none;
    }
    .main-content {
        margin-left: 64px;
        padding: 20px;
    }
    .channel-strategies-grid {
        grid-template-columns: 1fr;
    }
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    .qc-drawer {
        width: 100%;
        max-width: 100vw;
    }
    .health-grid {
        grid-template-columns: 1fr 1fr;
    }
    .preview-toggle-bar {
        flex-wrap: wrap;
    }
    .heatmap-grid {
        gap: 2px;
    }
}

/* AI Authenticity Checker */
.ai-check-panel {
    animation: slideIn 0.3s ease-out;
}

.ai-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-check-row:last-of-type {
    border-bottom: none;
}

.ai-check-pass {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.ai-check-fail {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.ai-shield-pass {
    color: #10b981;
    font-size: 0.7rem;
}

.ai-shield-warn {
    color: #f59e0b;
    font-size: 0.7rem;
}

.ai-shield-none {
    color: #6b7280;
    font-size: 0.7rem;
}

/* Media Picker */
.media-picker-item {
    border-radius: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1;
}

.media-picker-item:hover {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 229, 153, 0.15);
}

.media-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-picker-item .picker-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px 8px 6px;
    font-size: 0.65rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Switch toggle slider styles */
.switch-toggle input:checked + .slider-toggle {
    background-color: var(--primary);
    border-color: var(--primary);
}

.switch-toggle input:checked + .slider-toggle:before {
    transform: translateX(20px);
}

.slider-toggle {
    border: 1px solid var(--border-color);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}
