/* Custom CSS for ScanAndSync */

/* Loading animations */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* PWA specific styles */
@media (display-mode: standalone) {
    /* Hide browser-specific UI elements when running as PWA */
    .pwa-hide {
        display: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Contact card animations */
.contact-card {
    transition: all 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
}

/* Tag pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
}

/* File upload zone */
.drop-zone {
    position: relative;
    overflow: hidden;
}

.drop-zone input[type="file"] {
    position: absolute;
    left: -9999px;
}

/* Camera preview */
#cameraPreview {
    transform: scaleX(-1); /* Mirror for selfie camera */
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    .mobile-full-width {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}