/* 
 * Стили оригинального сайта для поддержки Tailwind CSS классов
 * Извлечены с https://www.carkeyhelper.com
 * 
 * Поддерживает все классы, используемые в HTML контенте ключей
 */

/* ===== БАЗОВЫЕ УТИЛИТЫ ===== */

/* Display */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-1\.5 { gap: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }

/* Colors */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-green-800 { color: #166534; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: #6b7280; }
.italic { font-style: italic; }

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-zinc-50\/50 { background-color: rgba(250, 250, 250, 0.5); }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-300 { background-color: #86efac; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-300 { background-color: #93c5fd; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-secondary { background-color: hsl(var(--secondary)); }

/* Borders */
.border { border-width: 1px; }
.border-1 { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-blue-200 { border-color: #bfdbfe; }
.border-transparent { border-color: transparent; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }

@media (min-width: 640px) {
    .sm\:grid-cols-\[200px_1fr\] { grid-template-columns: 200px 1fr; }
    .sm\:gap-4 { gap: 1rem; }
}

/* Sizing */
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-\[72px\] { width: 72px; }
.w-\[100px\] { width: 100px; }
.w-fit { width: fit-content; }
/* .w-full { width: 100%; } */
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-\[75px\] { height: 75px; }
.h-auto { height: auto; }
.max-w-none { max-width: none; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }

/* Effects */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:border-gray-200:hover { border-color: #e5e7eb; }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9); }
.hover\:bg-secondary\/90:hover { background-color: hsl(var(--secondary) / 0.9); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

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

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* ===== КОМПОНЕНТЫ ===== */

/* Badge компонент */
[data-slot="badge"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

[data-slot="badge"]:focus-visible {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

[data-slot="badge"][aria-invalid="true"] {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.2);
}

[data-slot="badge"] a:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* Collapsible компонент */
[data-slot="collapsible"] {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

[data-slot="collapsible-trigger"] {
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

[data-slot="collapsible-trigger"]:focus {
    outline: none;
}

[data-slot="collapsible-content"] {
    transition: all 0.2s ease;
}

[data-slot="collapsible-content"][data-state="closed"] {
    display: none;
}

[data-slot="collapsible-content"][data-state="open"] {
    display: block;
}

/* Lucide иконки */
.lucide {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.lucide-chevron-down {
    transform: rotate(0deg);
}

[data-state="open"] .lucide-chevron-down {
    transform: rotate(180deg);
}

/* ===== СПЕЦИАЛЬНЫЕ КЛАССЫ ===== */

/* Not prose - отключает стили typography */
.not-prose {
    color: inherit;
    max-width: none;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
}

/* Специальные grid колонки */
.sm\:grid-cols-\[200px_1fr\] {
    grid-template-columns: 200px 1fr;
}

/* Специальные размеры */
.sm\:gap-4 {
    gap: 1rem;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-\[200px_1fr\] { grid-template-columns: 200px 1fr; }
    .sm\:gap-4 { gap: 1rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: 210 100% 50%;
    --primary-foreground: 0 0% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --ring: 210 100% 50%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ===== */

/* Стили для изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Стили для списков */
ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Стили для ссылок */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Стили для кнопок */
button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

/* Стили для форм */
input, select, textarea {
    font: inherit;
}

/* Стили для таблиц */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Стили для скрытых элементов */
[hidden] {
    display: none !important;
}

/* Стили для элементов с data-state */
[data-state="closed"] {
    display: none;
}

[data-state="open"] {
    display: block;
}

/* Стили для элементов с data-disabled */
[data-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}


