/* assets/css/dashboard.css - Dashboard Layouts for Candidates, Employers & Admin */

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  background-color: #f8fafc;
}

.dashboard-sidebar {
  width: 270px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 24px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.user-quick-profile {
  padding: 16px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f2b48;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-quick-info h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #0f2b48;
}

.user-quick-info span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.sidebar-item a i {
  font-size: 1.1rem;
  width: 22px;
  color: #94a3b8;
}

.sidebar-item a:hover {
  background: #f1f5f9;
  color: #0f2b48;
}

.sidebar-item.active a {
  background: #0f2b48;
  color: #ffffff;
  font-weight: 600;
}

.sidebar-item.active a i {
  color: #ff6b35;
}

.sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 18px 0;
}

.dashboard-content {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
}

/* METRIC / STAT CARDS */
.stat-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dash-stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f2b48;
  margin: 0 0 4px;
  line-height: 1;
}

.stat-card-info p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-orange { background: #fff0eb; color: #ff6b35; }
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

/* DATA TABLES */
.custom-table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 30px;
}

.table-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-header h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.table-custom td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.9rem;
  vertical-align: middle;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background-color: #f8fafc;
}

/* STATUS BADGES */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.status-pill.applied { background: #e0f2fe; color: #0369a1; }
.status-pill.viewed { background: #f3e8ff; color: #7e22ce; }
.status-pill.shortlisted { background: #dcfce7; color: #15803d; }
.status-pill.interview_scheduled { background: #fef3c7; color: #b45309; }
.status-pill.rejected { background: #fee2e2; color: #b91c1c; }
.status-pill.hired { background: #ccfbf1; color: #0f766e; }
.status-pill.active { background: #dcfce7; color: #15803d; }
.status-pill.closed { background: #f1f5f9; color: #64748b; }

/* PROFILE COMPLETION BAR */
.profile-progress-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  margin-bottom: 25px;
}

.profile-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35 0%, #10b981 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

@media (max-width: 991px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .dashboard-content {
    padding: 20px 16px;
  }
}
