body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f8f9fa;
}


.main-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

h2,
h3 {
  color: #0056b3;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
  margin-top: 0;
}

form div {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
}

button,
.button-link {
  background-color: #007bff;
  color: white !important;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  margin-right: 10px;
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}


button:hover,
.button-link:hover {
  background-color: #0056b3;
}

.filter-form {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.filter-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filter-form label {
  margin-right: 20px;
  font-weight: normal;
}

.filter-form button {
  background-color: #28a745;
}

.filter-form button:hover {
  background-color: #218838;
}

.results-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 10px;
}



.summary-container {
  overflow-x: auto;
  margin-top: 40px;
  width: 100%;
}

.table-container {
  overflow-x: auto;
}

.donut-chart-container {
  overflow-x: auto;
  /* height: 700px; */
  width: 100%;
}


table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 15px;
}

th,
td {
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #e9ecef;
  font-weight: 600;
}

tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

/* Style for completed tasks */
.status-done {
  background-color: #d4edda !important;
  color: #155724;
}

/* Style for No Label/Empty category rows */
.no-label-row {
  background-color: #fff3cd !important;
  color: #856404;
  font-weight: bold;
}


#pagination-controls {
  margin-top: 10px;
  text-align: center;
}

#pagination-controls button {
  margin: 2px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  color: black !important; /* Default text color for unselected buttons */
}

#pagination-controls button.active {
  background: #007bff;
  color: #fff !important;
  border-color: #007bff;
}

#summary-info {
  margin: 5px 0;
  font-weight: bold;
}


.styled-table {
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  width: 100%;
  overflow-x: auto;
  table-layout: auto;
  word-wrap: break-word;
}
.styled-table th,
.styled-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.styled-table th {
  background: #f2f2f2;
  text-align: left;
}


.report-section {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
}



/* Author Checkbox Styles */
.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-group .select-all-option {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.checkbox-group .author-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkbox-group label:hover {
  background-color: #e9ecef;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

/* Summary Sort Dropdown Styles */
#summarySortDropdown {
  font-size: 14px;
  min-width: 150px;
  cursor: pointer;
}

#summarySortDropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Toggle Switch Styles */
.toggle-switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

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

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
