/* ===== BOOTSTRAP NAVBAR CUSTOMIZATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(13, 19, 33, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(7, 245, 159, 0.1);
}

.navbar-brand img {
    height: 40px;
    transition: opacity 0.3s ease;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-green) !important;
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
}

[data-theme="dark"] .dropdown-menu {
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

[data-theme="dark"] .dropdown-item {
    color: white;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-theme-toggle {
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.btn-theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), #05d18a);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.btn-theme-toggle i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn-theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(7, 245, 159, 0.4),
                inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.btn-theme-toggle:hover::before {
    opacity: 1;
}

.btn-theme-toggle:hover i {
    color: white;
    transform: rotate(-15deg) scale(1.1);
}

.btn-theme-toggle:active {
    transform: scale(0.95);
}

[data-theme="dark"] .btn-theme-toggle {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-theme-toggle::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

[data-theme="dark"] .btn-theme-toggle:hover {
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.btn-register {
    background: var(--primary-green) !important;
    color: var(--text-dark) !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-register:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-login {
    border: 2px solid var(--text-dark);
    color: var(--text-dark) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--text-dark);
    color: white !important;
}

[data-theme="dark"] .btn-login {
    border-color: white;
    color: white !important;
}

[data-theme="dark"] .btn-login:hover {
    background: white;
    color: var(--text-dark) !important;
}

/* Navbar Toggler Dark Mode */
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .navbar-collapse {
        background: #1a1a1a;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .nav-link:hover {
        background: rgba(7, 245, 159, 0.1);
    }

    .btn-login,
    .btn-register {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .btn-theme-toggle {
        margin-top: 0;
        width: 50px;
        height: 50px;
    }

    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ===== USER MENU LINK (NO BUTTON STYLE) ===== */
.user-menu-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-menu-link:hover {
    color: var(--primary-green) !important;
}

.user-menu-link i {
    font-size: 1.2rem;
}

[data-theme="dark"] .user-menu-link {
    color: white !important;
}

[data-theme="dark"] .user-menu-link:hover {
    color: var(--primary-green) !important;
}

/* Remove dropdown arrow default styles */
.user-menu-link.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Dropdown item danger (cerrar sesión) */
.dropdown-item.text-danger {
    color: #dc2626 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

[data-theme="dark"] .dropdown-item.text-danger:hover {
    background-color: rgba(220, 38, 38, 0.1) !important;
}
