/* ==========================================================================
   VeritasAI - Design System & Modern Stylesheet
   Theme: Sleek Dark Mode, Glassmorphism, Neon Accents
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0a0e17;
    --bg-card: rgba(18, 26, 43, 0.75);
    --bg-card-hover: rgba(25, 36, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 242, 254, 0.3);

    /* Text Colors */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Accent Gradients & Colors */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #7f00ff;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.15) 100%);

    /* Bias Indicators */
    --color-left: #3b82f6;
    --color-left-center: #60a5fa;
    --color-neutral: #10b981;
    --color-right-center: #f59e0b;
    --color-right: #ef4444;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Layout & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Glow Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-bg .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.glow-bg .circle-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
}

.glow-bg .circle-2 {
    bottom: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-highlight);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

/* Analyzer Card / Form */
.analyzer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glass);
    max-width: 840px;
    margin: 0 auto;
    transition: var(--transition);
}

.analyzer-card:focus-within {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.url-form .input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 8px 8px 20px;
    gap: 12px;
    transition: var(--transition);
}

.url-form .input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}

.input-icon {
    color: var(--text-dim);
    font-size: 1.2rem;
}

#url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}

#url-input::placeholder {
    color: var(--text-dim);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

/* Presets Section */
.preset-section {
    margin-top: 24px;
    text-align: left;
}

.preset-title {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.preset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 60px 0;
}

.hidden {
    display: none !important;
}

.ai-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 242, 254, 0.1);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.loading-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.loading-step {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Results Dashboard Section */
.results-section {
    padding-bottom: 80px;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Result Header Card */
.result-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.res-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 8px 0;
}

.res-url-wrapper {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.res-url-wrapper a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Results Grid Layout */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
}

/* General Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    transition: var(--transition);
}

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

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

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-gradient {
    color: var(--accent-cyan);
}

.card-subtitle {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Bias Meter / Gauge */
.badge-bias {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bias-gauge-container {
    margin: 30px 0 20px;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.gauge-bar-wrapper {
    position: relative;
    height: 14px;
}

.gauge-bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, 
        var(--color-left) 0%, 
        var(--color-left-center) 25%, 
        var(--color-neutral) 50%, 
        var(--color-right-center) 75%, 
        var(--color-right) 100%);
}

.gauge-pointer {
    position: absolute;
    top: -5px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pointer-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 700;
}

.bias-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(10, 14, 23, 0.4);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-cyan);
}

/* Biased Points List */
.count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 50px;
}

.points-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.point-item {
    background: rgba(10, 14, 23, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: var(--transition);
}

.point-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

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

.bias-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.bias-tag.sensational { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.bias-tag.framing { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.bias-tag.omission { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.point-quote {
    font-style: italic;
    color: #e2e8f0;
    font-size: 0.92rem;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-cyan);
}

.point-explanation {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Neutral Summary */
.summary-content {
    background: rgba(10, 14, 23, 0.4);
    padding: 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.summary-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.summary-content li {
    margin-bottom: 8px;
}

/* Right Sidebar - Media Profile */
.media-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.media-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-cyan);
}

.media-brand-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.media-domain-tag {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stat-box {
    background: rgba(10, 14, 23, 0.4);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 4px;
}

.stat-value-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
}

.badge-trust-high {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Ideology Section */
.section-subheading {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ideology-badge-wrapper {
    margin-bottom: 16px;
}

.ideology-badge {
    display: inline-block;
    background: var(--gradient-glow);
    border: 1px solid var(--border-highlight);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
}

.ideology-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-dim);
}

.detail-value {
    color: var(--text-main);
    font-weight: 600;
}

.media-bio p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.media-bio h4 {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Methodology List */
.method-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.text-success { color: var(--color-success); }
.text-accent { color: var(--accent-cyan); }

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .url-form .input-wrapper {
        flex-direction: column;
        padding: 12px;
    }

    #url-input {
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
    }

    .result-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Gemini AI & Component Additions
   ========================================================================== */

/* API Status Badge Button in Navbar */
.api-key-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.api-key-badge-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--border-highlight);
    color: var(--accent-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

.status-dot.demo {
    background: var(--color-warning);
    box-shadow: 0 0 10px var(--color-warning);
}

/* Tabs Navigation in Analyzer Card */
.analyzer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--accent-cyan);
    background: var(--gradient-glow);
    border: 1px solid var(--border-highlight);
}

.tab-content.hidden {
    display: none !important;
}

/* Textarea Input Form */
.input-wrapper-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.input-wrapper-text:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.text-title-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.text-area-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.text-title-field:focus, .text-area-field:focus {
    border-color: var(--border-highlight);
}

.form-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.text-length-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Analyzer Controls / Model Dropdown */
.analyzer-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    margin-bottom: 8px;
}

.model-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.model-dropdown {
    background: rgba(18, 26, 43, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.model-dropdown:focus {
    border-color: var(--accent-cyan);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: var(--transition);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.api-key-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 8px 0 14px;
}

.api-key-input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}

.api-key-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px 0;
    font-size: 0.95rem;
    outline: none;
    font-family: monospace;
}

.btn-icon-only {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-only:hover {
    color: var(--accent-cyan);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.input-hint a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.input-hint a:hover {
    text-decoration: underline;
}

.modal-status-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-status-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.modal-status-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(10, 14, 23, 0.5);
    border-top: 1px solid var(--border-color);
}

.modal-action-right {
    display: flex;
    gap: 10px;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--color-danger);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease forwards;
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-danger);
}

.toast.info {
    border-color: var(--accent-blue);
}

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




