﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Bottom Nav (shared) */
.bottom-nav {
    background: #fff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 55px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-bottom: 6px;
    z-index: 50;
}

    .bottom-nav a,
    .bottom-nav .home-btn-wrapper {
        text-align: center;
        text-decoration: none;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding: 0 4px;
        gap: 4px;
        position: relative; /* base for absolute indicator */
    }

    .bottom-nav img.nav-icon {
        width: 22px;
        height: 22px;
        display: block;
        margin-bottom: 2px;
    }

/* Home button wrapper */
.home-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -16px; /* floats above nav bar */
    position: relative;
}

/* Circle */
.home-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    margin-bottom: 6px;
    overflow: hidden;
}

.home-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
}

    /* Home icon image */
    .home-btn img.home-icon {
        width: 26px;
        height: 26px;
        object-fit: contain;
        transform: translateY(-13px);
    }

/* Default state (non-Home page) */
.home-btn {
    background: #fff;
    border: 2px solid #007bff;
}

    .home-btn img.home-icon {
        filter: brightness(0) saturate(100%) invert(34%) sepia(98%) saturate(2871%) hue-rotate(205deg) brightness(97%) contrast(101%);
        /* blue */
    }

/* Active state (Home/Index) */
.home-btn-wrapper.active-nav .home-btn {
    background: #007bff;
    border: none;
}

    .home-btn-wrapper.active-nav .home-btn img.home-icon {
        filter: brightness(0) invert(1) !important; /* white */
    }



/* nav label (default) */
.bottom-nav small {
    display: block;
    font-size: 10px;
    margin-top: 0;
    color: #333;
    font-weight: normal;
}

/* nav-indicator is hidden unless active */
.bottom-nav .nav-indicator {
    display: none;
}

/* Active item: text + icon + indicator */
.bottom-nav a.active-nav small,
.bottom-nav .home-btn-wrapper.active-nav small {
    color: #007bff;
    font-weight: 600;
}

/* icon color change using filter for png icons */
.bottom-nav a.active-nav img.nav-icon,
.bottom-nav .home-btn-wrapper.active-nav img.home-icon {
    /* convert icon to blue - adjust filter if your PNGs differ */
    filter: brightness(0) saturate(100%) invert(34%) sepia(98%) saturate(2871%) hue-rotate(205deg) brightness(97%) contrast(101%);
}

/* show and place indicator under active label */
.bottom-nav a.active-nav .nav-indicator,
.bottom-nav .home-btn-wrapper.active-nav .nav-indicator {
    position: absolute;
    bottom: -6px; /* consistent offset under label across items */
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,123,255,0.15);
    display: block;
}

/* responsive */
@media (max-width: 380px) {
    .home-btn {
        width: 48px;
        height: 48px;
    }

    .bottom-nav a .nav-indicator, .bottom-nav .home-btn-wrapper .nav-indicator {
        width: 30px;
    }
}
