﻿:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #eff4ff;
  --bg: #eff4ff;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --border: rgba(148, 163, 184, 0.2);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-strong: #8b5cf6;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 25%), linear-gradient(180deg, #eff4ff 0%, #f8fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 1rem;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
}

.container {
  width: 100%;
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.text-sm { font-size: 0.9rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 1rem;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, #475569, #64748b);
  color: #fff;
}

.button-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.12);
}

.button-outline-white {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.12);
}

.page-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.tab-label {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  background: #f8fbff;
}

.tab-button.active {
  color: #0f172a;
  background: white;
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(79,70,229,0.96), rgba(99,102,241,0.88));
  border-radius: 1.75rem;
  box-shadow: 0 32px 80px rgba(79, 70, 229, 0.18);
  color: #f8fafc;
  padding: 2.2rem;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 38%);
  filter: blur(90px);
}

.hero-card > * { position: relative; }

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid-cols-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.status-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(79,70,229,0.16);
  border-radius: 1.75rem;
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(79,70,229,0.14);
  border-color: rgba(79,70,229,0.28);
}

.status-card::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: -24px;
  top: -24px;
  background: rgba(99,102,241,0.16);
  border-radius: 50%;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.95);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #94a3b8;
}

.table-friendly th,
.table-friendly td {
  padding: 1rem 1.25rem;
}

.table-friendly tbody tr {
  transition: background 0.2s ease;
}

.table-friendly tbody tr:hover {
  background: #eef2ff;
}

.summary-card,
.issue-summary-card {
  background: #f8fbff;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge--not-started { background: #eef2ff; color: #1e3a8a; }
.status-badge--waiting { background: #e0e7ff; color: #312e81; }
.status-badge--in-progress { background: #dbeafe; color: #1d4ed8; }
.status-badge--finished { background: #dcfce7; color: #166534; }
.status-badge--closed { background: #fee2e2; color: #991b1b; }
.status-badge--solved { background: #d1fae5; color: #065f46; }
.status-badge--unknown { background: #e2e8f0; color: #334155; }

.update-card {
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 1.25rem;
}

.update-card:hover {
  transform: translateY(-2px);
  background-color: #f8fbff;
}

.update-card__header {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #475569;
}

.update-card__header.active {
  color: #0f172a;
}

.update-card__content.hidden {
  display: none;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

th, td {
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(148,163,184,0.18);
}

thead th {
  background: rgba(248,250,255,0.9);
  color: #334155;
  font-weight: 700;
}

.header-bar {
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.header-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.subtitle {
  color: rgba(241,245,249,0.72);
  font-size: 0.9rem;
  line-height: 1.3;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.25);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  color: rgba(255,255,255,0.92);
}

.nav-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .table { font-size: 0.88rem; }
  th, td { padding: 0.75rem 0.85rem; }
}

@media (max-width: 760px) {
  .header-bar .container { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .hero-card { padding: 1.4rem; }
  .hero-card h1 { font-size: 1.9rem; }
  .page-card { padding: 1.35rem; }
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-actions .button {
  min-width: 140px;
}

.form-section {
  padding: 1.5rem;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 1.5rem;
  background: #f8fbff;
}

.form-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-card {
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.field-card h2 {
  margin: 0;
}

.field-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.field-card li {
  display: block;
}

.field-card .button {
  width: 100%;
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148,163,184,0.18);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.form-navigation {
  border-top: 1px solid rgba(148,163,184,0.18);
  padding-top: 1.5rem;
}

.submit-btn {
  display: none;
}

.form-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.96);
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.form-tab:hover {
  transform: translateY(-1px);
  background: #f8fbff;
}

.form-tab.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(79,70,229,0.25);
  box-shadow: 0 16px 32px rgba(79,70,229,0.11);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.sticky-panel {
  position: sticky;
  top: 1.5rem;
}

.field-hint {
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.9rem;
}

.section-note {
  color: #475569;
  font-size: 0.95rem;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    justify-content: flex-start;
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #10b981 100%);
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.96);
  border-radius: 1.75rem;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  padding: 2.25rem;
}

.login-card h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.form-group input {
  width: 100%;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148,163,184,0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
}

.submit-btn {
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.24);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
