/* Bagażowy Custom CSS */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;
    --info: #0284c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

/* Smooth transitions */
* {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

/* Prevent layout shifts */
input, select, button, textarea {
    transition: background-color 150ms ease, border-color 150ms ease;
}

/* Remove input transitions for better UX */
input:focus, select:focus, textarea:focus {
    transition: none;
    outline: none;
}

/* Accessibility: Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Utility: Cursor pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Smooth fade for search results */
#search-results {
    animation: fadeIn 150ms ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.no-underline:hover {
    text-decoration: none;
}

/* Badges with proper contrast */
.status-badge {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Mobile improvements */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
    
    button {
        min-height: 44px;
    }
}

/* Tablet and desktop improvements */
@media (min-width: 768px) {
    main > section {
        max-width: 100%;
    }
}

/* Dark mode ready */
@supports (--css: variables) {
    :root {
        color-scheme: light;
    }
}
