.navbar {
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background matching your theme */
    padding: 10px 0;
    border-bottom: 2px solid var(--theme-color);
    margin-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    color: rgba(var(--rgb-theme-color, 0, 255, 204), 0.7); /* Using RGB values */
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--theme-color);
    border-bottom: 3px solid var(--theme-color);
    box-shadow: 0 0 15px rgba(var(--rgb-theme-color, 0, 255, 204), 0.3);
}

.nav-item:hover {
    background-color: rgba(var(--rgb-theme-color, 0, 255, 204), 0.1);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

.position-relative {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff3366; /* Keep this red for notification contrast */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    box-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .nav-item {
        padding: 6px 10px;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
}

/* Light theme navbar */
body.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14), 0 1px 6px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--theme-color);
}
body.light-theme .navbar a,
body.light-theme .navbar button,
body.light-theme .navbar .nav-link,
body.light-theme .navbar .nav-item {
    color: #1a1a2e;
}
body.light-theme .navbar .logo-text,
body.light-theme .navbar .nav-brand {
    color: var(--theme-color);
}

.tabs {
    display: flex;
    justify-content: space-between; /* Evenly distribute icons */
    align-items: center;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    border-bottom: 1px solid rgba(var(--rgb-theme-color, 0, 255, 204), 0.3);
    padding: 0 2rem; /* Horizontal padding only */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    height: 60px; /* Fixed height to prevent sizing issues */
}

/* Hide scrollbar in Chrome/Safari */
.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--theme-color, #00ffcc);
    transition: all 0.3s ease;
    flex: 1; /* Take equal space */
    text-align: center;
    height: 100%; /* Full height */
}

.tab i {
    font-size: 1.8rem; /* Larger icons */
}

.tab.active {
    color: var(--theme-color, #00ffcc);
    text-shadow: 0 0 10px rgba(var(--rgb-theme-color, 0, 255, 204), 0.5);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Slightly thicker underline for icons-only */
    background-color: var(--theme-color, #00ffcc);
    box-shadow: 0 0 8px rgba(var(--rgb-theme-color, 0, 255, 204), 0.4);
}

.tab:hover {
    color: var(--theme-color, #00ffcc);
    transform: translateY(-3px);
}

.position-relative {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff3366;
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 0.7rem;
    box-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tabs {
        padding: 0 0.5rem; /* Reduced side padding */
        height: 50px; /* Reduced height */
        margin-bottom: 0.3rem; /* Even less margin below */
    }
    
    .tab i {
        font-size: 1.5rem; /* Slightly smaller icons on mobile */
    }
}

/* Extra small screens */
@media (max-width: 768px) {
.tab i {
    transform: translateY(-9px); /* Move icons up by 3px on mobile */
}
}

/* For even smaller screens, you can adjust further if needed */
@media (max-width: 360px) {
.tab i {
    transform: translateY(-12px); /* Move icons up by 4px on very small screens */
}
}