:root {
    --primary-blue: #0a9396;
    --accent-teal: #94d2bd;
    --light-bg-blue: #f0f8ff;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Anek Bangla', sans-serif;
}

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: var(--header-height);
    background: linear-gradient(135deg, 
        rgba(10, 147, 150, 0.95),
        rgba(0, 180, 216, 0.95)
    );
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(10, 147, 150, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    top: 10px;
    height: 70px;
    background: linear-gradient(135deg, 
        rgba(10, 147, 150, 0.98),
        rgba(0, 180, 216, 0.98)
    );
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link.active:hover::before {
    width: 60%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.login-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 147, 150, 0.1),
        rgba(0, 180, 216, 0.1)
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.login-button i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(0) rotate(0);
}

.login-button:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 
        0 8px 20px rgba(10, 147, 150, 0.2),
        0 2px 4px rgba(10, 147, 150, 0.1);
}

.login-button:hover::before {
    transform: translateX(0);
}

.login-button:hover i {
    transform: translateX(2px) rotate(10deg);
    color: var(--accent-teal);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(10, 147, 150, 0.15),
        0 1px 2px rgba(10, 147, 150, 0.1);
}

@media (max-width: 968px) {
    .login-button {
        width: 90%;
        margin: 0.5rem auto;
        justify-content: center;
        padding: 0.8rem;
        background: white;
        font-size: 0.95rem;
    }
    .login-button:hover {
        transform: none;
        background: var(--accent-teal);
        color: white;
    }
    .login-button:hover i {
        font-size: 1rem;
        margin-right: 2px;
    }
    .login-button:active {
        transform: scale(0.98);
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .login-button {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
        margin: 0.3rem auto;
    }
    .login-button i {
        font-size: 1.1rem;
    }
}

.notice-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.notice-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.notice-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.notice-button:hover i {
    transform: translateY(-2px);
}

.user-menu {
    position: relative;
}

.dashboard-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.dashboard-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 147, 150, 0.1),
        rgba(0, 180, 216, 0.1)
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-button:hover::before {
    transform: translateX(0);
}

.dashboard-button i:first-child {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.dashboard-button i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dashboard-button:hover i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 0.8rem;
    min-width: 220px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 147, 150, 0.1);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-dropdown a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown a:hover {
    background: var(--light-bg-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.user-dropdown a:active {
    transform: translateX(5px) scale(0.98);
}

.logout-link {
    border-top: 1px solid rgba(10, 147, 150, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.8rem !important;
    color: #e74c3c !important;
}

.logout-link:hover {
    background: #ffebee !important;
    color: #dc3545 !important;
}

@media (max-width: 968px) {
    .header {
        top: 10px;
        width: 92%;
    }
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) + 20px);
        right: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, 
            rgba(10, 147, 150, 0.98),
            rgba(0, 180, 216, 0.98)
        );
        width: 300px;
        padding: 1.5rem;
        gap: 0.8rem;
        border-radius: 15px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(10, 147, 150, 0.2);
        backdrop-filter: blur(15px);
    }
    .nav-menu.active {
        right: 4%;
    }
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .login-button {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.8rem;
        background: white;
        border: none;
    }
    .login-button:hover {
        background: var(--accent-teal);
        color: white;
    }
    .notice-button {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
    }
    .notice-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
    }
    .nav-link.active::before {
        width: 20%;
    }
    .nav-link.active:hover::before {
        width: 40%;
    }
    .user-menu {
        width: 100%;
    }
    .dashboard-button {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        background: white;
    }
    .dashboard-button:hover {
        transform: none;
        box-shadow: none;
        background: var(--accent-teal);
        color: white;
    }
    .dashboard-button:hover i {
        color: white;
    }
    .user-dropdown {
        display: none;
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        border: none;
        min-width: 100%;
        transform: none;
    }
    .user-dropdown.active {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .user-dropdown a {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        justify-content: center;
    }
    .user-dropdown a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: none;
    }
    .user-dropdown a i {
        color: rgba(255, 255, 255, 0.9);
    }
    .logout-link {
        border-top: none;
        margin-top: 0.5rem;
        background: rgba(220, 53, 69, 0.15) !important;
        color: white !important;
    }
    .logout-link:hover {
        background: rgba(220, 53, 69, 0.25) !important;
        color: white !important;
    }
    .logout-link i {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    .dashboard-button i:last-child {
        transition: transform 0.3s ease;
    }
    .dashboard-button.active i:last-child {
        transform: rotate(180deg);
    }
    .dashboard-button {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
        gap: 0.5rem !important;
        background: white;
        transition: all 0.3s ease !important;
    }
    .dashboard-button i:last-child {
        transform: rotate(0deg);
        transition: transform 0.3s ease !important;
    }
    .dashboard-button.active {
        background: var(--accent-teal) !important;
        color: white !important;
    }
    .dashboard-button.active i {
        color: white !important;
    }
    .dashboard-button.active i:last-child {
        transform: rotate(180deg) !important;
    }
}

@media (max-width: 480px) {
    .header {
        width: 90%;
    }
    .header-container {
        padding: 0 1rem;
    }
    .logo img {
        height: 35px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .nav-menu {
        width: 85%;
        right: -100%;
    }
    .nav-menu.active {
        right: 7.5%;
    }
    .dashboard-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .dashboard-button i:first-child {
        font-size: 1rem;
    }
    .user-dropdown a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    .user-dropdown a i {
        font-size: 1rem;
    }
}

.dashboard-button.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(10, 147, 150, 0.2),
        0 2px 4px rgba(10, 147, 150, 0.1);
}

.dashboard-button.active i {
    color: white !important;
}

.dashboard-button.active::before {
    transform: translateX(0);
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
}

.user-dropdown {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(255, 255, 255, 0.95)
    );
    backdrop-filter: blur(10px);
}

.user-dropdown a {
    position: relative;
    overflow: hidden;
}

.user-dropdown a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 147, 150, 0.05),
        rgba(0, 180, 216, 0.05)
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.user-dropdown a:hover::before {
    transform: translateX(0);
}

@media (max-width: 968px) {
    .user-dropdown {
        background: transparent;
        backdrop-filter: none;
    }
    .dashboard-button.active {
        background: var(--accent-teal);
        color: white;
        transform: none;
        box-shadow: none;
    }
    .user-dropdown a {
        background: rgba(255, 255, 255, 0.9) !important;
        color: var(--primary-blue) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(10, 147, 150, 0.1);
        margin-bottom: 0.5rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .user-dropdown a i {
        color: var(--primary-blue) !important;
    }
    .user-dropdown a:hover {
        background: white !important;
        border-color: var(--primary-blue);
        transform: translateX(5px);
        color: var(--accent-teal) !important;
    }
    .user-dropdown a:hover i {
        color: var(--accent-teal) !important;
    }
    .logout-link {
        background: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(220, 53, 69, 0.2) !important;
        color: #dc3545 !important;
    }
    .logout-link i {
        color: #dc3545 !important;
    }
    .logout-link:hover {
        background: #fff1f0 !important;
        border-color: #dc3545 !important;
        color: #dc3545 !important;
    }
    .user-dropdown.active a {
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
    }
    .user-dropdown.active a:nth-child(1) { animation-delay: 0.1s; }
    .user-dropdown.active a:nth-child(2) { animation-delay: 0.2s; }
    .user-dropdown.active a:nth-child(3) { animation-delay: 0.3s; }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 480px) {
    .user-dropdown a {
        padding: 1rem;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    .user-dropdown a i {
        font-size: 1.1rem;
    }
    .dashboard-button.active {
        padding: 0.8rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 0.3rem !important;
    }
    .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }
    .notice-button {
        padding: 0.6rem 1rem !important;
        margin: 0.2rem 0 !important;
        font-size: 0.95rem;
    }
    .user-menu {
        width: 90% !important;
        margin: 0.3rem auto !important;
    }
    .dashboard-button {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
        gap: 0.5rem !important;
    }
    .user-dropdown {
        width: 100% !important;
        padding: 0.4rem !important;
    }
    .user-dropdown a {
        padding: 0.6rem 0.8rem !important;
        margin-bottom: 0.3rem !important;
        font-size: 0.95rem !important;
        gap: 0.6rem !important;
    }
    .user-dropdown a i {
        font-size: 1rem !important;
    }
    .user-dropdown.active a {
        animation: slideIn 0.25s ease forwards;
    }
    .user-dropdown.active a:nth-child(1) { animation-delay: 0.05s; }
    .user-dropdown.active a:nth-child(2) { animation-delay: 0.1s; }
    .user-dropdown.active a:nth-child(3) { animation-delay: 0.15s; }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.2rem !important;
        padding: 1rem !important;
    }
    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
    .notice-button {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
    .user-menu {
        width: 100% !important;
    }
    .dashboard-button {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
    .user-dropdown a {
        padding: 0.5rem 0.8rem !important;
        margin-bottom: 0.2rem !important;
        font-size: 0.9rem !important;
    }
    .user-dropdown a:last-child {
        margin-bottom: 0 !important;
    }
}