:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-muted: #e9eef9;
  --ink: #111827;
  --muted: #5f6f8a;
  --primary: #1565d8;
  --primary-strong: #0a47a5;
  --accent: #f59e0b;
  --danger: #dc2626;
}

* {
  font-family: "Space Grotesk", sans-serif;
}

body {
  background:
    radial-gradient(circle at 10% 0%, #dbe7ff 0%, transparent 35%),
    radial-gradient(circle at 90% 100%, #cbe2ff 0%, transparent 30%),
    var(--bg);
  color: var(--ink);
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.ui-panel {
  background: var(--surface);
  border: 1px solid #d8e2f3;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(24, 53, 95, 0.08);
}

.ui-card {
  background: #fff;
  border: 1px solid #e2eaf8;
  border-radius: 0.9rem;
  box-shadow: 0 8px 18px rgba(24, 53, 95, 0.06);
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
  transition: all 180ms ease;
}

.ui-btn-primary {
  background: linear-gradient(135deg, var(--primary), #3182f6);
  color: #fff;
}

.ui-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  transform: translateY(-1px);
}

.ui-btn-muted {
  background: #eef2fa;
  color: #1f3558;
}

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

.ui-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ui-table th {
  background: #edf3ff;
  color: #24416f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ui-table th,
.ui-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e6edf9;
}

.ui-table tbody tr:hover {
  background: #f7faff;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.ui-badge-success {
  background: #dcfce7;
  color: #166534;
}

.ui-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.ui-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.ui-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cfdcf3;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.55rem 0.75rem;
  color: #0f172a;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #344a6e;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ui-table th,
  .ui-table td {
    padding: 0.65rem 0.6rem;
    font-size: 0.8rem;
  }

  .ui-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .ui-panel {
    border-radius: 0.85rem;
  }
}
