/* Plaid-inspired Design System */
:root {
    --plaid-purple: #6366f1;
    --plaid-purple-hover: #4f46e5;
    --plaid-blue: #0ea5e9;
    --plaid-green: #10b981;
    --plaid-orange: #f59e0b;
    --plaid-red: #ef4444;
    --plaid-dark: #1e293b;
    --plaid-gray: #64748b;
    --plaid-light-gray: #f8fafc;
    --plaid-border: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.6;
    color: var(--plaid-dark);
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    /* was 2.5rem */
    font-weight: 700;
    background: linear-gradient(135deg, var(--plaid-purple) 0%, var(--plaid-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.6875rem;
    /* was 1.875rem */
    font-weight: 600;
    color: var(--plaid-dark);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.125rem;
    /* was 1.25rem */
    font-weight: 600;
    color: var(--plaid-dark);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.0125rem;
    /* was 1.125rem */
    font-weight: 600;
    color: var(--plaid-dark);
    margin-bottom: 0.5rem;
}

p {
    color: var(--plaid-gray);
    margin-bottom: 1rem;
}

/* Layout Components */
.header {
    text-align: center;
    margin-bottom: 24px;
    background: white;
    padding: 20px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--plaid-border);
}

.header p {
    font-size: 1.0125rem;
    /* was 1.125rem */
    color: var(--plaid-gray);
    margin-top: 8px;
}

/* Navbar-style header for non-homepage */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--plaid-border);
    flex-wrap: wrap;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--plaid-dark);
}

.navbar-brand img {
    height: 72px;
    width: auto;
}

.navbar-title {
    font-size: 1.35rem;
    /* was 1.5rem */
    font-weight: 700;
    background: linear-gradient(135deg, var(--plaid-purple) 0%, var(--plaid-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.navbar-subtitle {
    font-size: 0.7875rem;
    /* was 0.875rem */
    color: var(--plaid-gray);
    margin: 0;
    font-weight: 400;
}

.navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-nav .nav-link {
    color: var(--plaid-gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
    /* was 14px */
    border: 1px solid transparent;
    cursor: pointer;
}

.navbar-nav .nav-logout {
    background: rgba(175, 24, 24, 0.4);
    color: white;
    background: rgba(175, 24, 24, 0.5);
}

.navbar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--plaid-purple);
    border-color: rgba(99, 102, 241, 0.2);
}

.navbar-nav .nav-logout:hover {
    background: rgba(175, 24, 24, 0.7);
    color: white;
    background: rgba(175, 24, 24, 0.8);
}

.navbar-nav .nav-link.active {
    background: var(--plaid-purple);
    color: white;
    border-color: var(--plaid-purple);
}

.card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    border: 1px solid var(--plaid-border);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: 2fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    body {
        padding: 12px;
    }

    .header,
    .navbar {
        padding: 16px 20px;
    }

    .card {
        padding: 20px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .navbar-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-title {
        font-size: 1.125rem;
        /* was 1.25rem */
    }
}

/* Form Elements */
/* Add this to styles.css for global use */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-column {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
}

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

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.form-group-inline label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.select-small {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
}

.help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.section-description {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Column help text */
.column-help {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.column-help h4 {
    margin: 0 0 8px 0;
    color: #0c4a6e;
    font-size: 14px;
}

.column-help ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.column-help li {
    margin-bottom: 4px;
    color: #0c4a6e;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--plaid-dark);
    font-size: 0.7875rem;
    /* was 0.875rem */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--plaid-border);
    border-radius: var(--border-radius);
    font-size: 15px;
    /* was 16px */
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--plaid-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

#accountSelect {
    background-color: #FFF9C4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 15px;
    /* was 16px */
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 100px;
    font-family: var(--font-sans);
    letter-spacing: 0.25px;
    margin-top: auto;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--plaid-purple) 0%, var(--plaid-blue) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--plaid-purple-hover) 0%, #0284c7 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--plaid-green) 0%, #059669 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary {
    background: var(--plaid-gray);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
}

.btn-outline {
    background: white;
    border: 2px solid var(--plaid-purple);
    color: var(--plaid-purple);
}

.btn-outline:hover:not(:disabled) {
    background: var(--plaid-purple);
    color: white;
}

.btn-large {
    padding: 20px 32px;
    font-size: 17px;
    /* was 18px */
    min-width: 160px;
}

.btn-full {
    width: 67%;
}

/* Status Messages */
.status {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin: 16px 0;
    border-left: 4px solid;
    font-weight: 500;
}

.status-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-color: var(--plaid-green);
}

.status-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-color: var(--plaid-red);
}

.status-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: var(--plaid-blue);
}

.status-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-color: var(--plaid-orange);
}

/* Result Fields */
.result-field {
    padding: 16px;
    background: linear-gradient(135deg, var(--plaid-light-gray) 0%, #f1f5f9 100%);
    border: 1px solid var(--plaid-border);
    border-radius: var(--border-radius);
    min-height: 24px;
    font-size: 13px;
    /* was 14px */
    word-break: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.score-field {
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--plaid-blue);
    border-radius: var(--border-radius);
    min-height: 24px;
    font-size: 18px;
    /* was 20px */
    text-align: center;
    font-weight: 700;
    color: var(--plaid-blue);
}

.boolean-field {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    /* was 12px */
    font-weight: 600;
    margin: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boolean-true {
    background: linear-gradient(135deg, var(--plaid-green) 0%, #059669 100%);
    color: white;
}

.boolean-false {
    background: linear-gradient(135deg, var(--plaid-red) 0%, #dc2626 100%);
    color: white;
}

/* Navigation */
.nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--plaid-purple);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    /* was 15px */
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--plaid-purple);
    color: white;
}

/* Code Display */
.code-display {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, var(--plaid-light-gray) 0%, #f1f5f9 100%);
    border: 1px solid var(--plaid-border);
    border-radius: var(--border-radius);
    padding: 16px;
    word-break: break-all;
    font-size: 12px;
    /* was 13px */
    line-height: 1.5;
    color: var(--plaid-dark);
}

/* Link Container for Embedded */
.link-container {
    border: 2px solid var(--plaid-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    height: 600px;
    padding: 0;
    background: white;
    color: var(--plaid-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.link-container:hover {
    border-color: var(--plaid-purple);
}

.link-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--border-radius-lg) !important;
}

.link-container-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--plaid-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    background: white;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--plaid-purple) 0%, var(--plaid-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover:not([style*="cursor: not-allowed"]) {
    border-color: var(--plaid-purple);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

.feature-card:hover:not([style*="cursor: not-allowed"])::before {
    transform: scaleX(1);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--plaid-dark);
    font-size: 1.25rem;
    /* was 1.5rem */
}

.feature-card p {
    color: var(--plaid-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Disabled feature cards */
.feature-card[style*="opacity: 0.6"] {
    cursor: not-allowed;
}

.feature-card[style*="opacity: 0.6"] h3 {
    color: var(--plaid-gray);
}

.feature-card[style*="opacity: 0.6"] p {
    color: #94a3b8;
}

/* Utilities */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--plaid-light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--plaid-purple) 0%, var(--plaid-blue) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--plaid-purple-hover) 0%, #0284c7 100%);
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
        /* was 16px */
    }

    .navbar-title {
        font-size: 1.125rem;
        /* was 1.25rem */
    }

    .callout-banner {
        font-size: 12px;
        /* was 13px */
    }
}

.terminal {
    background-color: #000;
    /* classic black */
    color: #fff;
    /* default text white */
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    padding: 1em;
    border-radius: 5px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    /* preserve formatting, wrap if needed */
    font-size: 13px;
    /* was 14px */
}

/* JSON coloring */
.terminal .key {
    color: #56b6c2;
    /* cyan-ish */
}

.terminal .string {
    color: #98c379;
    /* green */
}

.terminal .number {
    color: #d19a66;
    /* orange */
}

.terminal .boolean {
    color: #e06c75;
    /* red-ish */
}

.terminal .null {
    color: #c678dd;
    /* purple */
}

/* VERY IMPORTANT: Emoji styles */
.jumbo-emoji {
    font-size: 2.7rem;
    /* was 3rem */
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
}

/* Add these styles to your CSS file */

/* Callout Banner Styles */
.callout-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-left: 6px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    font-size: 13px;
    /* was 14px */
    line-height: 1.6;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.callout-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.callout-banner .callout-icon {
    font-size: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

.callout-banner .callout-title {
    color: #92400e;
    font-weight: 600;
    font-size: 15px;
    /* was 16px */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.callout-banner .callout-content {
    color: #92400e;
    margin-bottom: 16px;
}

.callout-banner .callout-highlight {
    background: rgba(245, 158, 11, 0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.callout-banner .redirect-url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d97706;
    color: #92400e;
    font-weight: 600;
    font-size: 12px;
    /* was 13px */
    flex: 1;
    min-width: 250px;
    word-break: break-all;
}

.callout-banner .copy-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    /* was 12px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.callout-banner .copy-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.callout-banner .copy-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .callout-banner {
        padding: 20px;
        font-size: 12px;
        /* was 13px */
    }

    .callout-banner .callout-highlight {
        flex-direction: column;
        align-items: stretch;
    }

    .callout-banner .redirect-url {
        min-width: auto;
        margin-bottom: 8px;
    }

    .callout-banner .copy-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Success state for copy button */
.callout-banner .copy-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.callout-banner .copy-btn.copied::before {
    content: '✓ ';
}

.link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.link:hover,
.link:focus {
    color: var(--plaid-purple);
    text-decoration: underline;
}

/* Required field indicator */
.required-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--plaid-red) 0%, #dc2626 100%);
    color: white;
    font-size: 9px;
    /* was 10px */
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

/* Auto-expanding textarea for JSON config */
.json-editor {
    width: 100%;
    min-height: 200px;
    transition: border-color 0.2s;
    resize: none; /* Disable manual resize */
    overflow-y: hidden;
    box-sizing: border-box; /* Important for proper sizing */
}

.json-editor:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.json-block {
  background: #0f172a; /* slate-900 */
  color: #e2e8f0;      /* slate-100 */
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 12px;
  white-space: pre;
  border: 1px solid #1e293b; /* slate-800 */
}

.json-block .key {
  color: #7dd3fc; /* sky-300 */
}
.json-block .string {
  color: #86efac; /* green-300 */
}
.json-block .number {
  color: #facc15; /* yellow-400 */
}
.json-block .boolean {
  color: #f472b6; /* pink-400 */
}
.json-block .null {
  color: #94a3b8; /* slate-400 */
}


        /* Enhanced styling for configuration interface */
        .config-section {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
        }

        .config-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #f1f5f9;
        }

        .config-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            color: #64748b;
        }

        .toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            background: #e2e8f0;
            border-radius: 12px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .toggle-switch.active {
            background: #6366f1;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .toggle-switch.active::after {
            transform: translateX(20px);
        }

        .products-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
            font-size: 14px;
        }

        .products-table th,
        .products-table td {
            padding: 12px 8px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        .products-table th {
            background: #f8fafc;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #475569;
            white-space: nowrap;
        }

        .products-table tr:hover {
            background: #f8fafc;
        }

        .product-checkbox {
            width: 18px;
            height: 18px;
            accent-color: #6366f1;
            cursor: pointer;
        }

        .product-name {
            font-weight: 500;
            color: #1e293b;
        }

        .product-description {
            font-size: 12px;
            color: #64748b;
            margin-top: 2px;
            line-height: 1.3;
        }

        /* Responsive table adjustments */
        @media (max-width: 1024px) {
            .products-table {
                font-size: 12px;
            }

            .products-table th,
            .products-table td {
                padding: 8px 4px;
            }

            .product-description {
                font-size: 11px;
            }
        }

        .json-status {
            margin-top: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
        }

        .json-valid {
            background: #f0fdf4;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

        .json-invalid {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }