/* ---------------------------------------------------------
   Skreenit Dashboard Styles (Unified Design System)
   Modern • Clean • Responsive • Accessible
--------------------------------------------------------- */

/* RESET & BASE --------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f7fa;
  color: #2d3748;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* LAYOUT --------------------------------------------------------- */

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR --------------------------------------------------------- */

.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  overflow-y: auto;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding-bottom: 4rem;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar .logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  list-style: none;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255,255,255,0.12);
  border-left-color: #ffd700;
}

.nav-item.active {
  background: rgba(255,255,255,0.18);
  border-left-color: #ffd700;
}

/* SIDEBAR FOOTER --------------------------------------------------------- */

.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.85;
}

.logout-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* MAIN CONTENT --------------------------------------------------------- */

.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 2rem;
  min-height: 100vh;
}

/* SECTION HEADER --------------------------------------------------------- */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #2d3748;
}

.section-actions {
  display: flex;
  gap: 1rem;
}

/* BUTTONS --------------------------------------------------------- */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-danger {
  background: #e53e3e;
  color: #fff;
}

.btn-danger:hover {
  background: #c53030;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* FORM ELEMENTS --------------------------------------------------------- */

.search-input,
.filter-select {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus,
.filter-select:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

/* CARDS & GRIDS --------------------------------------------------------- */

.stats-grid,
.activity-grid,
.jobs-grid,
.candidates-grid,
.applications-grid,
.analytics-grid {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.activity-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.jobs-grid,
.candidates-grid,
.applications-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.analytics-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stat-card,
.activity-card,
.job-card,
.candidate-card,
.application-card,
.analytics-card,
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.job-card:hover,
.candidate-card:hover,
.application-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* STAT CARDS --------------------------------------------------------- */

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
}

/* LIST ITEMS --------------------------------------------------------- */

.job-item,
.candidate-item,
.application-item,
.notification-item {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  transition: background 0.25s ease;
}

.job-item:hover,
.candidate-item:hover,
.application-item:hover {
  background: #f7fafc;
  cursor: pointer;
}

/* STATUS BADGES --------------------------------------------------------- */

.status-badge,
.job-status,
.candidate-status,
.video-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-applied,
.status-draft,
.status-pending {
  background: #fef5e7;
  color: #d69e2e;
}

.status-screening,
.status-active,
.status-published {
  background: #e6fffa;
  color: #319795;
}

.status-interview-scheduled {
  background: #ebf8ff;
  color: #3182ce;
}

.status-interviewed,
.status-completed,
.status-hired {
  background: #f0fff4;
  color: #38a169;
}

.status-offered {
  background: #faf5ff;
  color: #805ad5;
}

.status-rejected {
  background: #fed7d7;
  color: #e53e3e;
}

/* AI SCORE --------------------------------------------------------- */

.ai-score-badge,
.ai-score {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* MODALS --------------------------------------------------------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.modal-header,
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-body {
  padding: 1.5rem;
}

.close {
  font-size: 1.5rem;
  color: #718096;
  cursor: pointer;
  transition: color 0.25s ease;
}

.close:hover {
  color: #2d3748;
}

/* RESPONSIVE --------------------------------------------------------- */

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1.25rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .jobs-grid,
  .candidates-grid,
  .applications-grid,
  .activity-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* DARK MODE --------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  body {
    background: #1a202c;
    color: #e2e8f0;
  }

  .stat-card,
  .activity-card,
  .job-card,
  .candidate-card,
  .application-card,
  .analytics-card,
  .profile-card,
  .modal-content {
    background: #2d3748;
    color: #e2e8f0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .search-input,
  .filter-select {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }
}
