.navbar {
    background: white;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    left: 0;
    right: 0;
}

.navbar-container {
    width: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-sizing: border-box;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    /* font-family: "Times New Roman", Times, serif; */
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav form {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-size: 19px;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    /* font-family: "Times New Roman", Times, serif; */
}

.nav-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Right Section */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Test Progress Section */
.test-progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.test-progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(var(--color, #9ca3af) calc(var(--percentage) * 3.6deg), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.test-progress-circle::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
}

.test-progress-value {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    color: var(--color, #9ca3af);
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
}

.test-progress-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
}

/* Color levels for last-ten-tests progress */
.test-progress-circle.low {
    --color: #ef4444; /* red */
}

.test-progress-circle.medium {
    --color: #f59e0b; /* yellow/orange */
}

.test-progress-circle.high {
    --color: #10b981; /* green */
}

.test-progress-circle.neutral {
    --color: #9ca3af; /* grey fallback */
}

/* Points Section */
.points-section {
    display: flex;
    align-items: center;
}

.points-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s;
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
}

.points-link:hover {
    background-color: #f3f4f6;
    color: #2563eb;
    text-decoration: none;
}

.points-link i {
    font-size: 18px;
    color: #4b5563;
}

.points-value {
    color: #111827;
    font-weight: 600;
}

/* Cart Section */
.cart-section {
    position: relative;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #4b5563;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.2s;
    border-radius: 50%;
}

.cart-link:hover {
    color: #2563eb;
    background-color: #f3f4f6;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

.profile-link:hover {
    border-color: #2563eb;
    text-decoration: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 16px;
    }

    .navbar-nav form {
        gap: 24px;
    }
}