/* Bottom Navigation Bar Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Show bottom nav on mobile screens */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #777;
    font-size: 0.75rem;
    transition: color 0.3s ease, transform 0.2s ease;
    width: 20%;
    text-align: center;
    padding: 5px 0;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    font-weight: bold;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Add touch feedback */
@media (hover: hover) {
    .bottom-nav-item:hover {
        color: var(--primary-color);
    }
}

/* Hide bottom nav on larger screens */
@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

/* Add padding to the bottom of the page to prevent content from being hidden behind the nav */
body {
    padding-bottom: 70px;
}

/* Scroll behavior for navbar */
.navbar {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 29, 42, 0.95);
}

.navbar.hidden {
    transform: translateY(-100%);
}

/* Progress bar animation */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary-color), 
        var(--accent-color),
        var(--purple-color), 
        var(--primary-color));
    background-size: 300% 100%;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
