/* ApplicantsView styles (colocated with the component) */

.applicants-panel .panel-heading {
  align-items: center;
}

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

.field {
  display: grid;
  gap: 6px;
}

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

.field label {
  font-size: 11px;
  font-weight: 600;
  color: #53636e;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px;
  background: #fff;
  color: var(--foreground);
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: #236bcc;
  box-shadow: 0 0 0 3px #236bcc1a;
}

.err-msg {
  color: #c25b5b;
  font-size: 11px;
  margin-top: 2px;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #53636e;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
}

.btn.primary {
  border: 0;
  background: #236bcc;
  color: #fff;
}

.upload-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  background: #fbfcfd;
}

.upload-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.upload-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.drop-zone:hover {
  border-color: #236bcc;
  background: #f8fafc;
}

.drop-zone.dragging {
  border-color: #236bcc;
  background: #eef4ff;
  transform: scale(1.01);
}

.drop-zone.has-file {
  border-color: #22c55e;
  background: #f0fdf4;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone-icon {
  color: #87949d;
}

.drop-zone.dragging .drop-zone-icon,
.drop-zone:hover .drop-zone-icon {
  color: #236bcc;
}

.drop-zone.has-file .drop-zone-icon {
  color: #22c55e;
}

.drop-zone-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drop-title {
  font-size: 13px;
  font-weight: 600;
  color: #53636e;
}

.drop-subtitle {
  font-size: 11px;
  color: #87949d;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.file-size {
  font-size: 11px;
  color: #87949d;
}

.file-input-hidden {
  display: none;
}

.remove-file {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fee2e2;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #dc2626;
}

.remove-file:hover {
  background: #fecaca;
}

.applicant-list {
  display: grid;
  gap: 8px;
}

.applicant-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
}

.applicant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d9e8fa;
  color: #246bce;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.applicant-info {
  min-width: 0;
  flex: 1;
}

.applicant-info b,
.applicant-info small {
  display: block;
}

.applicant-info b {
  font-size: 13px;
}

.applicant-info small {
  color: #84929c;
  font-size: 11px;
  margin-top: 3px;
}

.applicant-cv {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #53636e;
  font-size: 12px;
  max-width: 180px;
  overflow: hidden;
}

.applicant-cv.draggable {
  cursor: grab;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px dashed transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.applicant-cv.draggable:hover {
  border-color: #246bcc;
  background: #eef4ff;
}

.applicant-cv.draggable:active {
  cursor: grabbing;
}

.applicant-cv.is-dragging {
  opacity: 0.5;
  border-color: #246bcc;
  background: #eef4ff;
}

.applicant-cv svg {
  color: #246bcc;
  flex-shrink: 0;
}

.applicant-cv .drag-handle {
  color: #a0aec0;
  flex-shrink: 0;
}

.applicant-cv.draggable:hover .drag-handle {
  color: #246bcc;
}

.applicant-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.applicant-actions .row-action {
  display: grid;
  place-items: center;
  padding: 7px;
}

@media (max-width: 700px) {
  .applicant-row {
    flex-wrap: wrap;
  }

  .applicant-cv {
    width: 100%;
    max-width: none;
    order: 3;
  }

  .applicant-cv.draggable {
    justify-content: center;
  }
}
