body {
  background-color: #f0f2f5;
  color: #333;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin: 0;
  padding: 0;
}

.manifesto-header-image {
  width: 100%;
  display: block;
}

.manifesto-header {
  text-align: center;
  padding: 20px;
}

.manifesto-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #007bff;
  margin: 0;
}

.manifesto-header p {
  font-size: 16px;
  margin: 10px 0 0 0;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.graph-header {
  margin-bottom: 20px;
}

.graph-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.graph-header p {
  color: #888;
  margin: 0;
  font-size: 14px;
}

.manifesto-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 600;
  color: #333;
}

.legend-container {
  margin-left: 40px;
}

.legend-container ul {
  list-style: none;
  padding: 0;
}

.legend-container li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.color-box {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border-radius: 50%;
}

.fulfilled {
  background-color: #28a745;
}

.modified {
  background-color: #007bff;
}

.in-progress {
  background-color: #ffc107;
}

.stalled {
  background-color: #6c757d;
}

.not-fulfilled {
  background-color: #dc3545;
}

.percentage {
  margin-left: auto;
  padding-left: 20px;
  color: #888;
}

.promise-tracker h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.promise-tracker p {
  color: #888;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: end;
}

.search-wrapper {
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.filters input,
.filters select {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  color: #333;
  box-sizing: border-box;
}

.select-wrapper {
  display: flex;
  flex-direction: column;
}

.select-wrapper label {
  color: #888;
  margin-bottom: 5px;
  font-size: 14px;
}

.select-wrapper select {
  padding: 12px;
}

#table-container {
  height: 500px;
  overflow-y: auto;
  position: relative;
}

#promise-table {
  width: 100%;
  border-collapse: collapse;
}

#promise-table thead {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
}

#promise-table th,
#promise-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#promise-table th {
  color: #888;
  font-weight: 600;
  font-size: 14px;
}

.status {
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  display: inline-block;
  text-wrap: nowrap;
}

.status.fulfilled {
  background-color: #d4edda;
  color: #155724;
}

.status.modified {
  background-color: #cce5ff;
  color: #004085;
}

.status.in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.status.stalled {
  background-color: #e2e3e5;
  color: #383d41;
}

.status.not-fulfilled {
  background-color: #f8d7da;
  color: #721c24;
}

#loader {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

#loader.hidden {
  display: none;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #007bff;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .manifesto-header {
    flex-direction: column;
  }

  .legend-container {
    margin-left: 0;
    margin-top: 20px;
  }

  #table-container {
    display: none;
  }

  #card-view {
    display: block;
  }

  .promise-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .promise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .promise-card-header .number {
    font-size: 18px;
    font-weight: bold;
  }

  .promise-card-body .detail-row {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .promise-card-body .detail-row:last-child {
    border-bottom: none;
  }

  .promise-card-body .detail-label {
    font-weight: bold;
    color: #888;
  }

  .promise-card-body .detail-value {
    text-align: start;
  }

  .status {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    margin-top: 5px;
    width: auto;
  }

}

@media (min-width: 769px) {
  #card-view {
    display: none;
  }
}