/* Header Component CSS for Caretrip */
/* Specific styles for header component */

.header {
    background-color: white;
    color: #2c3e50;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e1e8ed;
}

/* Header spacer to create space below fixed header */
.header-spacer {
    height: 80px;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo-text i {
    margin-right: 10px;
    color: #3498db;
}

/* Navigation */
.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link i {
    font-size: 1rem;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.login-btn {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

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

/* ========================================
   USER DROPDOWN STYLES
   ======================================== */

.ct-user-dropdown {
    position: relative;
    display: none;
}

.ct-user-profile-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.ct-user-profile-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.ct-user-profile-btn i.fa-user-circle {
    font-size: 18px;
    color: #3498db;
}

.ct-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ct-user-dropdown.show .ct-dropdown-arrow {
    transform: rotate(180deg);
}

.ct-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    min-width: 180px !important;
    z-index: 9999 !important;
    margin-top: 4px !important;
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.2s ease !important;
}

.ct-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.ct-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.ct-dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

.ct-dropdown-item i {
    font-size: 14px;
    width: 16px;
}

.ct-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.ct-logout-item {
    color: #e74c3c !important;
}

.ct-logout-item:hover {
    background: #ffeaea !important;
    color: #c82333 !important;
}

/* Force dropdown visibility - Debug */
#userDropdownMenu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .user-menu {
        gap: 10px;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
