:root {
    /* Primary brand colors pulled from the QW1 logo */
    --primary-teal: #2A7B7E; 
    --primary-teal-hover: #1F5A5C;
    --bg-light: #F4F7F6;
    --sidebar-bg: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border-color: #E2E8E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.logo {
    width: 80%; /* Shrinks the logo so it is slightly smaller than the sidebar */
    height: auto;
    display: block;
    margin: 20px auto; /* The 'auto' on the left and right perfectly centers it */
    padding-bottom: 20px;
}

.logo {
    width: 100%; /* Forces the logo to be exactly the width of the container */
    max-width: 260px; /* Locks it precisely to the sidebar's width */
    height: auto;
    display: block; /* Removes any weird invisible spacing at the bottom */
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto; /* This turns on the scrollbar */
    flex: 1; /* This pushes the menu to take up the rest of the sidebar height */
}

/* Custom Sleek Scrollbar for the Sidebar */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}
.nav-menu::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    text-align: left;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.nav-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-teal);
}

.nav-btn.active {
    background-color: #EAF4F4;
    color: var(--primary-teal);
    border-left-color: var(--primary-teal);
    font-weight: bold;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: var(--sidebar-bg);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.top-bar h2 {
    color: var(--primary-teal);
}

#app-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.view-panel {
    background-color: var(--sidebar-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}