/* GENERAL STYLES */

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

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f6fa;
  color: #222;
  line-height: 1.6;
  padding: 2rem;
  position: relative;
}

/* PAGE TITLE */
h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

/* DASHBOARD*/
#dashboard {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* LEFT TITLE */
#left-panel {
  flex: 3;
}

/* FILTER SECTION */
#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

#filters select {
  padding: 0.75rem 2rem 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 15px;
  border: 1px solid #ccc;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: border 0.2s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10"><path fill="%237b61ff" d="M1 1l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

#filters select:focus {
  outline: none;
  border: 2px solid #7b61ff;
}

/* SEARCH BAR */
#search-bar {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 15px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  width: 250px;
  transition: border 0.2s ease;
}

#search-bar:focus {
  outline: none;
  border: 2px solid #7b61ff;
}

/* PROGRAM CARDS */

#program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.program-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
  max-width: 300px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.program-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #240046;
}

.program-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #240046;
}

.program-thumb {
  max-width: 100px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.program-details {
  flex: 1;
}

.contact-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #240046;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* RIGHT PANEL*/
#right-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* CHART STYLES*/

.chart-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ACCESSIBILITY FOCUS STYLES */
*:focus {
  outline: 3px solid #7b61ff;
  outline-offset: 4px;
}
