.app {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 40px;
}

/* === CARDS KPI === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: #1e293b;
  padding: 24px;
  border-radius: 16px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 14px;
  color: #94a3b8;
}

.card .value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
}

.chart-box {
  background: #1e293b;
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.stat-card h3 {
  font-size: 1rem;
  color: #94a3b8;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
}

.analytics {
  margin-top: 40px;
}

.analytics h2,
.dash {
  margin-bottom: 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.analytics-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 14px;
}

/* === SECCIÓN REPORTES === */
.demo-tag{
  color:#22c55e;
  font-size:12px;
  margin-left:8px;
  font-weight:bold;
  letter-spacing:1px;
}

.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.filters select {
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.table-box {
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
}

.total-box {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #e5e7eb;
}

/* === TABLA USUARIOS === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 35px;
}

th,
td {
  padding: 12px;
  text-align: left;
}

thead {
  background: #0f172a;
}

tbody tr {
  border-bottom: 1px solid #334155;
}

/* Botón cerrar modal */
#cerrarModal{
  position:absolute;
  top:15px;
  right:15px;
  cursor:pointer;
  font-size:18px;
  color:#94a3b8;
  transition:.3s;
}

#cerrarModal:hover{
  color:white;
}

.modal-content{
  position:relative;
}

/* botón eliminar */
.btn-delete {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* botón editar */
.btn-edit{
  background:#38bdf8;
  color:white;
  border:none;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
  margin-right:6px;
}

/* === USUARIOS === */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.user-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
}

.user-card:hover {
  transform: translateY(-4px);
}

.user-card img {
  width: 60px;
  margin-bottom: 10px;
}

.user-card h4 {
  margin-bottom: 5px;
}

.user-card p {
  font-size: 14px;
  opacity: 0.7;
}

/* === MODAL NUEVO USUARIO === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1e293b;
  padding: 30px;
  border-radius: 16px;
  width: 320px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-cancel {
  background: #334155;
}
