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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(42, 42, 42, 0.6);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.new-chat-btn {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.new-chat-btn:hover {
    background: #0052a3;
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* DEPRECATED: .session-item { */
/* DEPRECATED:     padding: 12px; */
/* DEPRECATED:     margin-bottom: 5px; */
/* DEPRECATED:     background: rgba(42, 42, 42, 0.3); */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     transition: all 0.2s; */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     justify-content: space-between; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .session-item:hover { */
/* DEPRECATED:     background: rgba(42, 42, 42, 0.5); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .session-item.active { */
/* DEPRECATED:     background: rgba(0, 102, 204, 0.2); */
/* DEPRECATED:     border-left: 3px solid #0066cc; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .session-title { */
/* DEPRECATED:     font-size: 14px; */
/* DEPRECATED:     color: #e0e0e0; */
/* DEPRECATED:     overflow: hidden; */
/* DEPRECATED:     text-overflow: ellipsis; */
/* DEPRECATED:     white-space: nowrap; */
/* DEPRECATED:     flex: 1; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .session-delete { */
/* DEPRECATED:     opacity: 0; */
/* DEPRECATED:     color: #ff4444; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     padding: 4px 8px; */
/* DEPRECATED:     font-size: 16px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .session-item:hover .session-delete { */
/* DEPRECATED:     opacity: 1; */
/* DEPRECATED: } */
/* DEPRECATED:  */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(42, 42, 42, 0.6);
}

.user-info {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: #00d4aa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 10px;
}

.admin-link:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

.admin-link svg {
    flex-shrink: 0;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 68, 68, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* Git Workspace - Terminal-inspired status component */
.git-workspace {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(18, 18, 20, 0.95) 0%, rgba(28, 28, 32, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.git-workspace::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
}

.git-workspace-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.git-workspace-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.git-workspace-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
}

.git-workspace-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.git-workspace-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.git-workspace-state {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.git-workspace-branch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.git-branch-symbol {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.git-branch-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    padding: 0;
    letter-spacing: -0.3px;
}

.git-workspace-action {
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 6px;
    color: #fb923c;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.git-workspace-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.git-workspace-action:hover::before {
    opacity: 1;
}

.git-workspace-action:hover {
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.15);
    transform: translateY(-1px);
}

.git-workspace-action:active {
    transform: translateY(0);
}

.git-workspace-action svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.3));
}

/* State variations */
.git-workspace[data-status="warning"] {
    border-color: rgba(251, 191, 36, 0.2);
}

.git-workspace[data-status="warning"] .git-workspace-dot {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.git-workspace[data-status="warning"] .git-workspace-state {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.git-workspace[data-status="error"] {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(135deg, rgba(25, 18, 20, 0.95) 0%, rgba(35, 28, 32, 0.95) 100%);
}

.git-workspace[data-status="error"] .git-workspace-dot {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.git-workspace[data-status="error"] .git-workspace-state {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Workspace Notice - inline bar above input */
.workspace-notice {
    padding: 8px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
}

.workspace-notice.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.workspace-notice.error {
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
    border-top-color: rgba(244, 67, 54, 0.2);
    border-bottom-color: rgba(244, 67, 54, 0.2);
}

.workspace-notice-icon {
    font-size: 16px;
    line-height: 1;
}

.workspace-notice-message {
    flex: 1;
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.4;
}

.notice-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
    line-height: 1;
}

.notice-close-btn:hover {
    color: #fff;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Messages Area */
.messages-area {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-y: overlay; /* Use overlay scrollbar if supported */
    padding: 20px;
    scrollbar-gutter: stable; /* Reserve space for scrollbar */
}

/* Spacer that keeps user question at top after sending */
.scroll-spacer {
    min-height: 0;
}

.scroll-spacer.active {
    min-height: calc(100vh - 250px);
}

/* Stable scrollbar for messages area */
.messages-area::-webkit-scrollbar {
    width: 6px;
}

.messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.3);
    border-radius: 3px;
    min-height: 40px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 74, 74, 0.5);
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
    min-width: 0; /* Allow flex child to shrink below content size */
    position: relative; /* For absolute positioning of copy button */
}

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

/* Copy button - terminal aesthetic */
.copy-btn {
    position: absolute;
    bottom: -1px;
    right: 12px;
    background: rgba(0, 212, 170, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 6px 8px;
    cursor: pointer;
    color: rgba(0, 212, 170, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.4);
    color: #00d4aa;
    box-shadow: 0 -2px 12px rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

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

.copy-btn.copied {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    color: #00d4aa;
    box-shadow: 0 -2px 16px rgba(0, 212, 170, 0.4);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.message-header {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.message.user .message-header {
    color: #7986cb;
}

.message.assistant .message-header {
    color: #4db6ac;
}

/* Status bar for showing Claude's current activity */
/* DEPRECATED: .status-bar { */
/* DEPRECATED:     margin: 8px 0; */
/* DEPRECATED:     padding: 8px 12px; */
/* DEPRECATED:     background: rgba(0, 212, 170, 0.1); */
/* DEPRECATED:     border-left: 3px solid #00d4aa; */
/* DEPRECATED:     border-radius: 6px; */
/* DEPRECATED:     font-size: 13px; */
/* DEPRECATED:     font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .status-indicator { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     gap: 8px; */
    color: #00d4aa;
}

.status-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 212, 170, 0.2);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.message-content {
    background: #1e1e24;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.user .message-content {
    background: #252530;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #5c6bc0;
}

.message.assistant .message-content {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #26a69a;
}

/* Markdown rendering */
.message-content pre {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    max-width: 100%;
    white-space: pre-wrap; /* Wrap long lines instead of scrolling */
    overflow-wrap: break-word; /* Break only if really long words without spaces */
}

.message-content code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-wrap: break-word; /* Break only if really long words without spaces */
}

.message-content pre code {
    background: none;
    padding: 0;
}

.message-content ul, .message-content ol {
    margin-left: 20px;
    margin: 10px 0 10px 20px;
}

.message-content p {
    margin: 10px 0;
}

.message-content h1, .message-content h2, .message-content h3 {
    margin: 15px 0 10px 0;
}

/* DEPRECATED: /* Input Area */ */
/* DEPRECATED: .input-area { */
/* DEPRECATED:     padding: 20px; */
/* DEPRECATED:     background: rgba(26, 26, 26, 0.5); */
/* DEPRECATED:     backdrop-filter: blur(10px); */
/* DEPRECATED:     border-top: 1px solid rgba(42, 42, 42, 0.6); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .input-container { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     gap: 10px; */
/* DEPRECATED:     max-width: 1200px; */
/* DEPRECATED:     margin: 0 auto; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #prompt-input { */
/* DEPRECATED:     flex: 1; */
/* DEPRECATED:     padding: 15px; */
/* DEPRECATED:     background: rgba(42, 42, 42, 0.5); */
/* DEPRECATED:     border: 1px solid rgba(74, 74, 74, 0.6); */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     color: #e0e0e0; */
/* DEPRECATED:     font-size: 14px; */
/* DEPRECATED:     font-family: inherit; */
/* DEPRECATED:     resize: none; */
/* DEPRECATED:     min-height: 60px; */
/* DEPRECATED:     max-height: 200px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #prompt-input:focus { */
/* DEPRECATED:     outline: none; */
/* DEPRECATED:     border-color: #0066cc; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #prompt-input:disabled { */
/* DEPRECATED:     opacity: 0.5; */
/* DEPRECATED:     cursor: not-allowed; */
/* DEPRECATED:     background: rgba(30, 30, 30, 0.5); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #send-btn { */
/* DEPRECATED:     padding: 15px 30px; */
/* DEPRECATED:     background: #0066cc; */
/* DEPRECATED:     color: white; */
/* DEPRECATED:     border: none; */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     font-size: 14px; */
/* DEPRECATED:     font-weight: 600; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     transition: background 0.2s; */
/* DEPRECATED:     white-space: nowrap; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #send-btn:hover:not(:disabled) { */
/* DEPRECATED:     background: #0052a3; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: #send-btn:disabled { */
/* DEPRECATED:     opacity: 0.5; */
/* DEPRECATED:     cursor: not-allowed; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: /* Login Screen */ */
/* DEPRECATED: #login-container { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: flex-start; */
/* DEPRECATED:     justify-content: center; */
/* DEPRECATED:     min-height: 100vh; */
/* DEPRECATED:     padding-top: 20vh; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .login-box { */
/* DEPRECATED:     background: rgba(26, 26, 26, 0.5); */
/* DEPRECATED:     backdrop-filter: blur(10px); */
/* DEPRECATED:     border: 1px solid rgba(42, 42, 42, 0.6); */
/* DEPRECATED:     border-radius: 12px; */
/* DEPRECATED:     padding: 40px; */
/* DEPRECATED:     width: 100%; */
/* DEPRECATED:     max-width: 400px; */
/* DEPRECATED:     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .login-title { */
/* DEPRECATED:     font-size: 28px; */
/* DEPRECATED:     font-weight: 700; */
/* DEPRECATED:     margin-bottom: 30px; */
/* DEPRECATED:     text-align: center; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .oauth-btn { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     justify-content: center; */
/* DEPRECATED:     gap: 12px; */
/* DEPRECATED:     width: 100%; */
/* DEPRECATED:     padding: 14px; */
/* DEPRECATED:     background: #0066cc; */
/* DEPRECATED:     color: white; */
/* DEPRECATED:     text-decoration: none; */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     font-size: 16px; */
/* DEPRECATED:     font-weight: 600; */
/* DEPRECATED:     transition: background 0.2s; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .oauth-btn:hover { */
/* DEPRECATED:     background: #0052a3; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: /* ScaleOps images on login screen */ */
.scaleops-image-mobile {
    display: none;
    margin-top: 30px;
}

.scaleops-image-mobile img {
    max-width: 300px;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to top, transparent 10%, black 30%);
    mask-image: linear-gradient(to top, transparent 10%, black 30%);
}

.scaleops-image-desktop-left,
.scaleops-image-desktop-middle,
.scaleops-image-desktop-right {
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 999;
}

.scaleops-image-desktop-left {
    left: 50%;
    transform: translateX(-100%);
    margin-left: -18vw;
    bottom: -5px;
}

.scaleops-image-desktop-middle {
    left: 50%;
    transform: translateX(-50%);
}

.scaleops-image-desktop-right {
    left: 50%;
    margin-left: 16vw;
    bottom: 30px;
}

@media (max-width: 1200px) {
    .scaleops-image-desktop-left {
        margin-left: -20vw;
    }
    .scaleops-image-desktop-right {
        margin-left: 16vw;
    }
}

@media (max-width: 1024px) {
    .scaleops-image-desktop-left {
        margin-left: -24vw;
    }
    .scaleops-image-desktop-right {
        margin-left: 18vw;
    }
}

@media (max-width: 900px) {
    .scaleops-image-desktop-left {
        margin-left: -28vw;
    }
    .scaleops-image-desktop-right {
        margin-left: 20vw;
    }
}

@media (max-width: 768px) {
    .scaleops-image-desktop-left,
    .scaleops-image-desktop-middle,
    .scaleops-image-desktop-right {
        display: none;
    }

    .scaleops-image-mobile {
        display: block;
    }

    .scaleops-label {
        display: none;
    }

    .scaleops-label-mobile {
        display: block;
    }
}

.scaleops-image-desktop-left img {
    height: 35vh;
    max-height: 500px;
    width: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to top, transparent 22%, black 42%);
    mask-image: linear-gradient(to top, transparent 22%, black 42%);
}

.scaleops-image-desktop-right img {
    height: 33vh;
    max-height: 480px;
    width: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to top, transparent 15%, black 35%);
    mask-image: linear-gradient(to top, transparent 15%, black 35%);
}

.scaleops-image-desktop-middle img {
    height: 40vh;
    max-height: 600px;
    width: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to top, transparent 17%, black 37%);
    mask-image: linear-gradient(to top, transparent 17%, black 37%);
}

.scaleops-label {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scaleops-label-mobile {
    display: none;
    text-align: center;
    margin-top: -20px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Balkon image (top-right corner) */
.balkon-image {
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;
    max-width: 400px;
    min-width: 200px;
    height: auto;
    z-index: 1000;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

@media (max-width: 1024px) {
    .balkon-image {
        width: 35vw;
    }
}

@media (max-width: 768px) {
    .balkon-image {
        width: 40vw;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .balkon-image {
        width: 45vw;
    }
}

.hidden {
    display: none !important;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    text-align: center;
    padding: 40px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
}

/* Scrollbar styling - stable, no expand on hover */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 74, 74, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 74, 74, 0.4) transparent;
}

/* Markdown styling */
.message-content blockquote {
    margin: 1em 0;
    padding: 0.75em 1em;
    border-left: 4px solid #5c6bc0;
    background: #1a1a20;
    border-radius: 0 8px 8px 0;
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.message-content thead {
    background: #14141a;
}

.message-content th,
.message-content td {
    padding: 0.75em 1em;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message-content th {
    font-weight: 600;
    color: #7986cb;
}

.message-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.message-content code {
    background: #14141a;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: #14141a;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.message-content ul,
.message-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.message-content li {
    margin: 0.3em 0;
}

.message-content p {
    margin: 0.75em 0;
}

.message-content p:first-child {
    margin-top: 0;
}

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

/* Mobile Menu Button - hidden by default */
.mobile-menu-btn {
    display: none;
}

/* Mobile Overlay - hidden by default */
.mobile-overlay {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Full screen layout on mobile */
    .app-container {
        flex-direction: column;
    }

    /* Sidebar - slide from left */
    .sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100% !important;
        z-index: 200;
        transition: left 0.3s ease !important;
        background: #1a1a1f !important;
    }

    .sidebar.open {
        left: 0 !important;
    }

    /* Hide resize handle on mobile */
    .sidebar-resize-handle {
        display: none !important;
    }

    /* Chat container - full width */
    .chat-container {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport for mobile browsers */
    }

    /* Messages area - account for header and input */
    .messages-area {
        padding: 60px 12px 12px 12px !important;
        height: calc(100vh - 80px) !important;
        height: calc(100dvh - 80px) !important;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 150;
        background: rgba(20, 20, 24, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px;
        cursor: pointer;
        color: #5eead4;
        transition: all 0.2s;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
        background: rgba(45, 212, 191, 0.2);
    }

    /* Status bar - move to top right, smaller */
    #status-bar {
        top: 12px !important;
        right: 12px !important;
    }

    #status-bar .badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* Usage widget - hide on mobile */
    #usage-widget {
        display: none !important;
    }

    /* Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Input area - fixed bottom */
    .chat-container > .p-3 {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 8px 12px !important;
        background: #1a1a1f !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 100;
    }

    /* Smaller textarea on mobile */
    #prompt-input {
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 40px !important;
    }

    /* Chat bubbles - full width */
    .chat-bubble {
        max-width: 95% !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    /* Smaller avatars */
    .chat-image .w-8 {
        width: 28px !important;
        height: 28px !important;
    }

    /* Code blocks scroll horizontally */
    .chat-bubble pre,
    .chat-bubble .prose pre {
        overflow-x: auto !important;
        font-size: 12px !important;
    }

    /* Tables scroll */
    .chat-bubble table,
    .chat-bubble .prose table {
        display: block;
        overflow-x: auto;
        font-size: 12px;
    }

    /* Files container */
    #files-container {
        padding: 8px !important;
    }

    /* Workspace notice */
    .workspace-notice {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    /* Empty state */
    .empty-state {
        padding: 20px !important;
    }

    .empty-state h2 {
        font-size: 18px !important;
    }

    .empty-state p {
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS MODAL COMPONENT
   ═══════════════════════════════════════════════════════════════ */

.settings-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-btn:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
    color: #b0b0b0;
}

.settings-btn:hover .settings-icon {
    transform: rotate(45deg);
    color: #0066cc;
}

.settings-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s;
    flex-shrink: 0;
}

.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-modal {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 100px -20px rgba(0, 102, 204, 0.15);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.settings-overlay.active .settings-modal {
    transform: scale(1) translateY(0);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

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

.settings-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: #e8e8e8;
    letter-spacing: -0.01em;
    margin: 0;
}

.settings-header-icon {
    width: 20px;
    height: 20px;
    color: #0066cc;
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-close-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
}

.settings-close-btn svg {
    width: 18px;
    height: 18px;
}

.settings-body {
    padding: 24px;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c0c0c0;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.settings-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.settings-textarea {
    width: 100%;
    height: 450px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #d0d0d0;
    font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
}

.settings-textarea::placeholder {
    color: #4a4a4a;
    font-style: italic;
}

.settings-textarea:focus {
    outline: none;
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.settings-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

.settings-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4aa;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.settings-status-dot.custom {
    background: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.5);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.settings-status-text {
    font-size: 12px;
    color: #888;
}

.settings-status-text strong {
    color: #00d4aa;
    font-weight: 600;
}

.settings-status-text.custom strong {
    color: #4d9fff;
}

.settings-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.settings-btn-secondary {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
}

.settings-btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.settings-btn-primary:hover {
    background: linear-gradient(135deg, #0077ee 0%, #0066cc 100%);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

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

.settings-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: #00d4aa;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.settings-toast.error {
    background: rgba(255, 82, 82, 0.15);
    border-color: rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.settings-toast svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FILE UPLOAD STYLES
   ═══════════════════════════════════════════════════════════════ */

/* DEPRECATED: /* Drop zone overlay */ */
/* DEPRECATED: .drop-zone { */
/* DEPRECATED:     position: absolute; */
/* DEPRECATED:     top: 0; */
/* DEPRECATED:     left: 0; */
/* DEPRECATED:     right: 0; */
/* DEPRECATED:     bottom: 0; */
/* DEPRECATED:     background: rgba(0, 102, 204, 0.1); */
/* DEPRECATED:     border: 3px dashed #0066cc; */
/* DEPRECATED:     border-radius: 12px; */
/* DEPRECATED:     display: none; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     justify-content: center; */
/* DEPRECATED:     z-index: 100; */
/* DEPRECATED:     pointer-events: none; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .drop-zone.active { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     pointer-events: auto; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .drop-zone-content { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     flex-direction: column; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     gap: 12px; */
/* DEPRECATED:     color: #0066cc; */
/* DEPRECATED:     font-size: 18px; */
/* DEPRECATED:     font-weight: 500; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .drop-zone-content svg { */
/* DEPRECATED:     stroke: #0066cc; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* Files container */
/* DEPRECATED: .files-container { */
/* DEPRECATED:     padding: 12px 20px; */
/* DEPRECATED:     background: rgba(26, 26, 26, 0.6); */
/* DEPRECATED:     border-top: 1px solid rgba(255, 255, 255, 0.05); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .files-header { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     gap: 10px; */
/* DEPRECATED:     margin-bottom: 10px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .files-label { */
/* DEPRECATED:     font-size: 13px; */
/* DEPRECATED:     font-weight: 500; */
/* DEPRECATED:     color: #888; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .files-selected-badge { */
/* DEPRECATED:     background: #0066cc; */
/* DEPRECATED:     color: white; */
/* DEPRECATED:     font-size: 11px; */
/* DEPRECATED:     font-weight: 600; */
/* DEPRECATED:     padding: 2px 6px; */
/* DEPRECATED:     border-radius: 10px; */
/* DEPRECATED:     min-width: 18px; */
/* DEPRECATED:     text-align: center; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .files-hint { */
/* DEPRECATED:     font-size: 11px; */
/* DEPRECATED:     color: #666; */
/* DEPRECATED:     margin-left: auto; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .files-list { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     flex-wrap: wrap; */
/* DEPRECATED:     gap: 8px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: /* File chip */ */
/* DEPRECATED: .file-chip { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     gap: 6px; */
/* DEPRECATED:     padding: 6px 10px; */
/* DEPRECATED:     background: rgba(255, 255, 255, 0.05); */
/* DEPRECATED:     border: 1px solid rgba(255, 255, 255, 0.1); */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     transition: all 0.15s ease; */
/* DEPRECATED:     max-width: 200px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-chip:hover { */
/* DEPRECATED:     background: rgba(255, 255, 255, 0.08); */
/* DEPRECATED:     border-color: rgba(255, 255, 255, 0.15); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-chip.selected { */
/* DEPRECATED:     background: rgba(0, 102, 204, 0.15); */
/* DEPRECATED:     border-color: rgba(0, 102, 204, 0.4); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-chip.selected::before { */
/* DEPRECATED:     content: "✓"; */
/* DEPRECATED:     font-size: 10px; */
/* DEPRECATED:     color: #0066cc; */
/* DEPRECATED:     margin-right: 2px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-icon { */
/* DEPRECATED:     font-size: 14px; */
/* DEPRECATED:     flex-shrink: 0; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-name { */
/* DEPRECATED:     font-size: 12px; */
/* DEPRECATED:     color: #e0e0e0; */
/* DEPRECATED:     white-space: nowrap; */
/* DEPRECATED:     overflow: hidden; */
/* DEPRECATED:     text-overflow: ellipsis; */
/* DEPRECATED:     max-width: 120px; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-size { */
/* DEPRECATED:     font-size: 10px; */
/* DEPRECATED:     color: #666; */
/* DEPRECATED:     flex-shrink: 0; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-delete { */
/* DEPRECATED:     background: none; */
/* DEPRECATED:     border: none; */
/* DEPRECATED:     color: #666; */
/* DEPRECATED:     font-size: 16px; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     padding: 0 2px; */
/* DEPRECATED:     line-height: 1; */
/* DEPRECATED:     opacity: 0; */
/* DEPRECATED:     transition: opacity 0.15s ease; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-chip:hover .file-delete { */
/* DEPRECATED:     opacity: 1; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .file-delete:hover { */
    color: #ff5252;
}

/* DEPRECATED: /* Attach button */ */
/* DEPRECATED: .attach-btn { */
/* DEPRECATED:     background: none; */
/* DEPRECATED:     border: none; */
/* DEPRECATED:     color: #666; */
/* DEPRECATED:     cursor: pointer; */
/* DEPRECATED:     padding: 8px; */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     justify-content: center; */
/* DEPRECATED:     border-radius: 8px; */
/* DEPRECATED:     transition: all 0.15s ease; */
/* DEPRECATED:     flex-shrink: 0; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .attach-btn:hover { */
/* DEPRECATED:     color: #0066cc; */
/* DEPRECATED:     background: rgba(0, 102, 204, 0.1); */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: /* Update input container to accommodate attach button */ */
/* DEPRECATED: .input-container { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     gap: 10px; */
/* DEPRECATED:     align-items: flex-end; */
/* DEPRECATED: } */
/* DEPRECATED:  */
/* DEPRECATED: .input-container textarea { */
/* DEPRECATED:     flex: 1; */
/* DEPRECATED: } */
/* DEPRECATED: /* Compact sidebar */ */
/* DEPRECATED: .sidebar { */
    width: 220px;
}

.sidebar-header {
    padding: 12px 15px;
}

.sidebar-title {
    font-size: 15px;
    margin-bottom: 10px;
}

.new-chat-btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.sidebar-footer {
    padding: 10px 12px;
}

.user-info {
    font-size: 11px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-link {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 5px;
    margin-bottom: 6px;
    gap: 6px;
}

.admin-link svg {
    width: 12px;
    height: 12px;
}

.auth-info {
    font-size: 10px !important;
    padding: 5px 8px !important;
    margin-bottom: 6px !important;
}

.git-workspace {
    margin-bottom: 8px;
    padding: 6px 8px;
}

.git-workspace-label {
    font-size: 8px;
}

.git-workspace-state {
    font-size: 9px;
}

.git-branch-name {
    font-size: 10px;
}

.settings-btn, .logout-btn {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 5px;
}

/* .session-item { */
/*     padding: 8px 12px; */
/*     font-size: 12px; */
/* } */
/* Compact sidebar - forced */
.sidebar { width: 220px; }
.sidebar-header { padding: 12px 15px !important; }
.sidebar-title { font-size: 15px !important; margin-bottom: 10px !important; }
.new-chat-btn { padding: 8px 10px !important; font-size: 12px !important; border-radius: 6px !important; }
.sidebar-footer { padding: 10px 12px !important; }
.user-info { font-size: 11px !important; margin-bottom: 6px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.admin-link { padding: 6px 8px !important; font-size: 11px !important; border-radius: 5px !important; margin-bottom: 6px !important; gap: 6px !important; }
.admin-link svg { width: 12px !important; height: 12px !important; }
.auth-info { font-size: 10px !important; padding: 5px 8px !important; margin-bottom: 6px !important; }
.git-workspace { margin-bottom: 8px !important; padding: 6px 8px !important; }
.git-workspace-label { font-size: 8px !important; }
.git-workspace-state { font-size: 9px !important; }
.git-branch-name { font-size: 10px !important; }
.git-workspace-dot { width: 5px !important; height: 5px !important; }
.settings-btn, .logout-btn { padding: 6px 8px !important; font-size: 11px !important; border-radius: 5px !important; }
/* .session-item { padding: 8px 12px !important; font-size: 12px !important; } */
.sessions-list { padding: 8px !important; }

/* Status bar - top right corner */
/* DEPRECATED: .status-bar { */
/* DEPRECATED:     position: absolute; */
/* DEPRECATED:     top: 10px; */
/* DEPRECATED:     right: 15px; */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     gap: 12px; */
/* DEPRECATED:     z-index: 10; */
/* DEPRECATED: } */
/* DEPRECATED: .status-item { */
/* DEPRECATED:     display: flex; */
/* DEPRECATED:     align-items: center; */
/* DEPRECATED:     gap: 4px; */
/* DEPRECATED:     font-size: 10px; */
/* DEPRECATED:     color: #666; */
/* DEPRECATED:     cursor: default; */
/* DEPRECATED:     padding: 3px 8px; */
/* DEPRECATED:     background: rgba(30, 30, 30, 0.8); */
/* DEPRECATED:     border-radius: 10px; */
/* DEPRECATED:     border: 1px solid rgba(60, 60, 60, 0.5); */
/* DEPRECATED: } */
/* DEPRECATED: .status-item .status-dot { */
/* DEPRECATED:     width: 6px; */
/* DEPRECATED:     height: 6px; */
/* DEPRECATED:     border-radius: 50%; */
/* DEPRECATED:     background: #666; */
/* DEPRECATED: } */
/* DEPRECATED: .status-item.ok .status-dot { background: #00d4aa; } */
/* DEPRECATED: .status-item.warning .status-dot { background: #ffa500; } */
/* DEPRECATED: .status-item.error .status-dot { background: #ff4444; } */
/* DEPRECATED: .status-item .status-text { opacity: 0.8; } */
/* DEPRECATED: .chat-container { position: relative; } */
/* DEPRECATED:  */
/* DEPRECATED: /* Resizable sidebar */ */
.sidebar {
    min-width: 160px !important;
    max-width: 400px !important;
    transition: none !important;
}
.sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    z-index: 100;
    background: transparent;
}
.sidebar-resize-handle:hover,
.sidebar-resize-handle.dragging {
    background: rgba(0, 150, 255, 0.3);
}
.sidebar { position: relative; }
body.resizing { cursor: col-resize !important; user-select: none !important; }
body.resizing * { cursor: col-resize !important; }

/* ═══════════════════════════════════════════════════════════════
   CHAT MESSAGES OVERRIDE - Refined Terminal Aesthetic
   ═══════════════════════════════════════════════════════════════ */

.messages-area {
    background: #0d0d0f !important;
    padding: 24px !important;
}

.message {
    margin-bottom: 24px !important;
}

.message-header {
    font-family: 'JetBrains Mono', 'SF Mono', monospace !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    opacity: 0.5 !important;
}

.message.user .message-header {
    color: #94a3b8 !important;
}

.message.assistant .message-header {
    color: #5eead4 !important;
}

.message-content {
    background: #16161a !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.message.user .message-content {
    background: #1c1c22 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 2px solid #64748b !important;
}

.message.assistant .message-content {
    background: #131316 !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-left: 2px solid rgba(45, 212, 191, 0.5) !important;
}

.message-content pre {
    background: #0a0a0c !important;
    padding: 16px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 13px !important;
}

.message-content code {
    background: #0a0a0c !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 13px !important;
    color: #e2e8f0 !important;
}

.message-content pre code {
    background: none !important;
    padding: 0 !important;
}

.message-content blockquote {
    border-left: 3px solid #475569 !important;
    background: #0a0a0c !important;
    color: #94a3b8 !important;
}

.message-content table {
    background: #0a0a0c !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.message-content th {
    background: #16161a !important;
    color: #e2e8f0 !important;
}

.message-content a {
    color: #5eead4 !important;
}

.empty-state {
    color: #475569 !important;
}

.empty-state h2 {
    color: #64748b !important;
}

.empty-state p {
    color: #475569 !important;
}

/* ═══════════════════════════════════════════════════════════════
   DAISYUI CHAT BUBBLE OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

/* Messages area background */
#messages-area {
    background: #0d0d0f !important;
}

/* All chat bubbles - base style */
.chat-bubble {
    background: #1a1a1f !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    max-width: 85% !important;
}

/* User messages (chat-end) */
.chat-end .chat-bubble,
.chat-bubble-primary {
    background: #1e1e26 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Assistant messages (chat-start) */
.chat-start .chat-bubble:not(.chat-bubble-primary) {
    background: #141418 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-left: 2px solid rgba(45, 212, 191, 0.4) !important;
}

/* Avatar backgrounds */
.chat-image .bg-primary {
    background: #2d2d3a !important;
    color: #94a3b8 !important;
}

.chat-image .bg-accent {
    background: #1a2e2a !important;
    color: #5eead4 !important;
}

/* Fix text colors inside bubbles */
.chat-bubble .text-primary-content,
.chat-bubble .text-white,
.chat-bubble.text-primary-content {
    color: #e2e8f0 !important;
}

/* Prose inside assistant bubbles */
.chat-bubble .prose {
    color: #e2e8f0 !important;
}

.chat-bubble .prose code {
    background: #0a0a0c !important;
    color: #e2e8f0 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.chat-bubble .prose pre {
    background: #0a0a0c !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
}

.chat-bubble .prose a {
    color: #5eead4 !important;
}

/* Chat header */
.chat-header {
    color: #64748b !important;
}

/* Subscription Usage Widget */
#usage-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-gauges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.usage-gauge {
    position: relative;
    width: 28px;
    height: 28px;
    cursor: help;
}

.usage-gauge .circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.usage-gauge .circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.usage-gauge .circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.usage-gauge .usage-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
}

/* Tooltip styling */
.usage-gauge:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}
}

/* Thinking/Reasoning block */
.thinking-block {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.thinking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.15);
    cursor: pointer;
    user-select: none;
}

.thinking-header:hover {
    background: rgba(139, 92, 246, 0.25);
}

.thinking-icon {
    font-size: 14px;
}

.thinking-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.9);
    flex: 1;
}

.thinking-toggle {
    font-size: 10px;
    color: rgba(139, 92, 246, 0.6);
    transition: transform 0.2s;
}

.thinking-block.collapsed .thinking-toggle {
    transform: rotate(-90deg);
}

.thinking-content {
    padding: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
}

.thinking-block.collapsed .thinking-content {
    display: none;
}
