/* Short.io.vn - Custom Styles */

/* Primary Color */
:root {
    --primary-color: #ff9500;
    --primary-hover: #e6850e;
}

.text-primary { 
    color: var(--primary-color); 
}

.bg-primary { 
    background-color: var(--primary-color); 
}

/* Navbar scroll styling */
#navbar {
    background-color: transparent;
    border-bottom-color: transparent;
}

#navbar.scrolled {
    background-color: white;
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: #374151;
}

#navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

#navbar.scrolled .nav-btn {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

#navbar.scrolled .nav-btn:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

/* User dropdown improvements */
.user-dropdown-group {
    position: relative;
}

.user-dropdown-group:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0px;
    width: 14rem;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    z-index: 50;
}

/* .user-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #0f172a;
} */

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border-radius: 0.25rem;
    margin: 0.125rem;
}

.user-dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item.logout:hover {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.1);
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        width: 12rem;
        right: -1rem;
    }
    
    .user-dropdown-menu::before {
        right: 2rem;
    }
}
