/* ApexPrime Web Interface - Catppuccin Mocha Theme */

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

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

body {
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 14px;
}

/* Layout */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tabs {
    display: flex;
    background: #181825;
    border-bottom: 1px solid #313244;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    color: #6c7086;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    transition: all 0.2s;
}

.tab:hover {
    color: #cdd6f4;
    background: #1e1e2e;
}

.tab.active {
    color: #89b4fa;
    border-bottom-color: #89b4fa;
    background: #1e1e2e;
}

.tab.active.anti { color: #f5c2e7; border-bottom-color: #f5c2e7; }
.tab.active.gemini { color: #a6e3a1; border-bottom-color: #a6e3a1; }
.tab.active.chatgpt { color: #fab387; border-bottom-color: #fab387; }

/* Chat */
#chat {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

.m {
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 8px;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    width: 100%;
}

.m.user {
    background: #313244;
}

.m.assistant {
    background: #181825;
}

.m .agent {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.m .agent.george { color: #f9e2af; }
.m .agent.claude { color: #89b4fa; }
.m .agent.anti { color: #f5c2e7; }
.m .agent.gemini { color: #a6e3a1; }
.m .agent.chatgpt { color: #fab387; }

.m .content {
    white-space: pre-wrap;
}

.m .time {
    color: #6c7086;
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 10px;
}

/* Input Form */
#f {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #181825;
    border-top: 1px solid #313244;
}

#msg {
    flex: 1;
    background: #313244;
    color: #cdd6f4;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

#msg:focus {
    outline: 2px solid #89b4fa;
    outline-offset: -2px;
}

#f button {
    background: #89b4fa;
    color: #1e1e2e;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

#f button:hover {
    background: #74c7ec;
}

.hint {
    font-size: 11px;
    color: #6c7086;
    padding: 0 12px 8px;
    background: #181825;
}

/* Login Page */
.login-container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.login-form {
    background: #181825;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    min-width: 280px;
}

.login-form h1 {
    color: #89b4fa;
    margin-bottom: 20px;
    font-size: 24px;
}

.login-form input {
    background: #313244;
    color: #cdd6f4;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 16px;
}

.login-form button {
    background: #89b4fa;
    color: #1e1e2e;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.login-form .error {
    color: #f38ba8;
    margin-bottom: 16px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .tab { padding: 10px 14px; font-size: 12px; }
    .m { padding: 8px 12px; font-size: 13px; max-width: 92%; }
    #f { padding: 8px; }
    #msg { padding: 10px 12px; }
    #f button { padding: 10px 16px; }
}
