* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #E9F1FA;
    padding-top: 70px;
}

/* Main Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #001119;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px;
}
/* .search-bar {
    display:none;
} */
/* Search Bar */

 .search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
} 

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 8px;
}

.nav-link:hover {
    opacity: 1;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

@media(max-width: 480px){.auth-buttons{display:none;}}

.btn-login {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-signup {
    background: #FF6B6B;
    color: white;
}

.btn-signup:hover {
    background: #FF8E53;
}

/* Create Button */
/* .create-btn {
    background: #FF6B6B;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.create-btn:hover {
    background: #FF8E53;
    } 
    */

.create-dropdown {
    position: relative;
    margin-left: auto;
}

.create-btn {
    /* background: #FF6B6B; */
    background-color: dodgerblue;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.create-btn:hover {
    background: #001119;
}



.search-create-btn {
    /* background: #FF6B6B; */
    background-color: dodgerblue;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.search-create-btn:hover {
    background: #001119;
}


.create-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.create-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.create-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.create-option:first-child {
    border-radius: 8px 8px 0 0;
}

.create-option:last-child {
    border-radius: 0 0 8px 8px;
}

.create-option:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.create-option i {
    font-size: 16px;
    color: #6b7280;
}

/* Divider between options */
.create-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left: auto;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: none;
    background: none;
    cursor: pointer;
    color: white;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dropdown Menus */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #6b7280;
}

.dropdown-content {
    padding: 8px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.dropdown-link i {
    font-size: 16px;
    color: #6b7280;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.dropdown-link.logout {
    color: #dc2626;
}

.dropdown-link.logout i {
    color: #dc2626;
}

/* Mobile Elements */
.mobile-menu-btn,
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    margin-top: 10px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #001119;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.mobile-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mobile-user-details {
    color: white;
}

.mobile-user-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.mobile-user-email {
    font-size: 12px;
    opacity: 0.8;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}


 /* Mobile Search Overlay */
 .mobile-search {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #001119;
    padding: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.mobile-search.active {
    transform: translateY(0);
}

.mobile-search .search-bar {
    max-width: none;
    
}



/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-menu .nav-link span {
        display: none;
    }

    .nav-menu {
        gap: 16px;
    }


}

@media (max-width: 768px) {



    .header-content {
        padding: 0 16px;
    }

    .logo span {
        display: none;
    }

    .search-bar,
    .nav-menu,
    .create-btn {
        display: none;
    }
    
    .create-dropdown {
        display: none;
    }

    /* Add these options to mobile menu instead */
    .mobile-create-section {
        padding: 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin: 16px 0;
    }

    .mobile-create-title {
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .mobile-create-options {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }


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

    .mobile-search-btn {
        margin-right: auto;
    }

    /* Mobile layout adjustments */
    .mobile-menu,
    .mobile-search {
        display: block;
    }

    .user-menu {
        margin-left: 0;
    }

    .user-trigger span {
        display: none;
    }
}
