:root {
    --nav-primary: #25D366;
    --nav-primary-dark: #1EB855;
    --nav-primary-light: #34E775;
    --nav-dark: #0F1419;
    --nav-gray: #536471;
    --nav-light-gray: #F7F9FA;
    --nav-white: #FFFFFF;
    --nav-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --nav-shadow-hover: 0 4px 24px rgba(37, 211, 102, 0.15);
}

.brand-text-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    background: var(--nav-gradient);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.notification-wrapper {
    position: relative;
}

.notification-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: none;
    background: rgba(37, 211, 102, 0.1);
    color: var(--nav-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    border: 2px solid white;
    min-width: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-status {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
}

.profile-arrow {
    font-size: 0.8rem;
    color: var(--nav-gray);
    transition: transform 0.3s ease;
}

.dropdown.show .profile-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    margin-top: 12px;
    min-width: 220px;
}

.user-info strong {
    font-size: 0.95rem;
    display: block;
}

.user-info small {
    font-size: 0.8rem;
}

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nav-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(37, 211, 102, 0.05) 0%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(37, 211, 102, 0.05) 100%);
    opacity: 0.5;
}

.navbar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Logo/Brand */
.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--nav-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.brand-icon i {
    font-size: 24px;
    color: white;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--nav-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-brand:hover .brand-icon {
    transform: rotate(-10deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    color: var(--nav-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--nav-gradient);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-primary);
    
    transform: translateY(-2px);
}

.nav-link:hover .nav-indicator {
    width: 70%;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active {
    color: var(--nav-primary);
    
    font-weight: 600;
}



/* User Section */
.user-section {
    border-left: 1px solid #e1e8ed;
}

.user-profile {
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--nav-dark);
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: var(--nav-light-gray);
    transform: translateX(-4px);
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nav-primary);
    transition: all 0.3s ease;
}

.profile-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--nav-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.profile-link:hover .profile-img,
.profile-link:hover .profile-placeholder {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.profile-name {
    font-weight: 600;
    color: var(--nav-dark);
}

.logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-auth {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register {
    color: var(--nav-primary);
    border: 2px solid var(--nav-primary);
    background: transparent;
}

.btn-register:hover {
    color: white;
    background: var(--nav-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-login {
    color: white;
    background: var(--nav-gradient);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--nav-dark);
    border-radius: 3px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Scroll Effect */
.modern-navbar.scrolled {
    height: 60px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.modern-navbar.scrolled .brand-icon {
    width: 40px;
    height: 40px;
}

.modern-navbar.scrolled .brand-icon i {
    font-size: 20px;
}

/* Spinner for notifications */
.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #ccc;
    border-top-color: #25D366;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notification-item:hover {
    background: #f8f9fa !important;
}

.notification-panel {
    z-index: 9999 !important;
}

/* Page Content Offset */
body {
    padding-top: 70px;
}

#navbarMenu {
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999 !important;
}

/* Desktop'ta mobile actions'ı gizle */
@media (min-width: 992px) {
    .mobile-actions {
        display: none;
    }
    
    .mobile-user-section {
        display: none !important;
    }
    
    .mobile-direct-link {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    /* Desktop user section'ını gizle */
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile actions container */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    /* Mobile notification button */
    .mobile-notification-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(37, 211, 102, 0.1);
        color: var(--nav-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-notification-btn:hover {
        background: rgba(37, 211, 102, 0.2);
        transform: scale(1.05);
    }
    
    /* "Daha Fazla" dropdown'ını mobilde gizle */
    .nav-item.dropdown {
        display: none !important;
    }
    
    /* Mobil direkt linkleri göster */
    .mobile-direct-link {
        display: block !important;
    }
    
    /* Mobile user section */
    .mobile-user-section {
        width: 100%;
        margin-top: auto;
        padding: 1.5rem 0 0 0;
        border-top: 1px solid #e1e8ed;
    }
    
    .mobile-user-section .user-profile {
        width: 100%;
    }
    
    .mobile-user-section .profile-link {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        background: var(--nav-light-gray);
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .mobile-user-section .dropdown-menu {
        position: static !important;
        display: none;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .mobile-user-section .dropdown-menu.show {
        display: block !important;
    }
    
    .mobile-user-section .dropdown-item {
        padding: 0.75rem 1rem;
        background: rgba(37, 211, 102, 0.05);
        margin: 4px 0;
        border-radius: 8px;
        color: var(--nav-gray);
        font-weight: 500;
        display: flex;
        align-items: center;
    }
    
    .mobile-user-section .dropdown-item:hover {
        background: rgba(37, 211, 102, 0.1);
        color: var(--nav-primary);
    }
    
    .mobile-user-section .dropdown-item.text-danger:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        gap: 2rem;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1.3rem;
        font-size: 18px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .nav-link i {
        font-size: 1.3rem;
    }

    .user-section {
        width: 100%;
        margin: 0;
        padding: 2rem 0;
        border-left: none;
        border-top: 1px solid #e1e8ed;
    }

    .user-profile {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        background: var(--nav-light-gray);
        border-radius: 12px;
    }

    .logout-btn {
        width: 100%;
        height: 50px;
        border-radius: 12px;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-auth {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-navbar {
        height: 60px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-icon i {
        font-size: 20px;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .navbar-menu {
        top: 60px;
        padding: 1.5rem;
    }
    
    body {
        padding-top: 60px;
    }
}