/**
 * Jobus Admin Dashboard Styles
 *
 * This file is compiled to admin-dashboard.css for the admin dashboard page.
 * It's loaded specifically on the Dashboard page for performance.
 *
 * @package Jobus
 * @since 1.5.0
 */
/**
 * Jobus Admin Dashboard Styles
 *
 * @package Jobus
 * @since 1.5.0
 */
.jbs-dashboard-wrap {
  margin: 20px auto;
  max-width: 1600px;
}

.jbs-dashboard-header {
  background: linear-gradient(135deg, #31795A 0%, #244034 100%);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  color: #fff;
}

.jbs-dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.jbs-dashboard-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jbs-dashboard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}
.jbs-dashboard-icon svg {
  stroke: #fff;
}

.jbs-dashboard-title-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.jbs-dashboard-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.jbs-dashboard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jbs-dashboard-version {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.jbs-pro-badge {
  padding: 4px 12px;
  background: #D2F34C;
  color: #111827;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jbs-dashboard-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.jbs-dashboard-date .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.jbs-quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.jbs-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.jbs-quick-action .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}
.jbs-quick-action.jbs-quick-action-primary {
  background: #31795A;
  color: #fff;
}
.jbs-quick-action.jbs-quick-action-primary:hover {
  background: rgb(37.24, 91.96, 68.4);
  color: #fff;
}
.jbs-quick-action.jbs-quick-action-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.jbs-quick-action.jbs-quick-action-secondary:hover {
  border-color: #31795A;
  color: #31795A;
  background: #fff;
}

.jbs-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.jbs-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}
.jbs-stat-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.jbs-stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}
.jbs-stat-card-icon svg {
  width: 24px;
  height: 24px;
}

.jbs-stat-jobs .jbs-stat-card-icon {
  background: rgba(49, 121, 90, 0.1);
}
.jbs-stat-jobs .jbs-stat-card-icon svg {
  stroke: #31795A;
}

.jbs-stat-applications .jbs-stat-card-icon {
  background: rgba(59, 130, 246, 0.1);
}
.jbs-stat-applications .jbs-stat-card-icon svg {
  stroke: #3b82f6;
}

.jbs-stat-companies .jbs-stat-card-icon {
  background: rgba(245, 158, 11, 0.1);
}
.jbs-stat-companies .jbs-stat-card-icon svg {
  stroke: #f59e0b;
}

.jbs-stat-candidates .jbs-stat-card-icon {
  background: rgba(139, 92, 246, 0.1);
}
.jbs-stat-candidates .jbs-stat-card-icon svg {
  stroke: #8b5cf6;
}

.jbs-stat-card-content {
  flex: 1;
  min-width: 0;
}

.jbs-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.jbs-stat-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.jbs-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 4px;
}
.jbs-stat-trend .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}
.jbs-stat-trend.jbs-stat-trend-up {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.jbs-stat-trend.jbs-stat-trend-down {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.jbs-stat-card-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9ca3af;
  transition: all 0.2s ease;
}
.jbs-stat-card-link:hover {
  background: #f3f4f6;
  color: #31795A;
}
.jbs-stat-card-link .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.jbs-status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.jbs-status-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.jbs-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jbs-status-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.jbs-status-pending .jbs-status-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.jbs-status-approved .jbs-status-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.jbs-status-rejected .jbs-status-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.jbs-status-content {
  flex: 1;
}

.jbs-status-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.jbs-status-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.jbs-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.jbs-dashboard-column-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.jbs-dashboard-column-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jbs-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.jbs-card-warning {
  border-color: rgba(245, 158, 11, 0.3);
}
.jbs-card-warning .jbs-card-header {
  background: rgba(245, 158, 11, 0.05);
}
.jbs-card-warning .jbs-card-header h2 .dashicons {
  color: #f59e0b;
}

.jbs-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.jbs-card-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jbs-card-header h2 .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.jbs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #31795A;
  text-decoration: none;
  font-weight: 500;
}
.jbs-card-link:hover {
  color: rgb(34.3, 84.7, 63);
}
.jbs-card-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.jbs-card-body {
  padding: 20px;
}

.jbs-card-list {
  padding: 12px 20px;
}

.jbs-admin-table {
  width: 100%;
  border-collapse: collapse;
}
.jbs-admin-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.jbs-admin-table tbody td {
  padding: 12px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
}
.jbs-admin-table tbody td a {
  color: #111827;
  text-decoration: none;
}
.jbs-admin-table tbody td a:hover {
  color: #31795A;
}
.jbs-admin-table tbody tr:last-child td {
  border-bottom: none;
}
.jbs-admin-table .jbs-table-center {
  text-align: center;
}
.jbs-admin-table .jbs-table-right {
  text-align: right;
}

.jbs-applicant-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jbs-applicant-cell img {
  border-radius: 50%;
}

.jbs-admin-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.jbs-admin-badge.jbs-admin-badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: rgb(196.9291338583, 126.7125984252, 8.0708661417);
}
.jbs-admin-badge.jbs-admin-badge-approved {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(26.4935064935, 153.5064935065, 73.2467532468);
}
.jbs-admin-badge.jbs-admin-badge-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}

.jbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jbs-list-item {
  border-bottom: 1px solid #f3f4f6;
}
.jbs-list-item:last-child {
  border-bottom: none;
}
.jbs-list-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: #374151;
  transition: color 0.2s ease;
}
.jbs-list-item a:hover {
  color: #31795A;
}

.jbs-list-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 12px;
}

.jbs-list-badge {
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
}
.jbs-list-badge.jbs-list-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: rgb(196.9291338583, 126.7125984252, 8.0708661417);
}

.jbs-analytics-empty-state {
  text-align: center;
  padding: 40px 20px;
}
.jbs-analytics-empty-state .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #d1d5db;
  margin-bottom: 12px;
}
.jbs-analytics-empty-state p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.jbs-card-resources .jbs-card-body {
  padding: 8px 20px;
}

.jbs-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jbs-resource-list li {
  border-bottom: 1px solid #f3f4f6;
}
.jbs-resource-list li:last-child {
  border-bottom: none;
}
.jbs-resource-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.jbs-resource-list a .dashicons:first-child {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #9ca3af;
}
.jbs-resource-list a .dashicons:last-child {
  margin-left: auto;
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #9ca3af;
}
.jbs-resource-list a:hover {
  color: #31795A;
}
.jbs-resource-list a:hover .dashicons:first-child {
  color: #31795A;
}
.jbs-resource-list .jbs-upgrade-link {
  color: #31795A;
}
.jbs-resource-list .jbs-upgrade-link .dashicons:first-child {
  color: #D2F34C;
}
.jbs-resource-list .jbs-upgrade-link:hover {
  color: rgb(34.3, 84.7, 63);
}

@media screen and (max-width: 1200px) {
  .jbs-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .jbs-dashboard-column-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media screen and (max-width: 782px) {
  .jbs-dashboard-wrap {
    margin: 10px 10px 10px 0;
  }
  .jbs-dashboard-header {
    padding: 20px;
  }
  .jbs-dashboard-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .jbs-dashboard-meta {
    flex-wrap: wrap;
  }
  .jbs-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jbs-status-row {
    grid-template-columns: 1fr;
  }
  .jbs-dashboard-column-sidebar {
    grid-template-columns: 1fr;
  }
  .jbs-quick-actions {
    flex-direction: column;
  }
  .jbs-quick-action {
    justify-content: center;
  }
}
@media screen and (max-width: 480px) {
  .jbs-stats-grid {
    grid-template-columns: 1fr;
  }
  .jbs-stat-value {
    font-size: 24px;
  }
}