body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
}

/* MENU ADMIN */
.admin-nav {
  width: 260px;
  height: 100vh;
  background: #0b3d2e;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo img {
  width: 40px;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.admin-menu li {
  margin-bottom: 15px;
}

.admin-menu a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
  border-radius: 6px;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: #0f5c45;
}

.admin-logout {
  background: #8b0000;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
}

/* CONTENU */
.admin-content {
  margin-left: 280px;
  padding: 40px;
  width: calc(100% - 280px);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.kpi-card {
  background: #e8f5f1;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.kpi-number {
  font-size: 32px;
  font-weight: bold;
  margin-top: 10px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.module-card {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #0b3d2e;
  font-weight: bold;
  border: 1px solid #ddd;
}

.module-card:hover {
  background: #e8f5f1;
}
.search-bar {
  margin: 20px 0;
}

.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.btn-small {
  padding: 6px 10px;
  background: #0b3d2e;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 5px;
}

.btn-danger {
  background: #b30000;
}
.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: white;
}

.status.valid {
  background: #0b8a3b;
}

.status.pending {
  background: #c98a00;
}

.status.failed {
  background: #b30000;
}
.card-preview {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.card {
  width: 300px;
  padding: 20px;
  border-radius: 12px;
  background: white;
  border: 2px solid #0b3d2e;
  text-align: center;
}

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

.qr-code {
  width: 100px;
  margin-top: 10px;
}
.certificate-preview {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.certificate {
  width: 500px;
  padding: 30px;
  border: 2px solid #0b3d2e;
  border-radius: 12px;
  background: white;
  text-align: center;
}

.cert-logo {
  width: 80px;
  margin-bottom: 10px;
}

.qr-code {
  width: 120px;
  margin-top: 20px;
}
.qr-result {
  margin-top: 15px;
  padding: 10px;
  background: #e8f5f1;
  border-radius: 6px;
}

.certificate-preview {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.certificate {
  width: 400px;
  padding: 20px;
  border: 2px solid #0b3d2e;
  border-radius: 12px;
  background: white;
  text-align: center;
}

.cert-logo {
  width: 70px;
}

.qr-code {
  width: 120px;
  margin-top: 15px;
}
/* Aperçu détaillé */
.certificate-preview {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.certificate-preview .certificate {
  width: 450px;
  padding: 20px;
  border: 2px solid #0b3d2e;
  border-radius: 12px;
  background: white;
  text-align: center;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.chart-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.chart-box h3 {
  margin-bottom: 15px;
}
.actions-bar {
  margin: 20px 0;
  text-align: right;
}

.certificate-preview {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.certificate {
  width: 400px;
  padding: 20px;
  border: 2px solid #0b3d2e;
  border-radius: 12px;
  background: white;
  text-align: center;
}

.cert-logo {
  width: 70px;
  margin-bottom: 10px;
}
