/* Global layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #111827;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #111827;
  color: #f9fafb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand span {
  color: #60a5fa;
}

.app-main {
  flex: 1;
  padding: 1.5rem;
}

.app-footer {
  padding: 1rem 1.5rem;
  background: #111827;
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
}

.card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  padding: 1.75rem 1.5rem 1.75rem;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

.section-title {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.section-description {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  form.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.required-marker {
  color: #ef4444;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.field-help {
  font-size: 0.8rem;
  color: #9ca3af;
}

.checkbox-group,
.skills-group {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  background: #f9fafb;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.checkbox-row:last-child {
  margin-bottom: 0;
}

.checkbox-row label {
  font-size: 0.86rem;
  font-weight: 400;
  color: #374151;
}

.skills-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
  .skills-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.button-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.alert {
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.alert-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: #f3f4f6;
}

th,
td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #6b7280;
}

tr:nth-child(even) td {
  background: #f9fafb;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filters select,
.filters input {
  min-width: 160px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  background: #e5e7eb;
  color: #374151;
}

.status-Pending {
  background: #fef3c7;
  color: #92400e;
}

.status-Shortlisted {
  background: #e0f2fe;
  color: #0369a1;
}

.status-Verified {
  background: #dcfce7;
  color: #166534;
}

.status-Rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.status-Verification\ Pending {
  background: #e5e7eb;
  color: #374151;
}

.small {
  font-size: 0.8rem;
}

.file-input {
  font-size: 0.85rem;
}

.login-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #dbeafe 0, #f4f6fb 45%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 2rem 1.75rem 2.1rem;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.inline {
  display: inline;
}

.nowrap {
  white-space: nowrap;
}

