/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
    background-color: #0B0B0B;
    height: 100vh;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    height: 40px;
    background-color: #0B0B0B;
    border-bottom: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    font-size: 16px;
    color: #E0B84C;
}

.app-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.top-bar-right {
    display: flex;
    gap: 8px;
}

.top-bar-btn {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.top-bar-btn:hover {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

/* Main Content Layout */
.main-content {
    display: flex;
    height: calc(100vh - 40px - 180px); /* Top bar + bottom panel */
    margin-top: 40px;
}

/* Left Sidebar - File Explorer */
.sidebar-left {
    width: 250px;
    background-color: #121212;
    border-right: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #2A2A2A;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
}

.sidebar-menu-btn {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

.file-tree {
    flex: 1;
    padding: 8px 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 2px 12px;
    gap: 6px;
    height: 28px;
    cursor: pointer;
    user-select: none;
}

.file-item:hover {
    background-color: #2A2A2A;
}

.file-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    color: #E0B84C;
}

.file-item.file .file-icon {
    color: #A0A0A0;
}

.file-name {
    font-size: 13px;
    color: #FFFFFF;
    flex: 1;
}

.file-children {
    margin-left: 16px;
}

/* Central Area - Editor */
.central-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0B0B0B;
}

.tab-bar {
    height: 36px;
    background-color: #121212;
    border-bottom: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
}

.tab {
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    height: 36px;
    background-color: transparent;
    border: none;
    border-right: 1px solid #2A2A2A;
    cursor: pointer;
    color: #A0A0A0;
    position: relative;
}

.tab.active {
    color: #FFFFFF;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #FFFFFF;
}

.tab-name {
    font-size: 13px;
}

.tab-close {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.tab-close:hover {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

.editor-content {
    flex: 1;
    background-color: #0B0B0B;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 14px;
    /* Empty as specified */
}

/* Right Sidebar - AI Assistant */
.sidebar-right {
    width: 380px;
    background-color: #121212;
    border-left: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
}

.ai-header {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    border-bottom: 1px solid #2A2A2A;
}

.ai-icon {
    font-size: 14px;
    color: #E0B84C;
}

.ai-title {
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
    flex: 1;
}

.ai-menu-btn {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

.ai-conversation {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-label {
    font-size: 11px;
    color: #6F6F6F;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-bubble {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
}

.system-message .message-bubble {
    background-color: #1A1A1A;
}

.user-message .message-bubble {
    background-color: #2A2A2A;
    margin-left: 40px;
}

.ai-message {
    border-left: 2px solid #E0B84C;
    padding-left: 12px;
    margin-left: -12px;
}

.ai-response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-response-icon {
    font-size: 14px;
    color: #E0B84C;
}

.ai-response-title {
    font-size: 12px;
    font-weight: 600;
    color: #E0B84C;
    text-transform: uppercase;
}

.ai-response-content {
    background-color: #1A1A1A;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.response-item {
    padding: 8px 0;
}

.response-text {
    font-size: 13px;
    color: #FFFFFF;
}

.generated-files {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2A2A2A;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 12px;
    color: #A0A0A0;
}

.file-generated {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.file-name {
    color: #FFFFFF;
}

.file-status {
    color: #6F6F6F;
}

.ai-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-apply {
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.btn-reject {
    background-color: transparent;
    color: #A0A0A0;
    border: 1px solid #2A2A2A;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    flex: 1;
}

.btn-reject:hover {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

/* AI Input Area */
.ai-input-area {
    border-top: 1px solid #2A2A2A;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-input {
    flex: 1;
    background-color: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 8px 16px;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
}

.ai-input::placeholder {
    color: #6F6F6F;
}

.input-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-btn {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.input-btn:hover {
    background-color: #2A2A2A;
}

.send-btn {
    background-color: #2A2A2A;
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Bottom Panel - Terminal */
.bottom-panel {
    height: 180px;
    background-color: #121212;
    border-top: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
}

.terminal-tabs {
    height: 36px;
    display: flex;
    border-bottom: 1px solid #2A2A2A;
}

.terminal-tab {
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #A0A0A0;
    cursor: pointer;
    border-right: 1px solid #2A2A2A;
}

.terminal-tab.active {
    color: #FFFFFF;
    background-color: #1A1A1A;
}

.terminal-content {
    flex: 1;
    padding: 12px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 12px;
    color: #A0A0A0;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: #E0B84C;
    font-weight: bold;
}

.terminal-command {
    color: #FFFFFF;
}

.terminal-text {
    color: #A0A0A0;
}
