:root {
  --page-bg: #E6E5E5;
  --timeline-bg: #fff;
  --panel-border: #ddd;
  --accent: #e57373;
  --black: #000;
  --date-grey: #888;
}

/* Page Layout */
html, body { height: 100%; margin: 0; }
body {
  background: var(--page-bg);
  color: var(--black);
  font: 14px/1.45 system-ui, Segoe UI, Arial, sans-serif;
}

/* Page Container */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.page-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-header h1 { margin: 0 12px 0 0; font-size: 22px; color: var(--black); }
.status { margin-left: 16px; }

/* Timeline (Gantt) Card */
.gantt-section {
  background: var(--timeline-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
}

.gantt-container {
  display: flex;
  background: var(--timeline-bg);
  border-radius: 12px;
  box-shadow: 0px 2px 12px #0001;
  overflow: hidden;
}

.gantt-status {
  flex: 0 0 auto;
  border-right: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
  overflow: visible;
  background: #f8f9fa;
}

.status-svg {
  display: block;
}

.gantt-scroll {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
}

.gantt-labels {
  flex: 0 0 auto;
  border-right: 1px solid #e0e0e0;
  overflow: hidden;
}

.labels-container {
  width: var(--label-width, 300px);
  flex-shrink: 0;
  border-right: 1px solid #e0e0e0;
  overflow: hidden !important;
}

.content-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden !important;
}

.labels-svg, .content-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* SVG (Gantt Chart) Container */
#gantt svg {
  display: block;
  background: var(--timeline-bg);
  border-radius: 12px;
  width: auto;
  box-shadow: 0 2px 12px #0001;
}

#gantt .content-svg {
  display: block;
}
#gantt .labels-svg {
  display: block;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .page { padding: 10px; }
  .gantt-section { padding: 8px; }
  .labels-container { width: 250px !important; }
}

.status-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10;
}

.status-row p {
  margin: 0;
}

.note {
  color: #666;
  font-style: italic;
}

/* Filtering for statuses and date */
.gantt-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.dropdown-filter {
  padding: 6px 32px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  position: relative;
  background-image: none;
  background-repeat: no-repeat;
}

.dropdown-filter:hover,
.dropdown-filter:focus {
  border-color: #D94C36;
  box-shadow: 0 0 0 2px rgba(217, 76, 54, 0.15);
  outline: none;
}

/* Selected option background */
.dropdown-filter option:checked {
  background-color: #f7d3ce;
  color: #222;
}

.dropdown-filter option:hover {
  background-color: #f7d3ce;
  color: #222;
}

.filter-count {
  margin-left: auto;
  font-size: 14px;
  color: #666;
}

/* Support div */

.supported-notice {
  background: #e8f5e8;
  border: 1px solid #c8e6c8;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.supported-notice a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
}

.supported-notice a:hover {
  color: gray;
  text-decoration: underline;
}
