/* General Styling */
  body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
  }

  .dashboard-container {
    padding: 20px;
  }

  /* Top Tiles Section */
  .top-tiles {
    margin-bottom: 20px;
  }

  .tile {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-top: 15px;
  }

  .tile:hover {
    transform: translateY(-5px);
  }

  .tile-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
  }

  .tile-count {
    font-size: 36px;
    font-weight: bold;
    color: #333;
  }

  /* Candidate Search Section */
  .candidate-search .search-panel {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
  }

  .search-panel h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
  }

  .search-panel input.form-control {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
    display: inline;
  }

  .search-panel button.btn {
    margin-bottom: 5px;
    font-size: 14px;
  }

  /* Assessments Section */
  .assessments {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }

  .assessments h3,
  .assessments h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
  }

  .active-assessments,
  .completed-assessments {
    margin-bottom: 20px;
  }

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

  .table th,
  .table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    font-size: 14px;
  }

  .table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
  }

  .table td button {
    font-size: 12px;
  }

  /* Button Styles */
  .btn {
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
  }

  .btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
    transition: background-color 0.3s ease;
  }

  .btn-primary:hover {
    background-color: #0056b3 !important;
  }

  .btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
  }

  .btn-link:hover {
    color: #0056b3;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .top-tiles {
      flex-direction: column;
    }

    .tile {
      margin-bottom: 15px;
    }

    .candidate-search,
    .assessments {
      margin-bottom: 20px;
    }
  }

  /* Create New Assessment Section */
.create-assessment {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 11px;
  margin-top: 15px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.create-assessment h3 {
  font-size: 18px;
  margin: 5px;
}

.create-assessment p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.create-assessment .btn {
  font-size: 14px;
  padding: 10px 15px;
}





  /* Common styles for all labels */
.status-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

/* Specific styles for each status */
.label-completed {
  background-color: green;
}

.label-draft {
background-color: grey
}

.label-in-progress {
  background-color: yellow;
  color: black; /* Use black text for contrast */
}

.label-not-started {
  background-color: red;
}

.label-unknown {
  background-color: gray;
}


.date-filter-container {
  display: flex;
  justify-content: space-between; /* Aligns it to the right */
  /* align-items: center; */
  padding: 15px 20px;
  border-bottom: 1px solid #ddd; /* Adds a subtle separation */
  margin-bottom: 15px;
}

.filter-label {
  font-weight: bold;
  color: #333;
  margin-right: 10px;
}

.form-control {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: auto;
}

.custom-date-range {
  display: flex;
  align-items: center;
  gap: 15px; /* Adds consistent spacing between elements */
  margin-top: 10px; /* Adds a small gap from the dropdown */
}

.date-label {
  font-weight: 600;
  color: #555;
  margin-right: 5px; /* Spacing between label and input */
}

.date-input {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px; /* Ensures consistent width for date inputs */
}

@media (max-width: 768px) {
  .custom-date-range {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .date-input {
    width: 100%; /* Full width on smaller screens */
  }
}

.apply-btn {
  padding: 5px 15px;
  font-size: 14px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 15px; /* Space between date inputs and button */
  transition: background-color 0.3s ease;
}

.apply-btn:hover {
  background-color: #0056b3;
}



.assessment-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: bold;
  justify-content: right;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(14px);
}








/* General Form Styling */
.form-horizontal .form-group {
  margin-bottom: 20px;
}

.form-horizontal .control-label {
  text-align: left;
  font-weight: bold;
  font-size: 14px;
}

.form-control {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
  font-size: 14px;
}

.btn {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
}

.btn-sm {
  padding: 5px 10px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #a71d2a;
  border-color: #a71d2a;
}

/* Added Users Section */
#added-users-list {
  list-style: none;
  padding: 0;
}

#added-users-list .list-group-item {
  margin-bottom: 5px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Manual Input Section */
#manual_name, #manual_email, #manual_mobile {
  margin-bottom: 10px;
}

#manual_email, #manual_mobile {
  margin-top: 5px;
}

/* File Upload */
#csv_file {
  margin-top: 10px;
}

small {
  font-size: 12px;
  color: #6c757d;
}

/* Notes Section */
.alert-warning {
  font-size: 14px;
  text-align: center;
}

/* Spacing and Layout Adjustments */
.x_panel {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #ffffff;
}

.x_title h2 {
  font-size: 16px;
  font-weight: bold;
}

.x_title ul.panel_toolbox {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ln_solid {
  border-top: 1px solid #ddd;
  margin: 20px 0;
}


.btn-close-least {
    background-color: #d6d8db;
    color: #212529; /* Dark gray for better readability */
    border: none;
}
.btn-close-least:hover {
    background-color: #c8cbce; /* Slightly darker for hover effect */
}



/* Container for all cards */
.test-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Individual test card styling */
.test-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth hover effects */
}

/* Hover effects */
.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Test name styling */
.test-card-header {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

/* Test description styling */
.test-card-description {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Ensures consistent spacing */
    text-align: center;
}

.test-card-footer{
    text-align: center;
}

/* Button styling */
.select-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.select-btn:hover {
    background-color: #0056b3;
}

.select-btn.selected {
    background-color: #28a745;
    color: white;
}

.select-btn.selected:hover {
    background-color: #218838;
}


#ajax-loader {
  display: block; /* Ensure it's visible */
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #007bff; /* Blue spinner */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the loader */
  z-index: 9999; /* Ensure it's on top */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  .timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
  }
  .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
  }
  .timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    box-sizing: border-box;
  }
  .timeline-item.left {
    left: 0;
  }
  .timeline-item.right {
    left: 50%;
    margin-top: 30%;
  }
  .timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
  }
  .timeline-item.left::after {
    right: -8px;
  }
  .timeline-item.right::after {
    left: -8px;
  }
  .timeline-item.today::after {
    background: #007bff; /* Highlight "today" */
  }
  .timeline-date {
    font-weight: bold;
    color: #007bff;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
  }
  .timeline-item.left .timeline-date {
    left: 10px;
  }
  .timeline-item.right .timeline-date {
    right: 10px;
  }
  .timeline-content {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    position: relative;
    z-index: 2;
  }
  .status {
    display: block;
    margin-top: 5px;
    color: #666;
  }


.integrity-score-box {
      background: #f8f9fa;
      padding: 10px 15px;
      border-radius: 8px;
      display: inline-block;
      font-size: 18px;
      font-weight: bold;
      border: 2px solid #ccc;
      text-align: center;
      float: right;
    }

    .integrity-score-box .label {
      display: block;
      font-size: 14px;
      color: #555;
    }

    .integrity-score-box .score {
      font-size: 22px;
      padding: 5px 10px;
      border-radius: 6px;
      font-weight: bold;
    }

    .score.high { color: green; }
    .score.medium { color: orange; }
    .score.low { color: red; }

    .log-image {
  margin-top: 10px;
}

.log-thumbnail {
  max-width: 150px;
  max-height: 100px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.log-thumbnail:hover {
  transform: scale(1.1);
}