:root {
    --bg-primary: #303031;
    --bg-secondary: #252526;
    --bg-tertiary: #1e1e1f;
    --accent-blue: #134081;
    --dark-blue: #0a2852;
    --text-main: #f8d8b0;
    --text-muted: #8e9297;
    --header-height: 48px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow: hidden;
}

.app-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Forces everything onto one line */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Server Sidebar */
.server-sidebar {
    width: 72px;
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    flex-shrink: 0;
}

.server-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-radius 0.2s;
}

.server-icon:hover {
    border-radius: 30%;
    background-color: var(--accent-blue);
}

.separator {
    width: 32px;
    height: 2px;
    background-color: var(--bg-secondary);
    margin-bottom: 8px;
}

/* Channel Sidebar */
.channel-sidebar {
    width: 240px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 15px;
}

.channel-list {
    flex: 1;
    padding: 10px 8px;
}

.category {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    margin: 18px 0 8px 8px;
}

.channel {
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

.channel:hover, .channel.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.user-control {
    height: 52px;
    background-color: #202021;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.user-avatar, .message-avatar, .member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.status {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chat Area */
.chat-area {
    flex: 1 !important; /* Grows to fill available space */
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    min-width: 0 !important; /* Allows it to shrink so sidebar fits */
}
.chat-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hash {
    color: var(--text-muted);
    font-size: 24px;
    margin-right: 8px;
}

.message-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    padding: 2px 16px;
    margin-bottom: 15px;
}

.author {
    font-weight: bold;
    margin-right: 8px;
}

.timestamp {
    font-size: 12px;
    color: var(--text-muted);
}

.input-area {
    padding: 0 16px 24px 16px;
    background-color: var(--bg-primary);
}

.input-area input {
    width: 100%;
    background-color: #383a40; 
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: #dbdee1;
    outline: none;
}

/* Member Sidebar */
.member-sidebar {
    width: 240px !important;
    background-color: var(--bg-secondary);
    flex-shrink: 0 !important; /* Prevents it from disappearing/dropping */
    display: flex;
    flex-direction: column;
    padding: 24px 8px;
}

.member-group {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.member-item:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Paste this at the very end of style.css */

.message-list {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Tighter message spacing */
    overflow-y: auto;
}

.input-area form {
    width: 100%;
}

.input-area input:focus {
    outline: none;
    background-color: #404042; /* Slightly lighter on focus */
}

/* Ensure the newest messages are smooth when they appear */
#message-list {
    scroll-behavior: smooth;
}

.message:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* This targets the container for your logo */
.axon-home {
    background-color: transparent !important; /* Removes the default blue/grey bg */
    overflow: hidden; /* Clips the image into a circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* This targets the actual image inside the container */
.axon-home img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the circle perfectly */
}

/* Optional: Make it zoom slightly when you hover, like Discord */
.axon-home:hover img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Container for the logo and the word 'Axon' */
.brand-container {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px; /* Space between logo and text */
    height: 48px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* Styling the Axon Logo in the header */
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px; /* Slightly rounded corners for a clean look */
    object-fit: contain;
}

/* Styling the text to match the gold in your logo */
.brand-name {
    font-size: 16px;
    font-weight: 800;
    color: #f8d8b0; /* Your gold hex code */
    text-transform: uppercase;
    letter-spacing: 1px;
}
