:root {
  --primary: #1bbae1;
  --primary-dark: #1597ba;
  --primary-light: #4dd4f7;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #e74c3c;
  --purple: #9b59b6;
  --dark: #2c3e50;
  --text: #34495e;
  --text-light: #7f8c8d;
  --border: #e1e8ed;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --bg-light: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  left: 16px;
  z-index: 1000;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  background: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.4s ease;
  gap: 12px;
}

.header__back {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.header__back:hover {
  background: rgba(27, 186, 225, 0.08);
  transform: translateX(-5px);
}

.header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  font-family: "JetBrains Mono", monospace;
}

.header__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(27, 186, 225, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: white;
  box-shadow: var(--shadow);
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 40px 50px;
}

.hero {
  background: var(--hero-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__title {
  font-size: 38px;
  font-weight: 300;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}

.hero__title strong {
  font-weight: 900;
}

.hero__subtitle {
  font-size: 16px;
  opacity: 0.95;
  max-width: 720px;
  line-height: 1.7;
  position: relative;
}

.hero__meta {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  position: relative;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.hero__meta-item i {
  font-size: 16px;
  opacity: 0.9;
}

.section-title {
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 22px;
  font-family: "JetBrains Mono", monospace;
  color: var(--dark);
}

.section-title strong {
  font-weight: 900;
  color: var(--primary);
}

.toolbar {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.toolbar__left,
.toolbar__right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filter-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  font-family: "JetBrains Mono", monospace;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 186, 225, 0.1);
}

.search-box i {
  color: var(--text-light);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 200px;
  font-family: "Inter", sans-serif;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.kpi-card.success::before {
  background: linear-gradient(90deg, var(--success), #2ecc71);
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, var(--warning), #f39c12);
}

.kpi-card.danger::before {
  background: linear-gradient(90deg, var(--danger), #e74c3c);
}

.kpi-card.info::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.kpi-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 8px;
  color: var(--dark);
}

.kpi-value.success {
  color: var(--success);
}

.kpi-value.warning {
  color: var(--warning);
}

.kpi-value.danger {
  color: var(--danger);
}

.kpi-value.info {
  color: var(--primary);
}

.kpi-meta {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease 0.3s both;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  font-family: "JetBrains Mono", monospace;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-meta {
  font-size: 13px;
  color: var(--text-light);
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--bg-light);
  padding-left: 10px;
}

.list-item span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}

.badge.success {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
}

.badge.warning {
  background: rgba(230, 126, 34, 0.12);
  color: var(--warning);
}

.badge.danger {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
}

.badge.purple {
  background: rgba(155, 89, 182, 0.12);
  color: var(--purple);
}

.badge.info {
  background: rgba(27, 186, 225, 0.12);
  color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
}

.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.table thead {
  background: var(--table-accent, linear-gradient(135deg, var(--primary), var(--primary-dark)));
  color: white;
}

.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: var(--text);
}

.table tbody tr {
  transition: all 0.3s;
}

.table tbody tr:hover {
  background: var(--bg-light);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 900px) {
  .header {
    padding: 16px 20px;
  }

  .container {
    padding: 24px 20px 40px;
  }

  .hero {
    padding: 28px;
  }

  .hero__title {
    font-size: 30px;
  }
}
