#chart-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}


.chartjs-render-monitor {
  margin-right: 40px;
}

#sentinelpro-chart-scroll {
  overflow: visible;
  width: 100%;
}


#sentinelpro-chart {
  width: 100% !important;
  height: 420px !important;
  display: block;
}

.sentinelpro-dashboard-section#chart-container {
  padding: 0;
  border: none;
  box-shadow: none;
}


#metric-toggle-wrapper {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

#data-status {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  font-size: 13px;
}

.sentinelpro-pill-toggle {
  display: inline-block;
  border: 1px solid #ccd0d4;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 5px;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #000;
}

.sentinelpro-pill-toggle input[type="checkbox"] {
  display: none;
}

.sentinelpro-pill-toggle input[type="checkbox"]:checked + span {
  background-color: #0073aa;
  color: #fff;
  border-radius: 999px;
  display: inline-block;
  padding: 6px 14px;
}


#event-data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  background-color: #fff;
}

#sentinelpro-chart-table-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

#sentinelpro-chart-table-wrapper table {
  width: 100%;
}

.sentinelpro-full-width-table {
  width: 100%;
  overflow-x: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

table#event-data-table thead {
  background-color: #f9f9f9;
  border-bottom: 2px solid #ccc;
}

#event-data-table td,
#event-data-table th {
  font-size: 13px;
  padding: 10px 12px;
  white-space: nowrap;
}

table#event-data-table tr:nth-child(even) {
  background-color: #fdfdfd;
}

table#event-data-table tr:hover {
  background-color: #f3faff;
}

table#event-data-table thead th {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  z-index: 2;
}

#event-data-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}


.sentinelpro-filter-card {
  background: #fdfdfd;
  padding: 28px 32px;
  border: 1px solid #e0e6ec;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

/* Filter title */
.sentinelpro-filter-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Grid layout */
.sentinelpro-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 32px;
  align-items: start;
  margin-bottom: 20px;
}

/* Labels */
.sentinelpro-filter-group label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inputs and selects */
.sentinelpro-filter-group input[type="text"],
.sentinelpro-filter-group select {
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sentinelpro-filter-group input[type="text"]:focus,
.sentinelpro-filter-group select:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}

/* Chip below date range */
#custom-date-indicator {
  margin-top: 6px;
}

.sentinelpro-custom-chip {
  background: #e0f0ff;
  border: 1px solid #a0d0ff;
  color: #0073aa;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Apply button wrapper */
.sentinelpro-filter-actions {
  display: flex;
  justify-content: flex-end;
}

#apply-filter {
  background: linear-gradient(135deg, #0073aa, #005177);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

#apply-filter:hover {
  background: linear-gradient(135deg, #005177, #003f5c);
}



#custom-date-indicator {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.sentinelpro-custom-chip {
  background: #e0f0ff;
  border: 1px solid #a0d0ff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #0073aa;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  box-sizing: border-box;
}

.sentinelpro-custom-chip #reset-dates {
  color: #0073aa;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  background: #cce0ff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sentinelpro-custom-chip #reset-dates:hover {
  background: #a0d0ff;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .sentinelpro-filter-grid {
    grid-template-columns: 1fr;
  }

  .sentinelpro-dimensions-filter-section .sentinelpro-filter-flex {
    flex-direction: column;
    gap: 16px;
  }

  .sentinelpro-dimensions-filter-section .sentinelpro-filter-group {
    flex: 1 1 auto;
    min-width: auto;
  }

  #metric-toggle-wrapper {
    text-align: left;
    padding: 0 10px;
  }

  table#event-data-table {
    font-size: 12px;
    min-width: 600px;
  }

  table#event-data-table th,
  table#event-data-table td {
    padding: 6px 8px;
  }

  #event-data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #sentinelpro-chart {
    min-width: 100%;
    height: 320px !important;
  }
}

.sentinelpro-dashboard-section {
  background: #ffffff;
  border: 1px solid #d0d7e2;
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  margin-bottom: 36px;
  transition: all 0.3s ease;
}

.sentinelpro-filter-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
}
.sentinelpro-filter-flex > .sentinelpro-filter-group {
  flex: 1 1 240px;
  min-width: 220px;
}

/* Dimensions and Filters Section */
.sentinelpro-dimensions-filter-section {
  background: #ffffff;
  border: 1px solid #e0e6ec;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  padding: 20px;
}

.sentinelpro-dimensions-filter-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentinelpro-dimensions-filter-section .sentinelpro-filter-flex {
  gap: 20px;
}

.sentinelpro-dimensions-filter-section .sentinelpro-filter-group {
  flex: 1 1 200px;
  min-width: 180px;
}

.sentinelpro-dimensions-filter-section label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sentinelpro-dimensions-filter-section select,
.sentinelpro-dimensions-filter-section input[type="text"] {
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.sentinelpro-dimensions-filter-section select:focus,
.sentinelpro-dimensions-filter-section input[type="text"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}

.sentinelpro-dimensions-filter-section select:disabled,
.sentinelpro-dimensions-filter-section input[type="text"]:disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.sentinelpro-dimensions-filter-section select:disabled:after,
.sentinelpro-dimensions-filter-section input[type="text"]:disabled:after {
  content: "⏳";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #0073aa;
}

.sentinelpro-status-message {
  margin: 12px auto;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #2ecc71;
  transition: opacity 0.3s ease;
}

.sentinelpro-status-message.error {
  color: #e74c3c;
}

body.sentinelpro-event-data-page {
  background-color: #f2f4f8;
}

#filter-toggle-box {
  min-height: 140px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#filter-toggle-box.collapsed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#metric-toggle-wrapper.collapsed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}


.sentinelpro-dashboard-wrapper {
  background: #f0f0f1;
  padding: 0;
  min-height: 100vh;
}

.sentinelpro-dashboard-wrapper .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.sentinelpro-page-title {
  background: #23282d;
  color: #fff;
  padding: 24px 32px;
  margin: 0 -20px 30px -20px;
  text-align: left;
  border-bottom: 1px solid #32373c;
}

.sentinelpro-page-title h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sentinelpro-page-title h1 .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #00a0d2;
}

.sentinelpro-page-title .description {
  font-size: 14px;
  color: #b4b9be;
  margin: 0;
  line-height: 1.5;
}

/* Hide Filters button styling */
#toggle-filters {
  background: #fff;
  border: 1.5px solid #e0e4ea;
  color: #1976d2;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

#toggle-filters:hover {
  background: #f0f6ff;
  border-color: #1976d2;
}

/* Ensure proper spacing after header */
.sentinelpro-dashboard-wrapper .wrap > *:first-child:not(.sentinelpro-page-title) {
  margin-top: 0;
}


#sentinelpro-chart-table-wrapper {
  max-width: none;
  width: 100%;
  padding: 0 20px;
}

#event-data-table tr.row-up td {
  background-color: #f0fff5;
}

#event-data-table tr.row-down td {
  background-color: #fff4f4;
}

#event-data-table tr.row-even td {
  background-color: #fdfdfd;
}

#event-data-table td.delta-up {
  color: #2ecc71;
  font-weight: 600;
}

#event-data-table td.delta-down {
  color: #e74c3c;
  font-weight: 600;
}

#event-data-table td.delta-even {
  color: #666;
  font-weight: 600;
}

#event-data-table tr:hover td {
  background-color: #f3faff !important;
}

#event-data-table thead th {
  background: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  #event-data-table {
    min-width: 800px;
  }

  #sentinelpro-chart-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

#event-data-table th.sortable {
  cursor: pointer;
  user-select: none;
}

#event-data-table th.sortable:hover {
  color: #0073aa;
  text-decoration: underline;
}

.sentinelpro-csv-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0073aa, #005177);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  min-width: 180px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 24px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sentinelpro-csv-download:hover {
  background: linear-gradient(135deg, #005177, #003f5c);
  transform: translateY(-1px);
}

.gauge-cards-wrapper {
  display: flex;
  justify-content: space-around; /* Or space-between, or center with gap */
  align-items: flex-start;
  flex-wrap: wrap; /* Allows gauges to wrap to the next line if too many */
  gap: 20px; /* Space between gauges */
  margin-top: 15px;
  margin-bottom: 30px; /* Space below each set of gauges */
}

.gauge-date-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.5em; /* Adjust as needed */
  color: #333;
  width: 100%; /* Ensures title takes full width */
}

.gauge-date-section {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}

.gauge-date-section.double {
  width: 48%;
  margin-right: 2%;
  text-align: left;
}


.gauge-card {
    /* Existing styles for individual gauge cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

/* Optional: Add some styling for the new title */
#engagement-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px; /* More space below title */
    margin-top: 20px; /* Space above title */
}

#searchPostInput:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}

.sentinelpro-filter-row {
  display: flex;
  flex-direction: column;
}

.compare-row {
  background-color: #f9f9f9;
  font-style: italic;
}


.sentinelpro-flex-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}

.sentinelpro-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  padding: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sentinelpro-sidebar h3 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 12px;
}

.sentinelpro-sidebar label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #333;
}
