﻿body {
  font-family: "Manrope", sans-serif;
  background-image: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.12), transparent 42%), radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.1), transparent 30%);
}

.sidebar {
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.85rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-item.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

button {
  border: 0;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.98);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid #dbe4f0;
}

th,
td {
  padding: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.84rem;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

tr:hover td {
  background: #f8fbff;
}

.alert {
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  font-weight: 700;
}

.alert.success {
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #166534;
}

.alert.error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.kpi {
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  padding: 0.95rem;
}

.kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.small {
  font-size: 0.8rem;
  color: #64748b;
}

.actions {
  min-width: 160px;
  white-space: nowrap;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 0.55rem;
  border: 0;
  background: #0f172a;
  padding: 0.42rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.btn-small:hover {
  opacity: 0.92;
}

.btn-danger {
  background: #dc2626;
}

.btn-link {
  margin-left: 0.6rem;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.animate-enter {
  animation: enter 0.35s ease;
}

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

@media (max-width: 768px) {
  .card {
    padding: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem;
    font-size: 0.76rem;
  }
}