/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light Mode Styles */
.navbar-light {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.navbar-light .navbar-brand,
.navbar-light .nav-link {
    color: #212529;
    transition: color 0.3s ease;
}

.navbar-light .navbar-toggler {
    border-color: #dee2e6;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .navbar {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #404040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .nav-link {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: #404040;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #ffffff;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #404040;
    color: #ffffff;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

.nav-link.active {
    color: var(--bs-primary) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--bs-primary);
}

/* Token Display Enhancement */
.token-display {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    padding: 8px 15px;
    border-radius: 20px;
    color: #000;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.token-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.token-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.token-display i {
    color: #ff8c00;
    margin-right: 0.25rem;
    animation: coinRotate 4s infinite;
}

@keyframes coinRotate {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Upgrade Pro Button Enhancement */
.subscription-btn {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: white !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.subscription-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    background: linear-gradient(45deg, #5d54e5, #8c4aed);
    color: white !important;
}

.subscription-btn i {
    color: #ffd700;
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* User Profile */
.user-profile .dropdown-toggle::after {
    display: none;
}

.user-profile .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Dark Mode Toggle Button */
#darkModeToggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    margin-left: 10px;
}

#darkModeToggle:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

#darkModeToggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Dark Mode Toggle Button - Dark Theme */
[data-bs-theme="dark"] #darkModeToggle {
    border-color: #6d6aef;
    color: #6d6aef;
    background: transparent;
}

[data-bs-theme="dark"] #darkModeToggle:hover {
    background: rgba(109, 106, 239, 0.1);
}

[data-bs-theme="dark"] #darkModeToggle i {
    color: #6d6aef;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-link.active::after {
        left: 0;
        right: 0;
    }
    
    .token-display {
        margin: 0.5rem 0;
        display: inline-block;
    }
    
    .subscription-btn {
        margin: 0.5rem 0;
        display: inline-block;
    }
} 