/* Navigation Bar Design - Exact Figma Match */

/* Reset for navbar only */
.navbar-design * {
    box-sizing: border-box;
}

/* Main Navigation Bar */
.navbar-design {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* Search Bar - Exact Figma Match */
.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    background: #484848;
    border: none;
    border-radius: 3px;
    padding: 0 10px 0 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #fff;
    outline: none;
}

.search-input::placeholder {
    color: #ccc;
    font-family: 'Poppins', sans-serif;
}

.search-button {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 37px;
    height: 40px;
    background: #f7f7f7;
    border: none;
    border-radius: 0 3px 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon {
    color: black;
    font-size: 12px;
}

/* Navigation Links - Exact Figma Match */
.navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
}

.nav-link.active {
    color: #333;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ccc;
}

/* User Controls - Exact Figma Match */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.control-icon:hover {
    background: #555;
    color: white;
}

.user-profile {
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.user-profile:hover {
   
    color: #333 !important;
}

.profile-image {
    width: 60px;
    /* height: 60px !important; */
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid;
}

.dropdown-arrow {
   color: #333 !important;
    font-size: 16px;
    margin-left: 6px;       /* space from text */
    transition: transform 0.3s ease, color 0.3s ease;
    vertical-align: middle; /* keeps it aligned with text */
    cursor: pointer;
}
/* On hover */
.dropdown-arrow:hover {
    color: #333 !important; /* darker for hover */
}

/* Rotate when active/open */
.dropdown-arrow.open {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #949494;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown .dropdown-header {
    padding: 16px 20px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 60px !important;
}

.profile-dropdown .user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 2px solid #e0e0e0 !important;
}

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

.profile-dropdown .user-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.profile-dropdown .user-name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 2px !important;
}

.profile-dropdown .user-email {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

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

.profile-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    /* color: #fff !important; */
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-left: none !important;
    min-height: 48px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.profile-dropdown .dropdown-item:hover {
    background: #949494 !important;
    color: #333 !important;
    transform: none !important;
}

.profile-dropdown .dropdown-item i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.profile-dropdown .dropdown-item span {
    flex: 1 !important;
    line-height: 1.4 !important;
    display: inline-block !important;
}

.profile-dropdown .dropdown-item:hover i {
    color: #e8e8e8 !important;
}

.dropdown-item-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #dc3545;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #fff5f5;
    color: #dc3545;
    border-left-color: #dc3545;
    transform: translateX(2px);
}

.logout-btn i {
    color: #dc3545;
    transition: all 0.3s ease;
}

.logout-btn:hover i {
    color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-design {
        padding: 0 15px;
    }
    
    .navbar-search {
        display: none;
    }
    
    .navbar-links {
        display: none;
    }
    
    .navbar-controls {
        gap: 10px;
    }
    
    .control-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #3a7ea3;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links .nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Body padding to account for fixed navbar */
body {
    padding-top: 70px;
}
