/* Claude Code Main Layout */
.aiomatic-claude-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #1e1e1e;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    color: #cccccc;
    overflow: hidden;
}

/* Sidebar - Chat List */
.aiomatic-sidebar {
    width: 260px;
    min-width: 260px;
    background: #252526;
    border-right: 1px solid #3e3e42;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aiomatic-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aiomatic-new-chat-btn {
    background: #2a2a2a;
    border: 1px solid #3e3e42;
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
    width: 100%;
}

.aiomatic-new-chat-btn:hover {
    background: #3a3a3a;
}

.aiomatic-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.aiomatic-chat-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease;
}

.aiomatic-chat-item:hover {
    background: #2a2a2a;
}

.aiomatic-chat-item.active {
    background: #3a3a3a;
}

/* Main Chat Area */
.aiomatic-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat Messages Area */
.aiomatic-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #1e1e1e;
}

.aiomatic-message {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.aiomatic-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #2a2a2a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.aiomatic-message-content {
    flex: 1;
    min-width: 0;
}

.aiomatic-message.user .aiomatic-message-content {
    color: #cccccc;
}

.aiomatic-message.ai .aiomatic-message-content {
    color: #e5e5e5;
}

/* Input Area - Inline Submit & File Attachment */
.aiomatic-input-container {
    padding: 16px 24px;
    border-top: 1px solid #3e3e42;
    background: #1e1e1e;
}

.aiomatic-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border-color 0.15s ease;
}

.aiomatic-input-wrapper:focus-within {
    border-color: #4a4a4e;
}

.aiomatic-attach-btn {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiomatic-attach-btn:hover {
    background: #3a3a3a;
    color: #cccccc;
}

.aiomatic-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #cccccc;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    padding: 4px 8px;
    resize: none;
    max-height: 200px;
    overflow-y: auto;
}

.aiomatic-input-field::placeholder {
    color: #6e7681;
}

.aiomatic-send-btn {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiomatic-send-btn:hover:not(:disabled) {
    background: #3a3a3a;
    color: #cccccc;
}

.aiomatic-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar Styling */
.aiomatic-chat-list::-webkit-scrollbar,
.aiomatic-messages-container::-webkit-scrollbar {
    width: 8px;
}

.aiomatic-chat-list::-webkit-scrollbar-track,
.aiomatic-messages-container::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.aiomatic-chat-list::-webkit-scrollbar-thumb,
.aiomatic-messages-container::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 4px;
}

.aiomatic-chat-list::-webkit-scrollbar-thumb:hover,
.aiomatic-messages-container::-webkit-scrollbar-thumb:hover {
    background: #4a4a4e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aiomatic-sidebar {
        position: absolute;
        left: -260px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .aiomatic-sidebar.open {
        left: 0;
    }

    .aiomatic-messages-container {
        padding: 16px;
    }

    .aiomatic-input-container {
        padding: 12px 16px;
    }
}
