/**
 * RJ Codex AI - Production Stylesheet
 * 100% Pure Clean White / Light Theme
 * Design System inspired by Oxion, Vercel, and Claude Light UI
 */

:root {
    --bg-page: #ffffff;
    --bg-card: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #f1f5f9;

    --border-light: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverted: #ffffff;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;

    --accent: #0284c7;
    --accent-soft: #e0f2fe;

    --success: #10b981;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;

    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --warning-border: #fde68a;

    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, "Courier New", monospace;

    --sidebar-width: 260px;
    --header-height: 64px;
}

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

html, body {
    height: 100%;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Base App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-card);
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 1px 6px;
    border-radius: 999px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 12px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--primary-border);
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-card);
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--border-light);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-page);
}

/* Top Navigation Bar */
.top-header {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Credits Badge */
.credits-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.credits-pill:hover {
    border-color: var(--border-hover);
    background-color: #f1f5f9;
}

.credits-icon {
    color: #eab308;
    display: flex;
}

.credits-value {
    font-weight: 700;
    color: var(--text-primary);
}

.plan-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
}

.plan-badge-free {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.plan-badge-pro {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.plan-badge-enterprise {
    background: #fdf4ff;
    color: #9333ea;
    border: 1px solid #f0abfc;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
}

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

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}
.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn:disabled, .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Content Wrapper */
.content-wrapper {
    padding: 24px;
    flex: 1;
}

/* Clean Cards */
.card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Flash Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
}
.alert-success {
    background-color: var(--success-soft);
    color: #065f46;
    border-color: var(--success-border);
}
.alert-danger {
    background-color: var(--danger-soft);
    color: #991b1b;
    border-color: var(--danger-border);
}
.alert-warning {
    background-color: var(--warning-soft);
    color: #92400e;
    border-color: var(--warning-border);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-code {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-reasoning {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.badge-vision {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.badge-fast {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-free {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.badge-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-banned {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Clean Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

.table th {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tr:hover td {
    background-color: #fafbfc;
}

/* =====================================================================
   AI PLAYGROUND STYLES
   ===================================================================== */
.playground-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
}

.playground-header {
    height: 52px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
}

.model-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.model-trigger-btn:hover {
    border-color: var(--border-hover);
    background-color: #f1f5f9;
}

.model-trigger-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.model-trigger-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.playground-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat Messages Thread */
.chat-thread-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message-row {
    display: flex;
    gap: 14px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 13px;
}

.avatar-user {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.avatar-ai {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.message-body-wrap {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.message-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: #1e293b;
    word-break: break-word;
}

.message-content p {
    margin-bottom: 12px;
}

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

/* Multimodal Image Thumbnail */
.message-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.message-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.message-image-thumb:hover {
    transform: scale(1.03);
}

/* Light Theme Code Syntax Blocks (GitHub Light / One Light Inspired) */
.code-block-wrapper {
    margin: 16px 0;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.code-block-header {
    background-color: #f1f5f9;
    padding: 6px 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-language-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.copy-code-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.copy-code-btn:hover {
    background-color: #ffffff;
    color: var(--text-primary);
    border-color: #94a3b8;
}

.copy-code-btn.copied {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.code-pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.55;
    background-color: #f8fafc;
    color: #0f172a;
}

/* Light Syntax Highlighting Classes */
.token-keyword { color: #d73a49; font-weight: 600; }
.token-string { color: #032f62; }
.token-number { color: #005cc5; }
.token-comment { color: #6a737d; font-style: italic; }
.token-function { color: #6f42c1; }
.token-variable { color: #e36209; }
.token-operator { color: #d73a49; }

/* Inline Code */
:not(pre) > code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Chat Input Bar */
.chat-input-container {
    padding: 16px 20px 20px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
}

.chat-input-box {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.preview-chip {
    position: relative;
    display: inline-flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.preview-chip img {
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.chat-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: transparent;
    max-height: 200px;
    min-height: 44px;
}

.chat-input-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: 6px;
}

.input-tools-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.tool-icon-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.input-tools-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tokens-cost-indicator {
    font-size: 12px;
    color: var(--text-muted);
}

.send-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.send-btn:hover {
    background: var(--primary-hover);
}

.send-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* =====================================================================
   TWO-COLUMN PURE WHITE MODEL MODAL
   ===================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.model-modal-body {
    display: flex;
    flex: 1;
    min-height: 480px;
    max-height: calc(85vh - 70px);
}

/* Modal Left Column */
.modal-col-left {
    width: 55%;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.modal-search-bar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

.modal-filter-pills {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    background: #fafbfc;
    overflow-x: auto;
}

.filter-pill {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    border-color: var(--border-hover);
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.modal-models-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.model-list-item:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.model-list-item.selected {
    background: var(--primary-soft);
    border-color: var(--primary-border);
}

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

.model-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.model-item-provider {
    font-size: 11.5px;
    color: var(--text-muted);
}

.model-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Right Column */
.modal-col-right {
    width: 45%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fafbfc;
}

.specs-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.specs-provider {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.specs-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.spec-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.spec-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.spec-card-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-select-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .app-sidebar {
        position: fixed;
        transform: translateX(-100%);
    }
    .app-sidebar.mobile-open {
        transform: translateX(0);
    }
    .model-modal-body {
        flex-direction: column;
    }
    .modal-col-left, .modal-col-right {
        width: 100%;
        border-right: none;
    }
}
