/* Tailwind Custom CSS with tw- prefix */
/* Извлеченные классы из CDN версии для безопасного использования */

/* Backgrounds */
.tw-bg-blue-100 { background-color: #dbeafe; }
.tw-bg-blue-500 { background-color: #3b82f6; }
.tw-bg-blue-800 { background-color: #1e40af; }
.tw-bg-green-500 { background-color: #10b981; }
.tw-bg-green-600 { background-color: #059669; }
.tw-bg-red-500 { background-color: #ef4444; }
.tw-bg-red-600 { background-color: #dc2626; }
.tw-bg-white { background-color: #ffffff; }
.tw-bg-gray-100 { background-color: #f3f4f6; }

/* Text Colors */
.tw-text-white { color: #ffffff; }
.tw-text-blue-800 { color: #1e40af; }
.tw-text-gray-600 { color: #4b5563; }
.tw-text-gray-700 { color: #374151; }

/* Typography */
.tw-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.tw-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.tw-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.tw-font-semibold { font-weight: 600; }
.tw-font-bold { font-weight: 700; }

/* Spacing */
.tw-p-2 { padding: 0.5rem; }
.tw-p-4 { padding: 1rem; }
.tw-p-6 { padding: 1.5rem; }
.tw-px-4 { padding-left: 1rem; padding-right: 1rem; }
.tw-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.tw-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.tw-my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.tw-my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.tw-my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.tw-my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.tw-mb-2 { margin-bottom: 0.5rem; }
.tw-gap-4 { gap: 1rem; }

/* Border */
.tw-border { border-width: 1px; }
.tw-border-gray-200 { border-color: #e5e7eb; }
.tw-rounded { border-radius: 0.25rem; }
.tw-rounded-md { border-radius: 0.375rem; }
.tw-rounded-lg { border-radius: 0.5rem; }

/* Shadow */
.tw-shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.tw-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Layout */
.tw-flex { display: flex; }
.tw-grid { display: grid; }
.tw-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:tw-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:tw-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Transitions */
.tw-transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover States */
.tw-hover\:bg-green-600:hover { background-color: #059669; }
.tw-hover\:bg-red-600:hover { background-color: #dc2626; }

/* Additional utilities */
.tw-block { display: block; }
.tw-inline-block { display: inline-block; }
.tw-items-center { align-items: center; }
.tw-justify-center { justify-content: center; }
.tw-justify-between { justify-content: space-between; }

/* Header specific */
.tw-sticky { position: sticky; }
.tw-top-0 { top: 0; }
.tw-z-50 { z-index: 50; }
.tw-container { width: 100%; max-width: 1200px; }
.tw-mx-auto { margin-left: auto; margin-right: auto; }
.tw-px-4 { padding-left: 1rem; padding-right: 1rem; }
.tw-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.tw-flex-col { flex-direction: column; }
.tw-gap-1 { gap: 0.25rem; }
.tw-gap-3 { gap: 0.75rem; }
.tw-w-5 { width: 1.25rem; }
.tw-h-5 { height: 1.25rem; }
.tw-w-6 { width: 1.5rem; }
.tw-h-0\.5 { height: 0.125rem; }
.tw-bg-gray-800 { background-color: #1f2937; }
.tw-ml-4 { margin-left: 1rem; }
.tw-flex-shrink-0 { flex-shrink: 0; }
.tw-flex-1 { flex: 1 1 0%; }
.tw-hover\:bg-gray-100:hover { background-color: #f3f4f6; }

/* Hidden/Visible utilities */
.tw-hidden { display: none; }
@media (min-width: 1024px) {
    .lg\:tw-hidden { display: none; }
    .lg\:tw-block { display: block; }
    .lg\:tw-flex { display: flex; }
}

/* Gap utilities для отступов между элементами */
.tw-gap-4 { gap: 1rem; }
.tw-gap-6 { gap: 1.5rem; }
.tw-gap-8 { gap: 2rem; }

/* Responsive gaps */
@media (min-width: 768px) {
    .md\:tw-gap-6 { gap: 1.5rem; }
}
@media (min-width: 1024px) {
    .lg\:tw-gap-8 { gap: 2rem; }
}

/* Text alignment */
.tw-text-center { text-align: center; }

/* Width utilities */
.tw-w-full { width: 100%; }
.tw-w-24 { width: 6rem; }
.tw-w-32 { width: 8rem; }
.tw-w-40 { width: 10rem; }
.tw-w-48 { width: 12rem; }
.tw-w-56 { width: 14rem; }
.tw-w-64 { width: 16rem; }
.tw-h-24 { height: 6rem; }
.tw-h-32 { height: 8rem; }
.tw-h-40 { height: 10rem; }
.tw-h-48 { height: 12rem; }
.tw-h-56 { height: 14rem; }
.tw-h-64 { height: 16rem; }
.tw-min-w-24 { min-width: 6rem; }
.tw-min-w-32 { min-width: 8rem; }
.tw-min-w-40 { min-width: 10rem; }
.tw-min-w-48 { min-width: 12rem; }
.tw-max-w-6xl { max-width: 72rem; }
.tw-max-w-7xl { max-width: 80rem; }
.tw-max-w-fixed-custom { max-width: 1420px; }
.tw-max-w-full-custom { max-width: 1600px; }

/* Margin utilities */
.tw-mr-8 { margin-right: 2rem; }
.tw-mr-12 { margin-right: 3rem; }

/* Responsive margins */
@media (min-width: 1024px) {
    .lg\:tw-mr-12 { margin-right: 3rem; }
}

/* Gradient backgrounds */
.tw-bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.tw-from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.tw-to-blue-800 { --tw-gradient-to: #1e40af; }

/* Shadow large */
.tw-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.tw-shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Backgrounds for tiles */
.tw-bg-gray-50 { background-color: #f9fafb; }
.tw-from-green-500 { --tw-gradient-from: #10b981; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)); }
.tw-to-green-600 { --tw-gradient-to: #059669; }
.tw-from-yellow-500 { --tw-gradient-from: #eab308; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 179, 8, 0)); }
.tw-to-yellow-600 { --tw-gradient-to: #ca8a04; }
.tw-from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.tw-to-purple-600 { --tw-gradient-to: #9333ea; }
.tw-bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* Rounded corners */
.tw-rounded-xl { border-radius: 0.75rem; }
.tw-rounded-full { border-radius: 9999px; }

/* Sizing */
.tw-h-full { height: 100%; }
.tw-w-20 { width: 5rem; }
.tw-h-20 { height: 5rem; }

/* Text sizes */
.tw-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.tw-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* Transitions and animations */
.tw-transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.tw-transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.tw-transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.tw-duration-300 { transition-duration: 300ms; }
.tw-transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Hover effects */
.hover\:tw-scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }
.hover\:tw-shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.group:hover .group-hover\:tw-rotate-12 { --tw-rotate: 12deg; transform: rotate(12deg); }

/* Group class */
.tw-group { }