/* ************ CUSTOM STYLES ************ */

/* Base font */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background-color: #fafafa;
}

/****************/
/*    HEADER    */
/****************/

#headlogo {
  position: relative;
  width: 100%;
  height: 200px;
  background: navajowhite;
}

.logo {
  position: absolute;
  left: 5%;
  top: 10px;
}

h1 {
  position: absolute;
  color: lightseagreen;
  font-family: "Brush Script MT", "Nature Beauty", cursive;
  font-size: 70px;
  margin-top: 60px;
  margin-left: 28%;
  margin-right: auto;
}

/****************/
/*  CARD STYLE  */
/****************/

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #3C948B;
  text-align: center;
}

/****************/
/*   FILTERS    */
/****************/

.filters-card {
  margin-top: 40px;
  width: 60%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
}

.filters-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 0;
}

.filter-group select {
  padding: 10px 20px;
  width: 200px;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
}

.filter-group select:hover {
  border-color: #3C948B;
}

.filter-group select:focus {
  outline: none;
  border-color: #3C948B;
  box-shadow: 0 0 0 3px rgba(60, 148, 139, 0.15);
}

/****************/
/*    TABLE     */
/****************/

.tablesummary {
  margin-top: 40px;
  width: 60%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
}

.table-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #3C948B;
  text-align: center;
}

.tablesummary .table {
  margin-bottom: 0;
}

.tablesummary .table td {
  padding: 14px 16px;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #f0f0f0;
}

.tablesummary .table tr:last-child td {
  border-bottom: none;
}

.tablesummary .table td:first-child {
  font-weight: 500;
  color: #555;
  width: 65%;
}

.tablesummary .table td:last-child {
  font-weight: 600;
  color: #3C948B;
  text-align: right;
  font-size: 15px;
}

.tablesummary .table tr:hover {
  background-color: #f8fffe;
}

/****************/
/*    CHART     */
/****************/

.chart-card {
  margin-top: 40px;
  margin-bottom: 40px;
  width: 60%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
}

#chart-area {
  display: flex;
  justify-content: center;
  position: relative;
}

#chart-area svg {
  display: block;
}

.bar {
  fill: #3C948B;
  transition: fill 0.2s ease;
}

.bar:hover {
  fill: #2a7069;
}

.axis {
  font: 11px 'Poppins', sans-serif;
}

.axis path,
.axis line {
  fill: none;
  stroke: #ddd;
  shape-rendering: crispEdges;
}

.x-axis path {
  display: none;
}

.axis-title {
  fill: #666;
  font-size: 12px;
  font-weight: 500;
}

/****************/
/*   TOOLTIPS   */
/****************/

#tooltip {
  position: absolute;
  width: 110px;
  height: auto;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 100;
}

#tooltip.hidden {
  display: none;
}

#tooltip p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

#tooltip p:first-child {
  font-weight: 600;
  color: #3C948B;
  margin-bottom: 4px;
}

/****************/
/*   DIVIDER    */
/****************/

hr {
  margin: 40px auto;
  max-width: 80%;
  border: none;
  border-top: 1px solid #e0e0e0;
}
