/* Стили для License Server */

/* Переменные для темы */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #10b981;
    --success-hover: #059669;
    --warning-color: #f59e0b;
    --text-color: #374151;
    --bg-color: #f9fafb;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Тёмная тема */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #93c5fd;
    --danger-color: #f87171;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --text-color: #e5e7eb;
    --bg-color: #111827;
    --header-bg: #1f2937;
    --card-bg: #374151;
    --border-color: #4b5563;
}

/* Базовые стили */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    color: #374151 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
}

/* Тёмная тема для body */
[data-theme="dark"] body {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: #111827 !important;
}

[data-theme="dark"] .text-gray-900 {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .text-gray-100 {
    color: #f3f4f6 !important;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(31, 41, 55, 0.95) !important;
    border-color: rgba(55, 65, 81, 0.8) !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: #374151 !important;
}

[data-theme="dark"] .border-gray-800 {
    border-color: #374151 !important;
}

.nav-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
}

.nav-link:hover {
    color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-link {
    color: #d1d5db !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.15) !important;
}

/* Карточки */
.card {
    background: #ffffff !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-4px) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .card {
    background: #1f2937 !important;
    border-color: rgba(55, 65, 81, 0.8) !important;
}

/* Стили для элементов с bg-white и rounded-xl */
.bg-white {
    background: #ffffff !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

.bg-white:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .bg-white {
    background: #1f2937 !important;
    border-color: rgba(55, 65, 81, 0.8) !important;
}

.p-6 {
    padding: 2rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1f2937;
}

[data-theme="dark"] .bg-gray-800 {
    background-color: #1f2937;
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: #374151 !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
}

table td {
    padding: 1rem 1.5rem !important;
    vertical-align: middle !important;
    border-top: 1px solid #e5e7eb !important;
}

[data-theme="dark"] table td {
    border-color: #374151 !important;
}

table tbody tr {
    transition: background-color 0.15s ease !important;
}

table tbody tr {
    transition: all 0.15s ease !important;
}

table tbody tr:hover {
    background-color: #f9fafb !important;
    transform: scale(1.01);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] table tbody tr:hover {
    background-color: #1f2937 !important;
}

table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-bottom: 2px solid #e5e7eb !important;
}

[data-theme="dark"] table thead {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-color: #374151 !important;
}

table thead th {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: #374151 !important;
    padding: 1rem 1.5rem !important;
}

[data-theme="dark"] table thead th {
    color: #d1d5db !important;
}

table tbody {
    background-color: #ffffff !important;
}

[data-theme="dark"] table tbody {
    background-color: #1f2937 !important;
}

.divide-y {
    border-top-width: 1px !important;
}

.divide-gray-200 {
    border-color: #e5e7eb !important;
}

[data-theme="dark"] .divide-gray-200 {
    border-color: #374151 !important;
}

/* Статусные бейджи */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

/* Стили для статусов лицензий */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
}

.status-revoked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
}

.status-expired {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff !important;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .status-active {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .status-revoked {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .status-expired {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .status-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937 !important;
}

/* Формы */
.form-control {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.625rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
}

.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: #d1d5db !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.625rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
    font-family: inherit !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px);
}

input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
    border-color: #d1d5db !important;
}

input[type="file"] {
    padding: 0.5rem !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 0.625rem !important;
    background-color: #f9fafb !important;
    transition: all 0.2s ease !important;
}

input[type="file"]:hover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] input[type="file"] {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
}

/* Кнопки */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.625rem !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4), 0 4px 6px -2px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3), 0 2px 4px -1px rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4), 0 4px 6px -2px rgba(239, 68, 68, 0.3) !important;
}

.btn-outline {
    border: 2px solid #e5e7eb !important;
    color: #374151 !important;
    background-color: #ffffff !important;
}

.btn-outline:hover {
    background-color: #f9fafb !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    transform: translateY(-1px) !important;
}

[data-theme="dark"] .btn-outline {
    border-color: #4b5563 !important;
    color: #d1d5db !important;
    background-color: #374151 !important;
}

[data-theme="dark"] .btn-outline:hover {
    background-color: #4b5563 !important;
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Утилиты */
.text-muted {
    color: #9ca3af;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Утилиты для layout */
.container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.min-h-screen {
    min-height: 100vh !important;
}

/* Flexbox утилиты */
.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.flex-col {
    flex-direction: column !important;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Отступы */
.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.ml-4 {
    margin-left: 1rem !important;
}

.pt-4 {
    padding-top: 1rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-6 {
    margin-top: 1.5rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

/* Размеры */
.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-16 {
    width: 4rem !important;
}

.h-0\.5 {
    height: 0.125rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.w-px {
    width: 1px !important;
}

.w-full {
    width: 100% !important;
}

.w-16 {
    width: 4rem !important;
}

.h-16 {
    height: 4rem !important;
}

/* Типографика */
.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
    letter-spacing: -0.01em !important;
}

.text-3xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .text-3xl {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 500 !important;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

/* Выравнивание текста */
.text-center {
    text-align: center !important;
}

/* Дополнительные утилиты */
.max-w-md {
    max-width: 28rem !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
}

.transition-colors {
    transition-property: color, background-color, border-color !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 200ms !important;
}

.duration-200 {
    transition-duration: 200ms !important;
}

.text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

code {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    border: 1px solid rgba(209, 213, 219, 0.5) !important;
}

pre {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #34d399 !important;
    padding: 1.5rem !important;
    border-radius: 0.75rem !important;
    overflow-x: auto !important;
    font-size: 0.875rem !important;
    line-height: 1.75 !important;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
    border: 1px solid rgba(34, 211, 153, 0.2) !important;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2) !important;
    position: relative;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #34d399, #10b981);
    border-radius: 0.75rem 0.75rem 0 0;
}

.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

.bg-gray-50 {
    background-color: #f9fafb !important;
}

.from-green-400 {
    --tw-gradient-from: #34d399;
}

.to-green-500 {
    --tw-gradient-to: #10b981;
}

.from-red-400 {
    --tw-gradient-from: #f87171;
}

.to-red-500 {
    --tw-gradient-to: #ef4444;
}

.from-blue-100 {
    --tw-gradient-from: #dbeafe;
}

.to-blue-200 {
    --tw-gradient-to: #bfdbfe;
}

.from-gray-50 {
    --tw-gradient-from: #f9fafb;
}

.to-gray-100 {
    --tw-gradient-to: #f3f4f6;
}

.from-gray-400 {
    --tw-gradient-from: #9ca3af;
}

.to-gray-500 {
    --tw-gradient-to: #6b7280;
}

.from-yellow-400 {
    --tw-gradient-from: #fbbf24;
}

.to-yellow-500 {
    --tw-gradient-to: #f59e0b;
}

.text-blue-800 {
    color: #1e40af !important;
}

.text-warning {
    color: #f59e0b !important;
    font-weight: 600 !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.border-gray-100 {
    border-color: #f3f4f6 !important;
}

.px-2\.5 {
    padding-left: 0.625rem !important;
    padding-right: 0.625rem !important;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.p-12 {
    padding: 3rem !important;
}

.text-center {
    text-align: center !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

.w-16 {
    width: 4rem !important;
}

.h-16 {
    height: 4rem !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.bg-gray-800 {
    background-color: #1f2937 !important;
}

.bg-red-100 {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #991b1b !important;
}

.bg-green-100 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #065f46 !important;
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.hover\:bg-red-50:hover {
    background-color: #fef2f2 !important;
}

.hover\:border-red-300:hover {
    border-color: #fca5a5 !important;
}

.text-success {
    color: #059669 !important;
    font-weight: 600 !important;
}

.text-primary {
    color: #3b82f6 !important;
}

[data-theme="dark"] .text-primary {
    color: #60a5fa !important;
}

/* Цвета фона */
.bg-gray-50 {
    background-color: #f9fafb !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-green-100 {
    background-color: #d1fae5;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

/* Цвета текста */
.text-white {
    color: #ffffff !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.text-yellow-800 {
    color: #92400e;
}

.text-green-800 {
    color: #065f46;
}

.text-yellow-600 {
    color: #d97706;
}

.text-yellow-400 {
    color: #fbbf24;
}

.text-green-600 {
    color: #059669;
}

.text-green-400 {
    color: #34d399;
}

/* Скругление */
.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

/* Границы */
.border-b {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
}

.border-t {
    border-top-width: 1px !important;
    border-top-style: solid !important;
}

.border-b.border-gray-100 {
    border-bottom-color: #f3f4f6 !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

.border-gray-800 {
    border-color: #1f2937 !important;
}

.border {
    border-width: 1px !important;
    border-style: solid !important;
}

.border-gray-300 {
    border-color: #d1d5db !important;
}

/* Тени */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Тёмная тема */
[data-theme="dark"] .bg-white {
    background-color: #1f2937;
}

[data-theme="dark"] .bg-gray-800 {
    background-color: #1f2937;
}

[data-theme="dark"] .text-gray-800 {
    color: #f3f4f6;
}

[data-theme="dark"] .text-white {
    color: #ffffff;
}

[data-theme="dark"] .text-gray-600 {
    color: #9ca3af;
}

[data-theme="dark"] .text-gray-400 {
    color: #9ca3af;
}

[data-theme="dark"] .bg-gray-300 {
    background-color: #4b5563;
}

[data-theme="dark"] .bg-gray-600 {
    background-color: #4b5563;
}

[data-theme="dark"] .bg-yellow-100 {
    background-color: #78350f;
}

[data-theme="dark"] .bg-yellow-900 {
    background-color: #78350f;
}

[data-theme="dark"] .text-yellow-200 {
    color: #fde68a;
}

[data-theme="dark"] .bg-green-100 {
    background-color: #064e3b;
}

[data-theme="dark"] .bg-green-900 {
    background-color: #064e3b;
}

[data-theme="dark"] .text-green-200 {
    color: #6ee7b7;
}

[data-theme="dark"] .bg-gray-600 {
    background-color: #4b5563;
}

[data-theme="dark"] footer {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .text-yellow-400 {
    color: #fbbf24;
}

[data-theme="dark"] .text-green-400 {
    color: #34d399;
}

/* Дополнительные классы для темной темы */
[data-theme="dark"] .bg-gray-700 {
    background-color: #374151;
}

[data-theme="dark"] .bg-gray-800 {
    background-color: #1f2937;
}

[data-theme="dark"] .text-gray-300 {
    color: #d1d5db;
}

[data-theme="dark"] .text-gray-700 {
    color: #d1d5db;
}

[data-theme="dark"] .border-gray-600 {
    border-color: #4b5563;
}

[data-theme="dark"] .bg-red-900 {
    background-color: #7f1d1d;
}

[data-theme="dark"] .text-red-200 {
    color: #fecaca;
}

[data-theme="dark"] .bg-green-900 {
    background-color: #064e3b;
}

[data-theme="dark"] .text-green-200 {
    color: #6ee7b7;
}

/* Утилиты для форм */
.w-full {
    width: 100%;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-1\.5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.py-2\.5 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

/* Hover эффекты */
.hover\:text-primary:hover {
    color: var(--primary-color);
}

.hover\:text-danger:hover {
    color: var(--danger-color);
}

.hover\:bg-primary:hover {
    background-color: var(--primary-hover);
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

[data-theme="dark"] .hover\:bg-gray-50:hover {
    background-color: #374151 !important;
}

[data-theme="dark"] .hover\:bg-gray-700:hover {
    background-color: #374151 !important;
}

.hover\:bg-red-50:hover {
    background-color: #fef2f2 !important;
}

.hover\:border-red-300:hover {
    border-color: #fca5a5 !important;
}

/* Стили для file input */
input[type="file"]::file-selector-button {
    margin-right: 1rem !important;
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem !important;
    border: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4) !important;
}

/* Grid утилиты */
.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

/* Дополнительные утилиты */
.space-y-1 > * + * {
    margin-top: 0.25rem !important;
}

.space-y-3 > * + * {
    margin-top: 0.75rem !important;
}

.space-x-2 > * + * {
    margin-left: 0.5rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-md {
    max-width: 28rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.leading-5 {
    line-height: 1.25rem !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

.divide-y > * + * {
    border-top-width: 1px !important;
}

.divide-gray-200 > * + * {
    border-color: #e5e7eb !important;
}

.min-w-full {
    min-width: 100% !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Адаптивность */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row !important;
    }
    
    .sm\:items-center {
        align-items: center !important;
    }
}

@media (min-width: 768px) {
    .md\:mx-0 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .md\:flex-row {
        flex-direction: row !important;
    }
    
    .md\:mt-0 {
        margin-top: 0 !important;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

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

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}