
html { 
    color-scheme: dark; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #111827; 
    color: #f8fafc; 
    transition: background-color 0.3s, color 0.3s; 
}

.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.hero-bg { 
    background-image: linear-gradient(to right, rgba(23, 37, 84, 0.8), rgba(30, 64, 175, 0.5)), url('pojazd.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.text-muted { 
    color: #a0aec0; 
}

.section-bg-offset { 
    background-color: #1a202c;
}

.focus-visible-ring:focus-visible { 
    outline: 2px solid #3b82f6; 
    outline-offset: 2px; 
    border-radius: 0.25rem; 
}

.slider-container { 
    overflow: hidden; 
    position: relative; 
}

.slider-wrapper { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

.slider-slide { 
    min-width: 100%; 
    box-sizing: border-box; 
}

.slider-dots { 
    position: absolute; 
    bottom: 1rem; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 0.5rem; 
}

.slider-dot { 
    width: 0.75rem; 
    height: 0.75rem; 
    border-radius: 9999px; 
    background-color: rgba(255, 255, 255, 0.5); 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.slider-dot.active { 
    background-color: white; 
}

/* Konwersja z @apply na standardowy CSS */
.form-input-custom {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #f9fafb;
}

.form-input-custom::placeholder {
    color: #9ca3af;
}

.form-input-custom:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgb(96 165 250 / 50%);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Style dla Polityki Prywatności */
.prose {
    --tw-prose-body: #d1d5db; 
    --tw-prose-headings: #ffffff; 
    --tw-prose-lead: #9ca3af;
    --tw-prose-links: #93c5fd; 
    --tw-prose-bold: #ffffff; 
    --tw-prose-counters: #9ca3af;
    --tw-prose-bullets: #6b7280; 
    --tw-prose-hr: #4b5563; 
    --tw-prose-quotes: #f3f4f6;
    --tw-prose-quote-borders: #3b82f6; 
    --tw-prose-captions: #9ca3af; 
    --tw-prose-code: #ffffff;
    --tw-prose-pre-code: #d1d5db; 
    --tw-prose-pre-bg: #1f2937; 
    --tw-prose-th-borders: #4b5563;
    --tw-prose-td-borders: #374151;
}

.gradient-border-animated {
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Nowe style dla tabeli w prose */
.prose table {
    width: 100%;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    border-collapse: collapse;
}
.prose th, .prose td {
    border: 1px solid var(--tw-prose-th-borders);
    padding: 0.6em 1em;
    text-align: left;
    vertical-align: middle;
}
.prose thead {
    border-bottom: 2px solid var(--tw-prose-hr);
}
.prose thead th {
    font-weight: 600;
    vertical-align: bottom;
    color: var(--tw-prose-headings);
}
.prose tbody tr:nth-child(odd) {
    background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800 with opacity */
}
.prose tbody tr:nth-child(even) {
    background-color: transparent;
}


/* Nowe style dla przełączników cookie */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #3b82f6;
}

input:disabled + .cookie-slider {
    background-color: #3b82f6;
    cursor: not-allowed;
    opacity: 0.7;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

/* Style dla animacji gwiazdek */
#animated-cursor {
    transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out, scale 0.2s ease-in-out;
    pointer-events: none;
}

.star-icon {
    transform: scale(1);
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
    cursor: default;
}


/* Style dla wydruku */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }

    .print-hidden {
        display: none !important;
    }

    main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .gradient-border-animated {
        background: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .prose {
        background-color: #ffffff !important;
        color: #000000 !important;
        --tw-prose-body: #000000; 
        --tw-prose-headings: #000000; 
        --tw-prose-lead: #333333;
        --tw-prose-links: #0000ee;
        --tw-prose-bold: #000000; 
        --tw-prose-quotes: #333333;
        --tw-prose-quote-borders: #cccccc; 
        --tw-prose-th-borders: #cccccc;
        --tw-prose-td-borders: #cccccc;
    }

    .prose h1, .prose h2, .prose p, .prose li, .prose a, .prose strong {
        color: #000000 !important;
    }
    
    .prose a {
        text-decoration: underline;
    }

    .prose i {
        display: none; /* Ukryj ikony podczas drukowania */
    }
    
    .prose table {
        page-break-inside: auto;
    }

    .prose tr, .prose td, .prose th {
        page-break-inside: avoid;
    }
}
