* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #efeae1;
    color: #2E2D29;
    min-height: 100vh;
    padding-top: 80px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 2px solid #3176ba;
    box-shadow: 0 2px 20px rgba(49, 118, 186, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #3d5073;
    white-space: normal;
    line-height: 1.2;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    color: #3d5073;
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.nav-link .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background-color: #3176ba;
    color: #ffffff;
}

.nav-item:hover .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.login-btn {
    background-color: #c03435;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn i {
    font-size: 1rem;
}

.login-btn:hover {
    background-color: #ea2528;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 52, 53, 0.3);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3d5073;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: #3176ba;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3176ba;
    padding-left: 24px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #3d5073;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f0f0f0;
    color: #3176ba;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: #3d5073;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.close-sidebar {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 30px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3176ba;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item {
    position: relative;
}

.sidebar-link {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link:hover {
    color: #3176ba;
    transform: translateX(5px);
}

.sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-link-content i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    min-width: 16px;
}

.sidebar-dropdown-icon.rotated {
    transform: rotate(180deg);
}

.sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 5px;
}

.sidebar-dropdown.active {
    max-height: 250px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #efeae1;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

.sidebar-dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-dropdown-item:hover {
    color: #3176ba;
    padding-left: 10px;
}

.sidebar-dropdown-item:last-child {
    border-bottom: none;
}

/* Header Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 15px;
    }
    
    .company-name {
        font-size: 0.9rem;
        word-break: break-word;
        white-space: normal;
    }

    .sidebar {
        width: 260px;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 40px;
        width: 40px;
    }

    nav {
        padding: 0 10px;
    }

    .sidebar {
        width: 250px;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .company-name {
        display: none;
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }
}