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

body {
    background-color: #f0f2f5;
    overflow-x: hidden;
}


/* Gilroy Fonts */
@font-face {
    font-family: 'Gilroy-Bold';
    src: url('./assets/fonts/gilroy_fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-SemiBold';
    src: url('./assets/fonts/gilroy_fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Medium';
    src: url('./assets/fonts/gilroy_fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Thin';
    src: url('./assets/fonts/gilroy_fonts/Gilroy-Thin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    color: #000;
}

/* Montserrat Fonts */
@font-face {
    font-family: 'Montserrat-Thin';
    src: url('./assets/fonts/Montserrat_fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #0D1B2A;
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a2332;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.user-profile img {
    width: 100%;
    max-width: 80px;
    height: auto;
}

.user-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a2332;
    font-size: 24px;
}

.user-info {
    text-align: center;
}

.welcome-text {
    font-size: 1.05vw;
    font-family: 'Gilroy-Bold', sans-serif;
    margin-bottom: 5px;
    color: white;
}

.role-text {
    font-size: .8vw;
    color: white;
    font-family: 'Montserrat-Thin', sans-serif
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: 'Gilroy-SemiBold', sans-serif;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item.active {
    background: #0052CC;
    color: white;
}

.nav-item img {
    width: 100%;
    max-width: 20px;
    height: auto;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    font-size: 13px;
    font-weight: 400;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    width: 100%;
    background: #9ca3af;
    color: #1a2332;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.logout-btn:hover {
    background: #b0b7c1;
}

.logout-btn .nav-icon {
    color: #1a2332;
}

.logout-btn img{
    width: 100%;
    max-width: 20px;
    height: auto;
}

/* Page Content Styles */
.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content h2 {
    color: #0D1B2A;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: 'Gilroy-SemiBold', sans-serif;
}


/* Main Wrapper */
.main-wrapper {
    margin-left: 220px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    background: #DFE1E5;
    color: #0D1B2A;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    height: 60px;
}

.navbar-left {
    flex: 1;
}

.current-date {
    font-size: .9vw;
    font-weight: 550;
    font-family: 'Gilroy-Bold', sans-serif;
}

.navbar-center {
    flex: 1;
    text-align: center;
}

.navbar-center img {
    width: 100%;
    max-width: 80px;
    height: auto;
}

.navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #D9D9D9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.icon-btn img {
    width: 100%;
    max-width: 20px;
    height: auto;
}



/* Content Area */
.content-area {
    flex: 1;
    padding: 20px;
    background: #ffffff;
    min-height: calc(100vh - 60px);
    position: relative;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: #0052cc00;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: grey;
}

/* When active - transform and change to white */
.hamburger-btn.active span {
    background: white;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.content-area {
    transition: opacity 0.3s ease;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 50px;
    color: #d32f2f;
}

.error-message h3 {
    margin-bottom: 10px;
}




/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        width: 80%;
        max-width: 300px;
        transform: translateX(-100%);
        left: 0;
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .top-navbar {
        padding-left: 70px;
    }

    .user-info,
    .nav-text {
        display: block;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 80%;
        max-width: 280px;
    }

    .top-navbar {
        padding: 12px 15px 12px 65px;
    }

    .navbar-left .current-date {
        font-size: 11px;
    }

    .navbar-center img {
        max-width: 60px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .icon-btn img {
        max-width: 16px;
    }
}

/* Responsive - Smaller Mobile */
@media (max-width: 480px) {
    .sidebar {
        width: 80%;
        max-width: 250px;
    }

    .hamburger-btn {
        width: 35px;
        height: 35px;
        top: 12px;
        left: 12px;
    }

    .hamburger-btn span {
        width: 20px;
        height: 2.5px;
    }

    .top-navbar {
        padding: 10px 12px 10px 55px;
    }

    .navbar-left .current-date {
        font-size: 9px;
    }

    .navbar-center img {
        max-width: 50px;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
    }

    .icon-btn img {
        max-width: 14px;
    }

    .welcome-text {
        font-size: 14px;
    }

    .role-text {
        font-size: 11px;
    }

    .content-area {
        padding: 15px;
    }
}




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

    .main-wrapper {
        margin-left: 60px;
    }

    .user-info,
    .nav-text {
        display: none;
    }

    .sidebar-header {
        justify-content: center;
        padding: 20px 10px;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .logout-btn .nav-text {
        display: none;
    }

    .navbar-left,
    .navbar-title {
        font-size: 11px;
    }
} */