/* Modern UI Styles for CFP.ninja */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern color palette */
    --primary-color: #000000;
    --primary-hover: #333333;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --secondary-color: #6b7280;
    --background: #fafafa;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Dark theme */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --primary-hover: #e5e7eb;
    --accent-color: #818cf8;
    --accent-hover: #a5b4fc;
    --secondary-color: #9ca3af;
    --background: #09090b;
    --surface: #18181b;
    --surface-raised: #27272a;
    --text: #fafafa;
    --text-secondary: #d4d4d8;
    --text-light: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --border-light: #3f3f46;
    --success: #34d399;
    --success-light: #064e3b;
    --warning: #fbbf24;
    --warning-light: #78350f;
    --error: #f87171;
    --error-light: #7f1d1d;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* Base typography */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Monospace elements - code and console only */
code, pre,
.font-mono,
.cli-command-code,
.cli-example code,
.cli-install-cmd code {
    font-family: var(--font-mono);
}

/* Header / Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.375rem 0;
}

.navbar-brand {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text) !important;
    letter-spacing: -0.01em;
}

.nav-link {
    font-family: var(--font-sans);
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem !important;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--text) !important;
    background: var(--border-light);
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Main content */
main {
    flex: 1;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

[data-theme="dark"] .card:hover {
    border-color: var(--border-light);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Event cards */
.event-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card .badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.event-card .event-dates {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.event-title {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* CFP Status */
.cfp-status {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
}

.cfp-status-text {
    font-family: var(--font-sans);
    font-weight: 500;
    margin: 0;
}

.cfp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.cfp-dot.cfp-open {
    background-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-light);
}

.cfp-dot.cfp-closed {
    background-color: var(--error);
}

.cfp-dot.cfp-soon {
    background-color: var(--warning);
    box-shadow: 0 0 0 3px var(--warning-light);
}

.cfp-open {
    color: var(--success);
}

.cfp-closed {
    color: var(--error);
}

.cfp-soon {
    color: var(--warning);
}

/* Stats */
.stat-value {
    display: block;
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.stat-value-warning {
    color: var(--warning);
}

.stat-value-success {
    color: var(--success);
}

.stat-value-error {
    color: var(--error);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Search and filters */
.search-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.search-filters input,
.search-filters select {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all 0.15s ease;
}

.search-filters input:focus,
.search-filters select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
    outline: none;
}

.search-filters input::placeholder {
    color: var(--text-muted);
}

/* Pagination */
.pagination .page-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    margin: 0 0.125rem;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background: var(--border-light);
    border-color: var(--border);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--surface);
}

/* Forms */
.form-label {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.625rem 0.875rem;
    transition: all 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--surface);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-outline-primary:hover {
    background: var(--border-light);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary {
    background-color: var(--border-light);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--border);
    color: var(--text);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    color: white;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
}

.btn-outline-danger:hover {
    background: var(--error);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Badges */
.badge {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.bg-secondary {
    background-color: var(--border-light) !important;
    color: var(--text-secondary) !important;
}

.bg-success {
    background-color: var(--success-light) !important;
    color: #065f46 !important;  /* Darker green for better contrast */
}

[data-theme="dark"] .bg-success {
    color: var(--success) !important;  /* Light green for dark theme */
}

.bg-warning {
    background-color: var(--warning-light) !important;
    color: #92400e !important;  /* Dark brown for light theme */
}

[data-theme="dark"] .bg-warning {
    color: #fef3c7 !important;  /* Light cream for dark theme - CRITICAL fix */
}

.bg-danger {
    background-color: var(--error-light) !important;
    color: #991b1b !important;  /* Darker red for better contrast */
}

[data-theme="dark"] .bg-danger {
    color: var(--error) !important;  /* Light red for dark theme */
}

/* Event detail page */
.event-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.cfp-info {
    background: var(--surface);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cfp-info.closed {
    border-color: var(--error);
}

/* Dashboard */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* List groups */
.list-group-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    transition: all 0.15s ease;
}

.list-group-item:first-child {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.list-group-item + .list-group-item {
    border-top: none;
}

.list-group-item-action:hover {
    background: var(--border-light);
}

/* Draft event cards */
.event-draft {
    opacity: 0.6;
    background: var(--border-light);
}

/* Proposal cards */
.proposal-card {
    border-left: 3px solid var(--border);
}

.proposal-card.status-pending,
.proposal-card.status-submitted {
    border-left-color: var(--warning);
}

.proposal-card.status-accepted {
    border-left-color: var(--success);
}

.proposal-card.status-rejected {
    border-left-color: var(--error);
}

/* Rating stars */
.rating {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    cursor: pointer;
    color: var(--border);
    font-size: 1.25rem;
    transition: color 0.15s ease;
}

.rating-star.active,
.rating-star:hover {
    color: var(--warning);
}

/* Toast notifications */
.toast {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Alerts */
.alert {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: var(--error-light);
    color: var(--error);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2rem;
}

/* Speaker badges */
.speaker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--border-light);
    border: none;
    border-radius: 2rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.speaker-badge img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Format/level badges */
.format-badge,
.level-badge {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* User dropdown */
.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-dropdown .dropdown-menu {
    min-width: 220px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.user-dropdown .dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.user-dropdown .dropdown-item:hover {
    background: var(--border-light);
}

.user-info {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--text);
}

.user-info .user-email {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Tab navigation in forms */
.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-light) !important;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: -1px;
    background: transparent !important;
    transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text) !important;
    border-bottom-color: var(--border);
    background: transparent !important;
}

.nav-tabs .nav-link.active {
    color: var(--text) !important;
    font-weight: 600;
    border-bottom-color: var(--primary-color);
    background: transparent !important;
}

/* Custom question builder */
.question-item {
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.question-item .btn-remove {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.question-item:hover .btn-remove {
    opacity: 1;
}

/* Modals */
.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-filters {
        padding: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* ============================================
   CLI Command Component (Keep terminal style)
   ============================================ */
.cli-command-container {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

[data-theme="dark"] .cli-command-container {
    background: #0d0d0d;
    border-color: #262626;
}

.cli-command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #2d2d2d;
}

[data-theme="dark"] .cli-command-header {
    border-bottom-color: #262626;
}

.cli-command-title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cli-command-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cli-copy-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #737373;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    position: relative;
}

.cli-collapse-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #737373;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.cli-copy-btn:hover,
.cli-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
}

.cli-copy-feedback {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
}

.cli-copy-btn.copied .cli-copy-feedback {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}

.cli-copy-btn.copied .cli-copy-icon {
    opacity: 0.5;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

.cli-command-body {
    padding: 0.5rem 0.75rem;
    transition: max-height 0.3s ease, padding 0.2s ease, opacity 0.2s ease;
    max-height: 2000px;
    opacity: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
}

.cli-command-body-hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.cli-command-code {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.cli-command-body .cli-copy-btn {
    flex-shrink: 0;
}

.cli-command-code code {
    color: #22d3ee;
    background: transparent;
}

[data-theme="dark"] .cli-command-code code {
    color: #22d3ee;
}

.cli-collapse-icon {
    display: inline-block;
    transition: transform 0.15s ease;
}

.cli-command-container.collapsed .cli-collapse-icon {
    transform: rotate(0deg);
}

.cli-get-link {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #60a5fa;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.cli-get-link:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

/* CLI Page */
.cli-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

.cli-page h2 {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1rem;
}

.cli-page h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cli-install-cmd {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .cli-install-cmd {
    background: #0d0d0d;
    border-color: #262626;
}

.cli-install-cmd pre {
    margin: 0;
    flex: 1;
    background: transparent;
}

.cli-install-cmd code {
    color: #22d3ee;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.cli-install-copy-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #737373;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
}

.cli-install-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
}

.cli-install-copy-btn .copy-feedback {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
}

.cli-install-copy-btn.copied .copy-feedback {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}

.cli-install-copy-btn.copied .copy-icon {
    opacity: 0.5;
}

.cli-example {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    margin: 0;
}

[data-theme="dark"] .cli-example {
    background: #0d0d0d;
    border-color: #262626;
}

.cli-example code {
    color: #22d3ee;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

/* Utility: text colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Utility: background */
.bg-light {
    background-color: var(--border-light) !important;
}

/* Link styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Description text */
.description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.description p:last-child {
    margin-bottom: 0;
}

/* Logo spin on hover */
.logo-spin {
    transition: transform 0.6s ease;
}

.logo-spin:hover {
    transform: rotate(360deg);
}

/* Utility classes (replacing inline styles for CSP compliance) */
.max-w-search {
    max-width: 130px;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

.font-size-1 {
    font-size: 1rem;
}

.font-size-1-25 {
    font-size: 1.25rem;
}

.text-decoration-none {
    text-decoration: none;
}

.avatar-badge {
    width: 32px;
    height: 32px;
    line-height: 24px;
}

.logo-hero {
    max-width: 175px;
    width: 100%;
}

/* Timeline chart */
.timeline-chart {
    width: 100%;
    overflow-x: auto;
}

.timeline-chart svg {
    width: 100%;
    height: auto;
    min-height: 120px;
}

.timeline-line {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-linejoin: round;
}

.timeline-area {
    fill: var(--accent-color);
    opacity: 0.1;
}

.timeline-dot {
    fill: var(--accent-color);
}

.timeline-dot:hover {
    r: 5;
}

.timeline-label-y,
.timeline-label-x {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--text-muted);
}

.timeline-label-y {
    text-anchor: end;
}

.timeline-label-x {
    text-anchor: middle;
}

.timeline-axis {
    stroke: var(--border);
    stroke-width: 1;
}

/* Proposal review badges - dark mode contrast fix */
[data-theme="dark"] .badge.bg-light.text-dark {
    color: var(--text) !important;
}

/* Clickable proposal title */
.proposal-title {
    cursor: pointer;
    transition: color 0.15s ease;
}

.proposal-title:hover {
    color: var(--accent-color);
}
