:root {
    --bg-dark: #020c1b;
    --bg-light: #0a192f;
    --text-main: #ccd6f6;
    --accent: #64ffda;
    --sidebar-w: 260px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

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

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-w);
    background-color: var(--bg-light);
    border-right: 1px solid #233554;
    display: flex;
    flex-direction: column;
}

.brand-header { padding: 20px; border-bottom: 1px solid #233554; }
.brand-header h2 { color: var(--accent); margin: 0; letter-spacing: 2px; }

.project-list { flex-grow: 1; overflow-y: auto; padding: 10px; }
.project-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    text-align: left;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}
.project-item:hover, .project-item.active {
    background: #112240;
    color: var(--accent);
}

/* Main Hub Styling */
.main-content { flex-grow: 1; display: flex; flex-direction: column; }
.hub-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #233554;
}

.pulse {
    height: 10px; width: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 8px var(--accent);
}

.chat-display { flex-grow: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { padding: 15px; border-radius: 8px; max-width: 80%; line-height: 1.5; }
.system { background: #112240; font-size: 0.8rem; border-left: 3px solid var(--accent); }
.agent { background: #1d2d44; align-self: flex-start; }

.input-area { padding: 20px; border-top: 1px solid #233554; }
.input-wrapper { display: flex; gap: 10px; margin-bottom: 10px; }
input {
    flex-grow: 1;
    background: #112240;
    border: 1px solid #233554;
    padding: 15px;
    border-radius: 5px;
    color: white;
}
.input-wrapper button {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 720px) {
    body { overflow: auto; }
    .app-container { min-height: 100vh; height: auto; flex-direction: column; }
    .sidebar { width: auto; border-right: 0; border-bottom: 1px solid #233554; }
    .project-list { display: flex; gap: 6px; overflow-x: auto; }
    .project-item { min-width: 180px; }
    .sidebar-footer { display: none; }
    .hub-header { align-items: flex-start; gap: 12px; }
    .status-indicator { font-size: 0.72rem; white-space: nowrap; }
    .chat-display { min-height: 40vh; padding: 18px; }
    .message { max-width: 92%; }
    .input-area { position: sticky; bottom: 0; background: var(--bg-dark); }
}

.legal-disclaimer { font-size: 0.7rem; text-align: center; color: #8892b0; }
.legal-disclaimer a { color: var(--accent); text-decoration: none; }
