/* ===== RESET BÁSICO ===== */
.pvw-dashboard, .pvw-login-wrapper {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: #1a1a1a;
  background: #f3f4f6;
  line-height: 1.5;
}

/* ===== DASHBOARD ===== */
.pvw-dashboard {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px 60px;
}

.pvw-dashboard h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.5px;
  border-bottom: 3px solid #6366f1;
  display: inline-block;
  padding-bottom: 8px;
}

/* GRID DE MÉTRICAS */
.pvw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pvw-card {
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pvw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.pvw-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pvw-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pvw-value {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
}

/* SECCIONES */
.pvw-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.pvw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pvw-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.pvw-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 12px;
  font-style: italic;
}

/* TABLAS */
.pvw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.pvw-table th, .pvw-table td {
  text-align: left;
  padding: 14px 16px;
}

.pvw-table thead th {
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pvw-table tbody tr {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.pvw-table tbody tr:hover {
  background: #eef2ff;
}

/* ===== LOGIN ===== */
.pvw-login-wrapper {
  max-width: 420px;
  margin: 100px auto;
  padding: 48px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  text-align: center;
}

.pvw-login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #111827;
}

.pvw-login-form label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

.pvw-login-form input[type="text"],
.pvw-login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pvw-login-form input[type="text"]:focus,
.pvw-login-form input[type="password"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
  outline: none;
}

.pvw-login-form input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pvw-login-form input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.pvw-login-form input[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #6366f1, #4338ca) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  text-align: center !important;
}

.pvw-login-form input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== BOTÓN LOGOUT ===== */
.pvw-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.pvw-logout-btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pvw-logout-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}