/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f0f4f8;
  color: #1a2332;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #e8ecf1; }
::-webkit-scrollbar-thumb { background: #b0c4d8; border-radius: 10px; }

/* Анимации */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 2000px; }
}
.animate-fade-in-up { animation: fadeInUp 0.45s ease-out forwards; }
.animate-slide-down { animation: slideDown 0.4s ease-out forwards; overflow: hidden; }

/* Карточки */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.glass-card:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.glass-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}
.glass-card-body { padding: 24px; }

/* Строка поиска */
.search-container { max-width: 640px; margin: 0 auto; }
.search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.search-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.12), 0 0 0 4px rgba(59, 130, 246, 0.05);
}
.search-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  z-index: 1;
  transition: color 0.2s;
}
.search-wrapper:focus-within .search-icon { color: #3b82f6; }
.search-input {
  flex: 1 1;
  padding: 16px 50px 16px 52px;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: #1e293b;
  background: transparent;
}
.search-input::placeholder { color: #94a3b8; font-family: 'Inter', sans-serif; font-size: 14px; }
.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.search-submit:hover:not(:disabled) { background: #2563eb; transform: translateY(-50%) scale(1.05); }
.search-submit:disabled { background: #cbd5e1; cursor: not-allowed; }
.search-clear {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  padding: 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.search-clear:hover { color: #64748b; background: #f1f5f9; }


.suggestion-chip:hover { border-color: #3b82f6; color: #3b82f6; background: rgba(59, 130, 246, 0.04); }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #e8ecf1 25%, #f1f5f9 50%, #e8ecf1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* Таблицы в секциях */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.data-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}
.data-table td {
  padding: 10px 16px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.data-table td:first-child { font-weight: 500; color: #64748b; }
