@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary: #1158b8;
    --primary-light: #2169c9;
    --primary-dark: #0d4696;
    --primary-transparent: rgba(17, 88, 184, 0.1);
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #c9c6c5;
    --gray-icon: #939090;
    --gray-text: #797676;
    --text-dark: #212529;
    --text-light: #6c757d;
}

/* Reset CSS */
* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1;
    font-size: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    background-color: var(--gray-100);
}

ol,
ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

header {
    flex: 0 0 69px;
    width: 100%;
    height: 69px;
    background-color: var(--white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.header-left {
    height: 100%;
    width: 25%;
    max-width: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 .75rem;
}

.logo {
    height: 32px;
    width: auto;
}

.header-left h2 {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header-center {
    height: 100%;
    flex-grow: 1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.header-right {
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 1.5rem;
}

.header-right .separator {
    width: 1.5px;
    background-color: var(--gray-200);
    height: 20px;
    margin: 0 10px;

}

.notification-dropdown,
.profile-dropdown {
    height: 100%;
    display: flex;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    color: var(--gray-300);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem;
    height: 36px;
    display: flex;
    align-items: center;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    padding: 0.4rem;
    height: 36px;
    display: flex;
    align-items: center;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--gray-300);
}

.username {
    font-size: 0.8rem;
}

.page-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

aside {
    flex: 0 0 256px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    overflow: hidden;
}

.nav-items {
    height: 100%;
    padding: .75rem;
    overflow-y: auto;
}

/* Modern scrollbar styles */
.nav-items::-webkit-scrollbar {
    width: 6px;
}

.nav-items::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 8px;
}

.nav-items::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 8px;
}

.nav-items::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* For Firefox */
.nav-items {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--primary-transparent);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.nav-item.active i {
    color: var(--white);
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 400;
}

main {
    flex: 1;
    background-color: var(--gray-200);
    overflow-y: auto;
    padding: 1.5rem;
}

main .content-title {
    padding-bottom: .75rem;
    font-size: 1.35rem;
    font-weight: 600;
}

main .content-subtitle {
    font-size: 0.75rem;
    color: var(--gray-text);
    padding-bottom: 1rem;
    font-weight: 300;
}

.content {
    margin-top: .5rem;
}

.card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }

    aside {
        flex: 0 0 auto;
        width: 100%;
    }

    .username {
        display: none;
    }

    .header-left {
        width: auto;
    }
}

@media screen and (max-width: 480px) {
    .page {
        padding: 0.25rem;
    }

    header,
    aside,
    main {
        padding: 0.5rem;
    }
}