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

body {
    font-family: Arial, sans-serif;
    background-color: #111319;
    color: white;
    margin: 0;
    padding: 0;
}

/* Layout */
.layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 250px;
    background-color: #19191B;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #3a3a55;
}

.sidebar .logo img {
    max-width: 90%;
    max-height: 30px;
    height: auto;
    object-fit: contain;
}

.sidebar .nav-links {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar .nav-links li {
    margin: 10px 0;
}

.sidebar .nav-links a {
    display: block;
    padding: 10px 20px;
    color: #d4d4d6;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.sidebar .nav-links a:hover,
.sidebar .nav-links .active {
    background-color: #333D84;
    color: #ffffff;
}

/* Main Content */
.content {
    margin-left: 250px;
    flex: 1;
    background-color: #101012;
    display: flex;
    flex-direction: column;
    padding: 20px;
}


/* ✅ Top Navigation Bar (Aligned with Sidebar) */
.topbar {
    position: fixed;
    top: 0;
    left: 250px; /* Start after the sidebar */
    width: calc(100% - 250px);
    background: #101012;
    color: white;
    padding: 15px 20px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.topbar h1 {
    font-size: 24px;
}

#logoutButton {
    background-color: #FDDF94;
    color: #090A1A;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#logoutButton:hover {
    background-color: #e63e3e;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Placeholder */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #666;
}

.placeholder h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.placeholder p {
    font-size: 16px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar button {
        padding: 8px 12px;
        font-size: 12px;
    }
}
