/* Basic reset */
.nmsp-wrapper {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Card layout */
.nmsp-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  margin: 20px auto;
  max-width: 900px;
}

.nmsp-login-card {
  max-width: 420px;
}

.nmsp-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.nmsp-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}

.nmsp-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.nmsp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nmsp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nmsp-full {
  grid-column: 1 / -1;
}

.nmsp-field label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.nmsp-field input,
.nmsp-field select,
.nmsp-field textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  background: #f9fafb;
}

.nmsp-field input:focus,
.nmsp-field select:focus,
.nmsp-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.nmsp-required {
  color: #ef4444;
  margin-left: 4px;
}

.nmsp-btn-primary,
.nmsp-btn-outline {
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.nmsp-btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.nmsp-btn-primary:hover {
  filter: brightness(1.05);
}

.nmsp-btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.nmsp-btn-outline:hover {
  background: #f3f4f6;
}

.nmsp-text-center {
  text-align: center;
}

.nmsp-alert {
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.nmsp-alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

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

.nmsp-alert ul {
  padding-left: 18px;
  margin: 0;
}

/* Dashboard */
.nmsp-dashboard {
  max-width: 1040px;
}

.nmsp-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nmsp-status {
  flex-shrink: 0;
}

.nmsp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.nmsp-badge-approved {
  background: #ecfdf3;
  color: #15803d;
}

.nmsp-badge-pending {
  background: #fffbeb;
  color: #92400e;
}

.nmsp-badge-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.nmsp-profile-summary {
  margin-bottom: 24px;
}

.nmsp-profile-card h3,
.nmsp-help-card h3,
.nmsp-doc-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #111827;
}

.nmsp-profile-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 14px;
}

.nmsp-profile-rows div {
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fafb;
}

.nmsp-profile-rows span {
  color: #6b7280;
}

.nmsp-profile-rows strong {
  color: #111827;
}

.nmsp-quick-links {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.nmsp-quick-links li {
  margin-bottom: 6px;
}

.nmsp-quick-links a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

.nmsp-quick-links a:hover {
  text-decoration: underline;
}

.nmsp-note {
  font-size: 12px;
  color: #6b7280;
}

.nmsp-documents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nmsp-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.nmsp-doc-preview {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
  min-height: 150px;
  overflow: auto;
}

/* Admin area */
.nmsp-admin-wrap .nmsp-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.nmsp-kpi-card {
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.nmsp-kpi-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
}

.nmsp-kpi-number {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.nmsp-kpi-pending {
  border-top: 3px solid #fbbf24;
}

.nmsp-kpi-approved {
  border-top: 3px solid #22c55e;
}

.nmsp-kpi-rejected {
  border-top: 3px solid #ef4444;
}

/* Responsive */
@media (max-width: 900px) {
  .nmsp-documents {
    grid-template-columns: 1fr;
  }
  .nmsp-grid-2 {
    grid-template-columns: 1fr;
  }
  .nmsp-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nmsp-admin-wrap .nmsp-admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nmsp-card {
    padding: 18px;
    border-radius: 12px;
  }
  .nmsp-title {
    font-size: 20px;
  }
  .nmsp-login-card {
    margin: 16px;
  }
  .nmsp-admin-wrap .nmsp-admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}
