/* Modern User-Friendly Navbar Styling - High Contrast & Polished */

/* Main navbar - Clean structure with perfect centering */
.layout-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #E2E8F0 !important; /* Proper slate border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; /* Very subtle shadow for separation */
    padding: 0 1.5rem !important; /* Horizontal padding */
    height: 72px !important; /* Fixed height for consistent vertical alignment */
    display: flex !important;
    align-items: center !important;
}

/* Ensure inner container takes full height for alignment */
.navbar-nav-right {
    width: 100%;
    height: 100%;
}

/* === LEFT SIDE: USER LINK DISPLAY === */
.navbar-user-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.link-display-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: #F8FAFC; /* Crisp very light gray */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0; /* Subtle border definition */
    transition: all 0.2s ease;
    height: 40px; /* Fixed height for alignment */
}

.link-display-wrapper:hover {
    background-color: #ffffff;
    border-color: #CBD5E1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.link-prefix {
    color: #64748B; /* Slate 500 */
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 4px; /* Precise spacing */
    letter-spacing: -0.01em;
}

.link-username {
    color: #0F172A; /* Slate 900 - High Contrast */
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 12px;
}

/* Copy Button */
.btn-copy-link {
    background: transparent;
    border: none;
    color: #94A3B8; /* Slate 400 */
    padding: 4px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

.btn-copy-link.copied {
    color: #10B981 !important; /* Emerald 500 */
    background-color: rgba(16, 185, 129, 0.1);
}

/* === RIGHT SIDE: ACTIONS === */

/* Share Button - High Contrast Solid Style */
.btn-share-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Match height of link display */
    padding: 0 1.25rem;
    border-radius: 8px;
    background-color: #0F172A; /* Slate 900 - Dark solid BG */
    border: 1px solid #0F172A;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-share-profile:hover {
    background-color: #1E293B; /* Slate 800 */
    border-color: #1E293B;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-share-profile:active {
    transform: translateY(0);
}

.btn-share-profile i {
    font-size: 1.1em;
}

/* Avatar Styling - Clean & Rounded */
.navbar-dropdown .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important; /* Ensure perfect circle */
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #E2E8F0; /* Pseudo-border using shadow for outline */
    transition: all 0.2s ease;
    cursor: pointer;
}

.navbar-dropdown .avatar:hover {
    box-shadow: 0 0 0 2px #CBD5E1;
}

/* Dropdown Menu - Floating Card */
.navbar-dropdown .dropdown-menu {
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    margin-top: 0.75rem !important; /* Spacing from navbar */
    min-width: 240px !important;
    background-color: #ffffff !important;
}

.navbar-dropdown .dropdown-item {
    border-radius: 6px !important;
    padding: 0.625rem 1rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

.navbar-dropdown .dropdown-item:hover {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

/* Nav Item Spacing */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Remove default link styling from wrapper */
.navbar-nav-right a {
    text-decoration: none;
}
