/* ===== NAVBAR STYLES EXTRACTED ===== */

/* Navbar Styles */
body.dark-mode .navbar {
    background: linear-gradient(135deg, #16162c 0%, #1a1a2e 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar .nav-link,
body.dark-mode .navbar .user-name,
body.dark-mode .navbar .btn-outline-danger,
body.dark-mode .navbar .btn-outline-secondary,
body.dark-mode .navbar .btn {
    color: #e2e8f0 !important;
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .navbar .btn-outline-danger:hover,
body.dark-mode .navbar .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Light Mode Navbar */
.navbar .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.navbar-brand span {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .navbar .btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

body.dark-mode .navbar .nav-link:hover {
    color: #a5b4fc !important;
}

body.dark-mode .navbar,
body.dark-mode .bg-white {
    background: linear-gradient(135deg, #16162c 0%, #1a1a2e 100%) !important;
}

/* Light Mode Navbar */
body:not(.dark-mode) .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    color: #2d3561 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .navbar .nav-link,
body:not(.dark-mode) .navbar .btn,
body:not(.dark-mode) .navbar .user-name {
    color: #4a5568 !important;
}

.navbar .nav-link {
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

body:not(.dark-mode) .navbar .nav-link:hover {
    color: #667eea !important;
}

body.dark-mode .navbar .nav-link:hover {
    color: #a5b4fc !important;
}

/* User Name Styles */
.navbar .nav-item .user-name {
    color: #2d3561 !important;
    font-weight: 600;
}

/* Logo Styles */
body:not(.dark-mode) .dem-invoice-logo {
    color: #667eea !important;
    background: none;
    font-weight: 700;
}

/* Navbar Toggler */
body:not(.dark-mode) .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(102,126,234,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

body.dark-mode .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(165,180,252,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 8px 12px;
    background-color: transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

body.dark-mode .navbar-toggler {
    border: 2px solid rgba(165, 180, 252, 0.3);
}

body.dark-mode .navbar-toggler:hover {
    background: rgba(165, 180, 252, 0.1);
    border-color: rgba(165, 180, 252, 0.5);
}

/* Premium Badge & Subscribe Button */
.custom-badge.premium {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    animation: pulseGlow 2s infinite;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.animated-button.subscribe-button {
    border: 2px solid #fbbf24;
    background: transparent;
    color: #fbbf24;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.animated-button.subscribe-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    border-color: transparent;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

/* Language Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 1000;
  min-width: 140px;
}

.lang-dropdown-menu .dropdown-item {
  padding: 8px 16px;
  color: #333;
  font-weight: 500;
  text-align: left;
}

.lang-dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #000;
}

.lang-dropdown-wrapper.show .lang-dropdown-menu {
  display: block;
}

/* Language Dropdown Dark Mode Support */
.lang-dropdown {
    background-color: #ffffff;
    color: #2d3561;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .lang-dropdown {
    background-color: rgba(30, 30, 50, 0.8);
    color: #e2e8f0;
    border-color: rgba(165, 180, 252, 0.3);
}

body.dark-mode .lang-dropdown .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .lang-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #ffffff;
}

/* Pill Button Styles */
.pill-button {
    min-width: 10em;
    height: 3.2em;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 1.5em;
    color: #2d3561;
    text-decoration: none;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.pill-button::before,
.pill-button.pill-logout::before,
.pill-button.pill-delete-account::before {
    content: '';
    width: 0;
    height: 100%;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    z-index: -1;
}

.pill-button::before {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.pill-button.pill-logout::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.pill-button.pill-delete-account::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pill-button:hover::before,
.pill-button.pill-logout:hover::before,
.pill-button.pill-delete-account:hover::before {
    width: 100%;
}

.pill-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pill-button.pill-logout:hover {
    color: #ffffff;
}

.pill-button.pill-delete-account:hover {
    color: #ffffff;
}

body.dark-mode .pill-button {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(40, 40, 60, 0.9) 100%);
    color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .pill-button.pill-logout {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(50, 50, 70, 0.9) 100%);
    color: #e2e8f0;
}

body.dark-mode .pill-button.pill-delete-account {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(50, 50, 70, 0.9) 100%);
    color: #e2e8f0;
}

/* User Name Dropdown */
.user-name {
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu:not(.lang-dropdown-menu) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 8px;
    border-radius: 12px;
}

/* Enhanced Theme Switch */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    z-index: 2;
    background: white;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sun svg {
    position: absolute;
    top: 6px;
    left: 36px;
    z-index: 1;
    width: 24px;
    height: 24px;
    fill: #fbbf24;
}

.moon svg {
    fill: #60a5fa;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.sun svg {
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.moon svg {
    animation: tilt 5s ease-in-out infinite;
}

@keyframes tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.input:checked + .slider {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.input:focus + .slider {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.input:checked + .slider:before {
    transform: translateX(30px);
}

/* Mobile Responsive pentru Navbar */
@media (max-width: 768px) {
    .pill-button {
        min-width: 8em;
        height: 2.8em;
        font-size: 15px;
        padding: 0 1.2em;
    }
    
    /* Switch tema */
    .switch {
        width: 56px;
        height: 30px;
    }
    
    .slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
    }
}

@media (max-width: 480px) {
    .pill-button {
        min-width: 7em;
        height: 2.5em;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .pill-button {
        min-width: 7em;
        height: 2.5em;
        font-size: 14px;
    }
}