/* client/public/css/styles.css */

:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #6c757d;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --body-bg: #f5f8fa;
  --sidebar-bg: #ffffff;
  --box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--body-bg);
  color: #333;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  background-color: var(--sidebar-bg);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #555;
  padding: 0.5rem 1rem;
  margin: 0.2rem 0;
  border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.1);
}

.sidebar .nav-link i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  width: 1.5rem;
  text-align: center;
}

.sidebar .nav-link.active i {
  color: var(--primary-color);
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Navbar */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Timeline for logs */
.timeline {
  position: relative;
  padding: 1rem 0;
  margin: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 2px;
  background-color: #e9ecef;
  left: 32px;
  top: 0;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item-icon {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: #fff;
}

.timeline-item-content {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  border-left: 3px solid var(--info-color);
}

.timeline-item-content p {
  margin-bottom: 0.25rem;
}

.timeline-item-date {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Score display */
.score-pill {
  min-width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Skills display */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.skills-container .badge {
  font-weight: normal;
}

/* Form styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Target site entries */
.target-site-entry {
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Candidate row hover */
.candidate-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.candidate-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Badge colors based on status */
.badge.bg-pending {
  background-color: var(--secondary-color);
}

.badge.bg-in-progress {
  background-color: var(--warning-color);
}

.badge.bg-completed {
  background-color: var(--success-color);
}

.badge.bg-failed {
  background-color: var(--danger-color);
}

/* Error page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Icon square */
.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}
