/* assets/css/style.css */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

/* Touch targets at least 44x44px */
input, button, select, a {
    min-height: 44px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom); /* For iPhone notch */
    z-index: 50;
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.bottom-nav a.active {
    color: #2563eb;
}

.bottom-nav a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Main Content Padding to avoid bottom nav */
.main-content {
    padding-bottom: 80px; 
}

/* Scanner Fullscreen Overlay */
#scanner-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

#scanner-result.success {
    background-color: #10b981; /* Green */
    color: white;
}

#scanner-result.error {
    background-color: #ef4444; /* Red */
    color: white;
}

#scanner-result svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
