/* RF Scanner Dashboard - Custom Styles */

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Focus styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Custom checkbox style */
input[type="checkbox"] {
    cursor: pointer;
}

/* Table improvements */
table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Card animations */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Pulse animation for active scan */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Toast animations */
.toast-enter {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Priority indicators */
.priority-high { color: #EF4444; }
.priority-medium { color: #F59E0B; }
.priority-low { color: #10B981; }

/* Status colors */
.status-needed { background-color: #E5E7EB; color: #374151; }
.status-ordered { background-color: #FEF3C7; color: #92400E; }
.status-arrived { background-color: #D1FAE5; color: #065F46; }

/* Kanban column colors */
.kanban-todo { background-color: #F3F4F6; }
.kanban-progress { background-color: #DBEAFE; }
.kanban-done { background-color: #D1FAE5; }

/* Dark mode adjustments */
.dark .kanban-todo { background-color: rgba(55, 65, 81, 0.5); }
.dark .kanban-progress { background-color: rgba(59, 130, 246, 0.1); }
.dark .kanban-done { background-color: rgba(16, 185, 129, 0.1); }

/* Print styles */
@media print {
    nav, footer, button {
        display: none !important;
    }
    
    .card-hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .card-hover:hover {
        transform: none;
    }
}

/* Markdown preview styles */
.prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose code {
    background-color: #374151;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* File preview */
.file-preview {
    aspect-ratio: 4/3;
    object-fit: cover;
}
