.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  min-height: 40px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: #1a73e8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background 150ms,
    transform 100ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #1765cc;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid #aecbfa;
  cursor: pointer;
  transition:
    background 150ms,
    border-color 150ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: #e8f0fe;
  border-color: #8ab4f8;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition:
    background 150ms,
    color 150ms;
  text-decoration: none;
}
.btn-ghost:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: #ef4444;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 150ms;
  text-decoration: none;
}
.btn-danger:hover {
  background: #dc2626;
}

.input {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  outline: none;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.input::placeholder {
  color: #94a3b8;
}
.input:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.input:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.textarea {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  outline: none;
  resize: vertical;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.textarea::placeholder {
  color: #94a3b8;
}
.textarea:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.select {
  width: 100%;
  padding: 0.5625rem 2.5rem 0.5625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.select:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-blue {
  background: #d2e3fc;
  color: #1a73e8;
}
.badge-green {
  background: #dcfce7;
  color: #15803d;
}
.badge-yellow {
  background: #fef9c3;
  color: #a16207;
}
.badge-red {
  background: #fee2e2;
  color: #dc2626;
}
.badge-gray {
  background: #f1f5f9;
  color: #475569;
}
.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.badge-gold {
  background: #fef3c7;
  color: #b45309;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 0.625rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover td {
  background: #f8fafc;
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-md);
}

.animate-fade-up {
  animation: fadeUp 0.3s ease-out both;
}
.animate-fade-in {
  animation: fadeIn 0.2s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.animate-pulse-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.6);
  }
}

.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #1a73e8, #4285f4);
  transition: width 0.6s ease;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
