* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f8fbff;
  color: #1e293b;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: auto;
}

.header {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: white;
  padding: 24px 0 30px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-size: 30px;
  margin-bottom: 8px;
}

.subtext {
  opacity: 0.95;
  line-height: 1.6;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.main-space {
  padding: 30px 0 50px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin-bottom: 24px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: white;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.section-title {
  font-size: 28px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.card-top h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.pill {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.meta-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.meta-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.card-actions,
.modal-actions,
.auth-links,
.tabs,
.page-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions,
.modal-actions {
  margin-top: 16px;
}

.page-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
}

.btn.primary {
  background: #2563eb;
  color: white;
}

.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.full {
  width: 100%;
}

.auth-page {
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.auth-card.wide {
  max-width: 760px;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-links {
  margin-top: 16px;
  justify-content: space-between;
}

.auth-links a {
  color: #2563eb;
  text-decoration: none;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-row {
  grid-column: 1 / -1;
}

.muted {
  color: #64748b;
  line-height: 1.6;
}

.message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.message.success {
  background: #dcfce7;
  color: #166534;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

.empty-state {
  margin-top: 16px;
  padding: 22px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  background: white;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 760px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  max-height: 92vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.icon-btn {
  border: none;
  background: #e2e8f0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.details-list {
  padding-left: 18px;
  margin-top: 10px;
  line-height: 1.8;
}

.tabs {
  margin-bottom: 20px;
}

.tab-btn {
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e2e8f0;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: #2563eb;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.mb-12 {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}
.certificate-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 14px 0;
  background: #fff;
  padding: 8px;
}
.admin-user-card {
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-user-card:hover {
  transform: translateY(-2px);
}

.admin-user-card.active {
  border: 2px solid #2563eb;
  background: #eff6ff;
}