body.admin-theme {
  min-height: 100vh;
  background: var(--surface-soft);
  color: var(--text-primary);
}

body.admin-theme main,
body.admin-theme .container,
body.admin-theme .max-w-7xl,
body.admin-theme .max-w-2xl,
body.admin-theme .import-container {
  width: min(1200px, calc(100% - 32px));
}

body.admin-theme .container,
body.admin-theme .max-w-7xl,
body.admin-theme .max-w-2xl {
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme .bg-white,
body.admin-theme .stat-item,
body.admin-theme .import-form,
body.admin-theme .select2-container--default .select2-selection--multiple,
body.admin-theme .select2-container--default .select2-selection--single,
body.admin-theme .tox-tinymce,
body.admin-theme .ck-editor__main > .ck-editor__editable {
  background: var(--surface) !important;
}

body.admin-theme .bg-gray-50,
body.admin-theme .bg-gray-100,
body.admin-theme .import-stats,
body.admin-theme .info-box,
body.admin-theme .select2-dropdown,
body.admin-theme .select2-results > .select2-results__options {
  background: var(--surface-soft) !important;
}

body.admin-theme .text-gray-900,
body.admin-theme .text-gray-800,
body.admin-theme .text-gray-700,
body.admin-theme .font-bold,
body.admin-theme .font-semibold,
body.admin-theme .font-medium,
body.admin-theme h1,
body.admin-theme h2,
body.admin-theme h3,
body.admin-theme h4,
body.admin-theme strong,
body.admin-theme .stat-number,
body.admin-theme .tox .tox-statusbar,
body.admin-theme .ck.ck-toolbar,
body.admin-theme .ck.ck-editor__main > .ck-editor__editable {
  color: var(--text-primary) !important;
}

body.admin-theme .text-gray-600,
body.admin-theme .text-gray-500,
body.admin-theme .text-gray-400,
body.admin-theme .stat-label,
body.admin-theme .btn-back,
body.admin-theme .import-stats code,
body.admin-theme .select2-container--default .select2-selection--multiple .select2-selection__choice__display,
body.admin-theme .tox .tox-statusbar__text-container {
  color: var(--text-secondary) !important;
}

body.admin-theme .border,
body.admin-theme .border-gray-200,
body.admin-theme .border-gray-300,
body.admin-theme .border-b,
body.admin-theme .border-b-2,
body.admin-theme .border-t,
body.admin-theme .divide-gray-200 > :not([hidden]) ~ :not([hidden]),
body.admin-theme .import-stats,
body.admin-theme .info-box,
body.admin-theme .stat-item,
body.admin-theme .tox-tinymce,
body.admin-theme .ck.ck-toolbar,
body.admin-theme .ck.ck-editor__main > .ck-editor__editable,
body.admin-theme .select2-container--default .select2-selection--multiple,
body.admin-theme .select2-container--default .select2-selection--single,
body.admin-theme .select2-dropdown {
  border-color: var(--ring) !important;
}

body.admin-theme .shadow,
body.admin-theme .shadow-sm,
body.admin-theme .shadow-md,
body.admin-theme .hover\:shadow-md:hover,
body.admin-theme .hover\:shadow-lg:hover,
body.admin-theme .import-form,
body.admin-theme .import-stats,
body.admin-theme .stat-item {
  box-shadow: var(--shadow-stack) !important;
}

body.admin-theme .rounded,
body.admin-theme .rounded-md,
body.admin-theme .rounded-lg,
body.admin-theme .sm\:rounded-lg,
body.admin-theme .tox-tinymce,
body.admin-theme .ck.ck-toolbar,
body.admin-theme .ck.ck-editor__main > .ck-editor__editable,
body.admin-theme .select2-container--default .select2-selection--multiple,
body.admin-theme .select2-container--default .select2-selection--single,
body.admin-theme .select2-dropdown {
  border-radius: var(--radius-12) !important;
}

body.admin-theme .bg-blue-500,
body.admin-theme .bg-blue-600,
body.admin-theme .bg-green-600,
body.admin-theme .bg-yellow-600,
body.admin-theme .bg-indigo-500,
body.admin-theme .bg-indigo-600,
body.admin-theme .bg-pink-600,
body.admin-theme .bg-purple-600,
body.admin-theme .bg-red-600,
body.admin-theme .bg-gray-500,
body.admin-theme .bg-gradient-to-r,
body.admin-theme .btn-import,
body.admin-theme .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--text-primary) !important;
  background-image: none !important;
  color: #ffffff !important;
}

body.admin-theme .hover\:bg-blue-600:hover,
body.admin-theme .hover\:bg-blue-700:hover,
body.admin-theme .hover\:bg-green-700:hover,
body.admin-theme .hover\:bg-yellow-700:hover,
body.admin-theme .hover\:bg-indigo-600:hover,
body.admin-theme .hover\:bg-indigo-700:hover,
body.admin-theme .hover\:bg-pink-700:hover,
body.admin-theme .hover\:bg-purple-700:hover,
body.admin-theme .hover\:bg-red-700:hover,
body.admin-theme .hover\:bg-gray-200:hover,
body.admin-theme .hover\:bg-gray-600:hover,
body.admin-theme .btn-import:hover {
  background: var(--text-deep) !important;
  color: #ffffff !important;
}

body.admin-theme .bg-green-100,
body.admin-theme .bg-green-50 {
  background: #f4faf6 !important;
}

body.admin-theme .text-green-700,
body.admin-theme .text-green-800,
body.admin-theme .text-green-500 {
  color: #2f6b47 !important;
}

body.admin-theme .bg-red-100,
body.admin-theme .bg-red-50 {
  background: #fff5f5 !important;
}

body.admin-theme .text-red-700,
body.admin-theme .text-red-800,
body.admin-theme .text-red-600,
body.admin-theme .text-red-500,
body.admin-theme .hover\:text-red-700:hover,
body.admin-theme .hover\:text-red-800:hover,
body.admin-theme .hover\:text-red-900:hover {
  color: #b42318 !important;
}

body.admin-theme .bg-yellow-100,
body.admin-theme .bg-yellow-50 {
  background: #fffaf0 !important;
}

body.admin-theme .text-yellow-700,
body.admin-theme .text-yellow-800,
body.admin-theme .text-yellow-500 {
  color: #8b5e00 !important;
}

body.admin-theme .text-blue-600,
body.admin-theme .text-blue-500,
body.admin-theme .text-indigo-600,
body.admin-theme .hover\:text-blue-700:hover,
body.admin-theme .hover\:text-blue-500:hover,
body.admin-theme .hover\:text-indigo-900:hover,
body.admin-theme .hover\:text-indigo-600:hover,
body.admin-theme .hover\:text-indigo-700:hover {
  color: var(--link) !important;
}

body.admin-theme .text-white {
  color: #ffffff !important;
}

body.admin-theme a {
  color: inherit;
}

body.admin-theme a:hover {
  color: var(--text-deep);
}

body.admin-theme input:not([type='checkbox']):not([type='radio']):not([type='file']),
body.admin-theme textarea,
body.admin-theme select {
  width: 100%;
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--ring) !important;
  border-radius: var(--radius-8) !important;
  box-shadow: none !important;
}

body.admin-theme input[type='file'] {
  border: 1px dashed var(--ring) !important;
  border-radius: var(--radius-12) !important;
  background: var(--surface-soft) !important;
}

body.admin-theme input::placeholder,
body.admin-theme textarea::placeholder {
  color: var(--text-secondary) !important;
}

body.admin-theme input:focus,
body.admin-theme textarea:focus,
body.admin-theme select:focus,
body.admin-theme .select2-container--default.select2-container--focus .select2-selection--multiple,
body.admin-theme .select2-container--default.select2-container--open .select2-selection--single {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--focus) !important;
  border-color: transparent !important;
}

body.admin-theme input[type='checkbox'],
body.admin-theme input[type='radio'] {
  accent-color: var(--text-primary);
}

body.admin-theme table {
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-theme thead,
body.admin-theme thead.bg-gray-50,
body.admin-theme .bg-gray-100.p-4.rounded-lg,
body.admin-theme .bg-gray-50.p-4.rounded-lg {
  background: var(--surface-soft) !important;
}

body.admin-theme th,
body.admin-theme td {
  border-color: var(--ring) !important;
}

body.admin-theme code,
body.admin-theme pre {
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

body.admin-theme code {
  background: var(--surface-soft);
  border-radius: var(--radius-4);
  padding: 2px 6px;
}

body.admin-theme .message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-stack);
}

body.admin-theme .message.success {
  background: #f4faf6;
  color: #2f6b47;
}

body.admin-theme .message.error {
  background: #fff5f5;
  color: #b42318;
}

body.admin-theme .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-decoration: none;
}

body.admin-theme .btn-back:hover {
  color: var(--text-primary) !important;
  text-decoration: underline;
}

body.admin-theme .import-container h1 {
  margin-bottom: 20px;
}

body.admin-theme .import-form,
body.admin-theme .import-stats,
body.admin-theme .info-box {
  border-radius: var(--radius-16) !important;
  padding: 24px !important;
}

body.admin-theme .stat-number {
  font-family: 'Cal Sans', 'Inter', sans-serif;
  font-size: 2.5rem;
  line-height: 1.1;
}

body.admin-theme .admin-auth-visual {
  background: linear-gradient(135deg, #111111 0%, #242424 100%);
}

body.admin-theme .admin-auth-visual-copy {
  background: rgba(17, 17, 17, 0.35);
}

body.admin-theme .admin-auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-stack);
  background: var(--surface);
  color: var(--text-primary);
}

body.admin-theme .admin-auth-card {
  box-shadow: var(--shadow-stack) !important;
  border-radius: var(--radius-16) !important;
}

body.admin-theme .admin-auth-note {
  color: var(--text-secondary) !important;
}

body.admin-theme #dropZone {
  background: var(--surface-soft);
  border-color: var(--ring) !important;
  border-radius: var(--radius-16) !important;
}

body.admin-theme #dropZone:hover {
  background: var(--surface) !important;
  border-color: var(--text-primary) !important;
}

body.admin-theme .tox .tox-edit-area__iframe,
body.admin-theme .ck.ck-editor__main > .ck-editor__editable {
  background: var(--surface) !important;
}

body.admin-theme .tox .tox-toolbar,
body.admin-theme .tox .tox-toolbar__primary,
body.admin-theme .ck.ck-toolbar {
  background: var(--surface-soft) !important;
  border-color: var(--ring) !important;
}

body.admin-theme .select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-color: transparent !important;
}

body.admin-theme .select2-container--default .select2-results__option--selected,
body.admin-theme .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
}

body.admin-theme .fixed.bottom-4.right-4 {
  box-shadow: var(--shadow-stack) !important;
  border-radius: var(--radius-12) !important;
}

@media (max-width: 768px) {
  body.admin-theme main,
  body.admin-theme .container,
  body.admin-theme .max-w-7xl,
  body.admin-theme .max-w-2xl,
  body.admin-theme .import-container {
    width: min(1200px, calc(100% - 20px));
  }
}
