@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-subtle: #EEF2FF;
  --success: #10B981;
  --success-hover: #059669;
  --success-subtle: #D1FAE5;
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  background-color: var(--bg-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
}

.card-header .badge {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  padding: 0.3em 0.7em;
}

.card-body {
  padding: 1rem;
}

.card-footer {
  background: transparent !important;
  border-top: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
}

.list-unstyled li {
  line-height: 1.5;
}

.font-monospace {
  font-size: 0.8em;
  color: var(--text-muted);
}

.badge-unit {
  background-color: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  padding: 0.25em 0.6em;
}

.badge-unit:hover {
  background-color: var(--primary);
  color: #fff;
  cursor: default;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-hover) 0%, var(--success) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-outline-light {
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8rem;
}

.btn-sm {
  border-radius: var(--radius-sm);
}

h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-muted {
  color: var(--text-muted) !important;
}

hr {
  border-color: var(--border-color);
}

.alert {
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.875rem;
}

.alert-info {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

@media (max-width: 768px) {
  .card:hover {
    transform: none;
  }
}
