﻿:root {
  --app-surface: #ffffff;
  --app-border: #e9ecef;
}

body {
  background: linear-gradient(180deg, #f4f6fb 0%, #eef1f7 100%);
}

.login-card {
  max-width: 460px;
  margin-top: 8vh;
}

.login-icon {
  font-size: 2.5rem;
}

.card {
  border-radius: 14px;
  border: 1px solid var(--app-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card-header {
  border-radius: 14px 14px 0 0 !important;
  font-weight: 500;
}

.btn {
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.thumb {
  width: 90px;
  height: 90px;
  border: 2px dashed #adb5bd;
  border-radius: 10px;
  object-fit: cover;
  background: #f8f9fa;
}

.thumb-sm {
  width: 48px;
  height: 48px;
  border-style: solid;
}

#addTbl th,
#addTbl td {
  min-width: 120px;
  vertical-align: middle;
}

#addTbl th:nth-child(2),
#addTbl td:nth-child(2) {
  min-width: 110px;
}

#candidatesTable td,
#candidatesTable th {
  vertical-align: middle;
}

.btn-group {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.btn-group > .btn {
  border-radius: var(--bs-btn-border-radius) !important;
}

.candidate-search {
  width: min(100%, 300px);
}

.actions {
  white-space: nowrap;
}

.app-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.app-tab-btn {
  border: none;
  background: none;
  padding: 0.6rem 1rem;
  color: #6c757d;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.app-tab-btn:hover {
  color: var(--bs-primary);
}

.app-tab-btn.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}

#historyTable tbody tr:hover,
#itemsTable tbody tr:hover,
#candidatesTable tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

@keyframes skeleton-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.skeleton {
  display: inline-block;
  background-color: #e9ecef;
  border-radius: 6px;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skeleton-text {
  width: 90px;
  height: 14px;
}

.skeleton-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.skeleton-row td {
  vertical-align: middle;
}

.toast {
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.15);
}

.modal-content {
  border-radius: 14px;
  border: none;
}

.error-message {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

.badge-status-PENDING {
  background-color: #6c757d;
}

.badge-status-PROCESSING {
  background-color: #0d6efd;
}

.badge-status-SUCCEEDED,
.badge-status-COMPLETED {
  background-color: #198754;
}

.badge-status-FAILED {
  background-color: #dc3545;
}

.badge-status-COMPLETED_WITH_ERRORS {
  background-color: #fd7e14;
}
