/* Mobile-First Bottom Navigation Styles */

/* Reset body padding from navigation.blade.php inline styles */
body {
    padding-top: 64px !important;
    padding-bottom: 80px !important;
}

/* Top Navigation - Logo Only */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    min-width: 80px;
    border-radius: 12px;
    position: relative;
}

.nav-item:hover {
    background: #f3f4f6;
}

.nav-item.active {
    color: #16364D;
}

.nav-item.active .nav-icon {
    color: #F36F64;
}

/* Active indicator dot */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    background: #F36F64;
    border-radius: 50%;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Ensure content doesn't hide behind navigation */
main {
    min-height: calc(100vh - 144px);
}

/* Page containers adjustment */
.scanner-container,
.dashboard-container,
.search-container {
    padding-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body {
        padding-top: 56px !important;
        padding-bottom: 72px !important;
    }

    .top-nav-container {
        padding: 10px 16px;
    }

    .logo-image {
        height: 36px;
    }

    .nav-item {
        padding: 6px 12px;
        min-width: 70px;
    }

    .nav-icon {
        width: 22px;
        height: 22px;
    }

    .nav-label {
        font-size: 0.7rem;
    }

    main {
        min-height: calc(100vh - 128px);
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }

    .nav-item {
        padding: 10px 20px;
        min-width: 90px;
    }

    .nav-icon {
        width: 26px;
        height: 26px;
    }

    .nav-label {
        font-size: 0.8rem;
    }
}

/* Animation for active state */
.nav-item.active {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Smooth transitions */
.nav-item,
.nav-icon,
.nav-label {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch feedback */
.nav-item:active {
    transform: scale(0.95);
}

/* Accessibility - Focus states */
.nav-item:focus {
    outline: 2px solid #F36F64;
    outline-offset: 2px;
}
