/* Custom CSS for Apple Repair Status Page */

/* Font Family */
.font-family-inter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

/* Apple-style button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Custom input focus styles */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Step indicator styles */
.step-indicator {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.step-indicator.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.step-indicator.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.step-indicator.future {
    background: #f9fafb;
    color: #6b7280;
    border: 2px dashed #d1d5db;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-indicator.completed .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step-indicator.current .step-number {
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

.step-indicator.future .step-number {
    background: #e5e7eb;
    color: #9ca3af;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.step-content .step-date {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

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

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading animation enhancements */
.loading-dots {
    display: inline-flex;
    align-items: center;
}

.loading-dots::after {
    content: '';
    display: inline-block;
    animation: loading-dots 1.4s ease-in-out infinite both;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Status badge styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.open {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.in-progress {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Device image styles */
.device-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
}

/* Responsive enhancements */
@media (max-width: 640px) {
    .step-indicator {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .step-content {
        text-align: center;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12px;
    }
    
    .no-print {
        display: none !important;
    }
    
    .step-indicator {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb !important;
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

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

/* Focus visible for better keyboard navigation */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}