/* Компоненты ui-kit (без Tailwind build). Токены — ui-kit/tailwind.config.js */

body {
  font-family: "DM Sans", sans-serif;
  color: #342f2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  transition: all 150ms;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-danger:focus,
.btn-ghost:focus {
  outline: none;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-ghost:active {
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-ghost {
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.btn-primary {
  background-color: #342f2b;
  color: #fdfcf9;
}

.btn-primary:hover {
  background-color: #1e1b18;
}

.btn-primary:focus {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8f8070;
}

.btn-secondary {
  background-color: #f2ece0;
  color: #342f2b;
}

.btn-secondary:hover {
  background-color: #e8dece;
}

.btn-secondary:focus {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d9c9b0;
}

.btn-danger {
  background-color: #c08070;
  color: #fff;
}

.btn-danger:hover {
  background-color: #a85e4e;
}

.btn-ghost {
  background-color: transparent;
  color: #4e4540;
}

.btn-ghost:hover {
  background-color: #f2ece0;
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

@media (min-width: 1024px) {
  .btn-sm {
    min-height: 0;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 8px;
  }
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  border-radius: 16px;
  font-size: 1rem;
  min-height: 3rem;
}

.card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(74, 59, 44, 0.08);
  border: 1px solid #f2ece0;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e8dece;
  background-color: #fdfcf9;
  color: #342f2b;
  font-size: 1rem;
  line-height: normal;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.input::placeholder {
  color: #b5a994;
}

.input:focus {
  outline: none;
  border-color: #d9c9b0;
  box-shadow: 0 0 0 2px #d9c9b0;
}

@media (min-width: 1024px) {
  .input {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b6055;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .label {
    margin-bottom: 0.375rem;
  }
}

.badge,
.badge-green,
.badge-amber,
.badge-red,
.badge-gray {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.badge-green { background-color: #eef2ee; color: #477047; }
.badge-amber { background-color: #fef3c7; color: #b45309; }
.badge-red   { background-color: #f5ede8; color: #a85e4e; }
.badge-gray  { background-color: #f2ece0; color: #6b6055; }

.alert,
.alert-info,
.alert-error,
.alert-warning,
.alert-inline {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.alert-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background-color: #eef2ee;
  border: 1px solid #d4e0d4;
  color: #477047;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-inline {
  color: #a85e4e;
  background-color: #f5ede8;
  border: 1px solid #e8d0c5;
}

.status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: background-color 150ms;
}

.status-dot-ok   { background-color: #82ab82; }
.status-dot-warn { background-color: #fbbf24; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #e8dece; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: #d9c9b0; }

[x-cloak] { display: none !important; }

.fade-enter-active, .fade-leave-active { transition: opacity 0.15s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.slide-enter-active, .slide-leave-active {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-enter-from, .slide-leave-to {
  opacity: 0;
  transform: translateY(8px);
}
