/* Light Mode (padrão) */
.elegant-navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.elegant-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2d3748;
    transition: color 0.3s ease;
}

.elegant-navbar .navbar-brand:hover {
    color: #4f46e5;
}

.elegant-navbar .nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.elegant-navbar .nav-link:hover {
    color: #4f46e5;
    background: #f1f5f9;
}

.elegant-navbar .nav-link.active {
    color: #4f46e5;
    background: #eef2ff;
}

.btn-logout {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-register {
    background: #4f46e5;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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(45, 55, 72, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-theme-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-theme-toggle:active {
    transform: translateY(-1px) scale(1.02);
}

.theme-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.btn-theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* Dark Mode */
[data-bs-theme="dark"] .elegant-navbar {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .elegant-navbar .navbar-brand {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .elegant-navbar .navbar-brand:hover {
    color: #818cf8;
}

[data-bs-theme="dark"] .elegant-navbar .nav-link {
    color: #94a3b8;
}

[data-bs-theme="dark"] .elegant-navbar .nav-link:hover {
    color: #e0e7ff;
    background: #334155;
}

[data-bs-theme="dark"] .elegant-navbar .nav-link.active {
    color: #c7d2fe;
    background: #312e81;
}

[data-bs-theme="dark"] .btn-logout {
    border-color: #475569;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .btn-logout:hover {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fca5a5;
}

[data-bs-theme="dark"] .btn-register {
    background: #6366f1;
}

[data-bs-theme="dark"] .btn-register:hover {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

[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(241, 245, 249, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .btn-theme-toggle {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

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

[data-bs-theme="dark"] .btn-theme-toggle:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}