
:root {
    --light-bg: #f4f6f8;
    --primary-text: #212529;
    --primary-blue: #007bff;
    --primary-green: #28a745;
    --primary-red: #dc3545;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-bg);
    color: var(--primary-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--container-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-blue);
}

.container {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

.main-content {
    flex: 3;
    background-color: var(--container-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    overflow-y: auto;
}

.right-chat-panel {
    flex: 2;
    background-color: var(--container-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.post-creation form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-creation input,
.post-creation textarea {
    background-color: #fff;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem;
    font-size: 1rem;
}

.post-creation button {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-creation button:hover {
    background-color: #0056b3;
}

.stock-chart-container {
    margin-bottom: 2rem;
}

.chart-controls {
    margin-bottom: 1rem;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.chat-input {
    display: flex;
    margin-top: 1rem;
}

.chat-input input {
    flex: 1;
    background-color: #fff;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    padding: 0.5rem;
}

.chat-input button {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Remove left sidebar for focus on main content and chat */
.left-sidebar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .right-chat-panel {
      min-height: 400px;
    }
}
