:root {
    --vork-blue: #0d6efd;
    --vork-dark-bg: #050505;
    --vork-panel-bg: #121212;
    --vork-border: #2c2c2c;
    --vork-text: #e0e0e0;
}

body {
    background-color: var(--vork-dark-bg);
    color: var(--vork-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

p {
    margin-bottom: 0 !important;
}

.chat-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 5rem;
    background-color: var(--vork-panel-bg);
}

.top-bar {
    background-color: var(--vork-panel-bg);
    border-bottom: 1px solid var(--vork-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    flex-shrink: 0;
}

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

.hideThinking {
	display: none;
}

.vork-logo {
    height: auto;
    width: auto;
    margin-right: 18px;
}

#bot-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.model-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#model-name {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.72rem;
    background: rgba(13, 110, 253, 0.12);
    color: var(--vork-blue);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.gear-dropdown {
    position: relative;
}

.gear-button {
    border-radius: 999px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-button i {
    font-size: 0.95rem;
}

.gear-dropdown .dropdown-menu {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0;
    min-width: 220px;
}

.gear-dropdown .dropdown-item {
    color: var(--vork-text);
    font-size: 0.9rem;
}

.gear-dropdown .dropdown-item span {
    flex-grow: 1;
}

.gear-dropdown .form-check-input {
    margin-top: 0;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--vork-panel-bg);
}

.chat-input {
    background-color: var(--vork-panel-bg);
    border-top: 1px solid var(--vork-border);
    padding: 20px 0 30px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.prompt-input-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.textarea-container {
    flex-grow: 1;
    background: #1c1c1c;
    border: 1px solid var(--vork-border);
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea-container:focus-within {
    border-color: var(--vork-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

#chat-textarea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 1rem;
    padding: 8px;
    max-height: 250px;
    min-height: 48px;
    line-height: 1.5;
    resize: none;
    width: 100%;
}

#send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--vork-blue);
    border: none;
    color: white;
    transition: transform 0.1s, background-color 0.2s;
}

#send:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

#send i {
    font-size: 1.2rem;
    margin-left: 2px;
}

.list-group-item-dark {
    background-color: #252525;
    border-color: #333;
    color: #aaa;
    margin-bottom: 4px;
}

.message-bubble {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    max-width: 85%;
}

.ai-message {
    background-color: #495057;
}

.user-message {
    background-color: #3d4a65;
    color: #fff;
}

.ai-action {
    border-left: 4px solid #0d6efd;
}

.ai-file-content {
    background-color: #343a40;
    border-left: 3px solid #6c757d;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Courier New', Courier, monospace;
}

.user-input-prompt {
    border-left: 4px solid #ffc107;
}

.permission-request {
    border-left: 4px solid #198754;
}

.hideThinking {
    display: none !important;
}

.icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

.vdu-log {
    all: revert;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.7rem !important;
    color: #33ff33 !important;
    background-color: #050505 !important;
    padding: 4px 10px !important;
    border-left: 2px solid #33ff33 !important;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
    display: inline-block;
    border-radius: 2px;
    text-transform: uppercase;
}

.vdu-log::before {
    content: "> ";
    opacity: 0.8;
}
