/* ==========================================================================
   TalentForge - Dashboard Stylesheet
   Job Seeker & Employer Portal UI
   ========================================================================== */

.tf-dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 74px);
  background-color: #F8FAFC;
}

/* Sidebar */
.tf-dashboard-sidebar {
  position: sticky;
  top: 74px;
  align-self: flex-start;
  height: calc(100vh - 74px);
  width: 260px;
  background-color: #FFFFFF;
  border-right: 1px solid var(--tf-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  z-index: 1025;
}

.tf-sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.tf-user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tf-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E2E8F0;
}

.tf-user-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tf-text-main);
  line-height: 1.2;
}

.tf-user-role {
  font-size: 0.75rem;
  color: var(--tf-text-muted);
}

.tf-sidebar-nav {
  list-style: none;
  padding: 1rem 0.75rem;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.tf-sidebar-nav-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  padding: 0.75rem 0.75rem 0.35rem;
}

.tf-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tf-transition);
  margin-bottom: 0.2rem;
}

.tf-sidebar-link:hover {
  background-color: #F1F5F9;
  color: var(--tf-primary);
}

.tf-sidebar-link.active {
  background-color: #EFF6FF;
  color: var(--tf-secondary);
  font-weight: 600;
}

.tf-sidebar-icon {
  font-size: 1.2rem;
  margin-right: 0.65rem;
}

.tf-sidebar-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #E2E8F0;
  color: #475569;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.tf-sidebar-link.active .tf-sidebar-badge {
  background-color: #DBEAFE;
  color: var(--tf-secondary);
}

.tf-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #F1F5F9;
}

/* Main Content Area */
.tf-dashboard-main {
  flex-grow: 1;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
}

.tf-dashboard-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tf-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tf-page-desc {
  font-size: 0.875rem;
  color: var(--tf-text-muted);
}

/* Metric / Stat Cards */
.tf-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 1.25rem;
  box-shadow: var(--tf-shadow-sm);
  transition: var(--tf-transition);
  height: 100%;
}

.tf-stat-card:hover {
  box-shadow: var(--tf-shadow-md);
  border-color: #CBD5E1;
}

.tf-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tf-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tf-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.tf-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tf-text-main);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tf-stat-trend {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-up {
  color: #10B981;
}

.trend-down {
  color: #EF4444;
}

/* Content Cards & Tables */
.tf-card {
  background: #FFFFFF;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-sm);
  margin-bottom: 1.5rem;
}

.tf-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tf-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
}

.tf-card-body {
  padding: 1.5rem;
}

/* Tables */
.tf-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.tf-table th {
  background-color: #F8FAFC;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--tf-border);
  white-space: nowrap;
}

.tf-table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.875rem;
  color: var(--tf-text-main);
}

.tf-table tr:hover td {
  background-color: #F8FAFC;
}

/* Status Badges */
.tf-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.badge-submitted {
  background-color: #F1F5F9;
  color: #475569;
}

.badge-reviewing {
  background-color: #FEF3C7;
  color: #B45309;
}

.badge-shortlisted {
  background-color: #E0E7FF;
  color: #4338CA;
}

.badge-interview {
  background-color: #EDE9FE;
  color: #6D28D9;
}

.badge-offered {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-rejected {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.badge-active {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-closed {
  background-color: #F1F5F9;
  color: #64748B;
}

/* Dropzone for Uploads */
.tf-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--tf-radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: #F8FAFC;
  transition: var(--tf-transition);
  cursor: pointer;
}

.tf-dropzone:hover, .tf-dropzone.dragover {
  border-color: var(--tf-secondary);
  background-color: #EFF6FF;
}

.tf-dropzone-icon {
  font-size: 2.5rem;
  color: var(--tf-secondary);
  margin-bottom: 0.75rem;
}

/* Mobile Sidebar Toggle */
.tf-sidebar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--tf-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.25rem;
  color: var(--tf-text-main);
}

@media (max-width: 991.98px) {
  .tf-sidebar-toggler {
    display: inline-block;
  }
  
  .tf-dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: var(--tf-shadow-lg);
  }
  
  .tf-dashboard-sidebar.show {
    transform: translateX(0);
  }
  
  .tf-dashboard-main {
    padding: 1.25rem;
  }
}
