/* ============================================
   自由が丘駅 3Dモデルビューワー
   Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #222222;
    --bg-hover: #2a2a2a;

    /* Accent */
    --accent-red: #c0392b;
    --accent-red-hover: #e74c3c;
    --accent-red-glow: rgba(192, 57, 43, 0.3);
    --accent-red-subtle: rgba(192, 57, 43, 0.15);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --text-inverse: #1a1a1a;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);

    /* Sticky Note Colors */
    --note-yellow: #fdd835;
    --note-green: #66bb6a;
    --note-cyan: #26c6da;
    --note-blue: #42a5f5;
    --note-purple: #ab47bc;
    --note-pink: #ec407a;

    /* Sticky Note Modal */
    --note-bg: #fff9c4;
    --note-text: #333333;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow-red: 0 0 20px rgba(192, 57, 43, 0.25);

    /* Layout */
    --sidebar-width: 280px;
    --right-panel-width: 44px;
    --header-height: 0px;

    /* Typography */
    --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-default: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --z-sidebar: 100;
    --z-right-panel: 100;
    --z-modal-backdrop: 500;
    --z-modal: 510;
    --z-toast: 600;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* --- App Layout --- */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   Left Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sidebar);
    transition: transform var(--transition-slow);
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

/* --- Area List --- */
.area-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.area-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all var(--transition-default);
    position: relative;
    user-select: none;
}

.area-item:hover {
    background: var(--bg-hover);
}

.area-item.active {
    background: var(--accent-red);
    border-left-color: var(--accent-red-hover);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

.area-item.active:hover {
    background: var(--accent-red-hover);
}

.area-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.area-item-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: var(--bg-elevated);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-default);
}

.area-item.active .area-item-badge {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
}

/* --- Sticky Notes Section (Bottom of Sidebar) --- */
.sidebar-notes-section {
    border-top: 1px solid var(--border-subtle);
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.sidebar-notes-header {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
}

.sidebar-notes-list {
    overflow-y: auto;
    flex: 1;
}

.sidebar-note-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-note-preview:hover {
    background: var(--bg-hover);
}

.sidebar-note-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-note-info {
    flex: 1;
    min-width: 0;
}

.sidebar-note-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-note-date {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* --- Add Note Button --- */
.add-note-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--bg-tertiary);
    border: none;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-default);
    font-family: var(--font-family);
}

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

/* ============================================
   Main Content - 3D Viewer
   ============================================ */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

#viewer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}

/* --- Viewer Loading --- */
.viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-default);
}

.viewer-loading.visible {
    opacity: 1;
}

.viewer-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Viewer Info Overlay --- */
.viewer-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

.viewer-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--note-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Alert Markers (3D overlay) --- */
.alert-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.alert-marker-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: var(--shadow-glow-red);
    animation: alert-pulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-marker-dot svg {
    width: 16px;
    height: 16px;
    fill: white;
}

@keyframes alert-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(192, 57, 43, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 25px rgba(192, 57, 43, 0.5);
    }
}

.alert-marker-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.alert-marker:hover .alert-marker-label {
    opacity: 1;
}

/* ============================================
   Right Side Panel
   ============================================ */
.right-panel {
    width: var(--right-panel-width);
    min-width: var(--right-panel-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
    z-index: var(--z-right-panel);
}

.right-panel-btn {
    width: 36px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-family);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    transition: all var(--transition-default);
    letter-spacing: 0.05em;
}

.right-panel-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.right-panel-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

/* ============================================
   Sticky Note Modal
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
}

.modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 440px;
    max-width: 90vw;
    background: var(--note-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
}

.sticky-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sticky-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

.sticky-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--note-text);
}

.sticky-modal-date {
    font-size: 13px;
    color: #888;
}

.sticky-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.sticky-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.sticky-modal-body {
    padding: 8px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-modal-body input[type="text"],
.sticky-modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--note-text);
    background: #fff;
    outline: none;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.sticky-modal-body input[type="text"]:focus,
.sticky-modal-body textarea:focus {
    border-color: var(--accent-red);
}

.sticky-modal-body textarea {
    min-height: 100px;
}

.sticky-modal-body input[type="text"]::placeholder,
.sticky-modal-body textarea::placeholder {
    color: #aaa;
}

/* File Input */
.sticky-file-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-file-btn {
    padding: 6px 14px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--note-text);
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.sticky-file-btn:hover {
    background: #e0e0e0;
}

.sticky-file-name {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Color Selection */
.sticky-color-select {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.sticky-color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.sticky-color-dot:hover {
    transform: scale(1.15);
}

.sticky-color-dot.selected {
    border-color: var(--note-text);
}

.sticky-color-dot.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* OK Button */
.sticky-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 16px;
}

.sticky-ok-btn {
    padding: 8px 28px;
    background: var(--note-text);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-default);
}

.sticky-ok-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Search & Sort Bar
   ============================================ */
.notes-toolbar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.notes-toolbar.visible {
    display: flex;
}

.notes-search {
    flex: 1;
    padding: 7px 12px 7px 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px center;
}

.notes-search:focus {
    border-color: var(--accent-red);
}

.notes-search::placeholder {
    color: var(--text-tertiary);
}

.notes-sort-btn {
    padding: 7px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.notes-sort-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s ease forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 360px;
}

.toast.toast-success {
    border-left: 3px solid var(--note-green);
}

.toast.toast-error {
    border-left: 3px solid var(--accent-red);
}

.toast.toast-info {
    border-left: 3px solid var(--note-blue);
}

.toast.hiding {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ============================================
   Menu Panel (expandable)
   ============================================ */
.menu-panel {
    position: fixed;
    top: 0;
    right: var(--right-panel-width);
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    z-index: 90;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.menu-panel.open {
    transform: translateX(0);
}

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

.menu-panel-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.menu-panel-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
    transition: all var(--transition-fast);
}

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

.menu-panel-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.menu-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-secondary);
}

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

.menu-panel-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sticky-modal {
        width: 95vw;
    }
}

/* ============================================
   Chat Panel
   ============================================ */
.chat-panel {
    position: fixed;
    top: 0;
    right: var(--right-panel-width);
    width: 360px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    z-index: 90;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.chat-panel.open {
    transform: translateX(0);
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.chat-panel-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.chat-panel-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
    transition: all var(--transition-fast);
}

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

.chat-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-primary);
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.ai-message {
    align-self: flex-start;
}

.chat-message.user-message {
    align-self: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-message .chat-bubble {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 2px;
}

.user-message .chat-bubble {
    background: var(--accent-red);
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Typing animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Footer & Buttons */
.chat-panel-footer {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-scenario-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chat-scenario-buttons::-webkit-scrollbar {
    height: 4px;
}

.chat-scenario-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-scenario-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.chat-input-area {
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.chat-input-area button {
    padding: 0 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: not-allowed;
}

