/* Technical Schedule page (navbar/footer from track-styles.css) */

.technical-container {
  padding-bottom: 28px;
}

.page-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: -18px;
  margin-bottom: 28px;
}

/* Day tabs */
.schedule-controls {
  margin-bottom: 24px;
}

.day-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.day-tab:hover {
  border-color: #1a8c8d;
  box-shadow: 0 4px 14px rgba(0, 103, 105, 0.12);
}

.day-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 103, 105, 0.25);
}

.tab-day-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tab-date {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Legend */
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.badge-oral { background: #006769; }
.legend-dot.badge-hybrid { background: #7c3aed; }
.legend-dot.badge-online { background: #2563eb; }
.legend-dot.badge-poster { background: #d97706; }

/* Day panels */
.schedule-content {
  margin-top: 8px;
}

.day-panel {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.day-panel.active {
  display: block;
}

.day-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.day-header h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.day-date {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 6px;
}

.day-meta {
  color: #1a8c8d;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Session accordions */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-accordion {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.session-accordion[open] {
  box-shadow: 0 8px 24px rgba(0, 103, 105, 0.1);
  border-color: #b8dede;
}

.session-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.session-summary::-webkit-details-marker {
  display: none;
}

.session-title-text {
  flex: 1 1 200px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.4;
}

.session-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-oral {
  background: #e6f4f4;
  color: #006769;
}

.badge-hybrid {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-online {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-poster {
  background: #fef3c7;
  color: #b45309;
}

.session-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.accordion-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  top: 10px;
  left: 4px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  top: 4px;
  left: 10px;
}

.session-accordion[open] .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.session-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.special-track-label {
  margin: 14px 0 8px;
  padding: 10px 14px;
  background: #f0faf9;
  border-left: 4px solid #1a8c8d;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #004e4f;
  line-height: 1.5;
}

.online-section-note {
  margin: 12px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

/* Papers table */
.papers-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid #d5eaea;
}

.papers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.papers-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.papers-table tbody tr {
  border-bottom: 1px solid #e8f0f0;
}

.papers-table tbody tr:last-child {
  border-bottom: none;
}

.papers-table tbody tr:hover {
  background: #f4fbfb;
}

.papers-table td {
  padding: 12px 14px;
  vertical-align: top;
  color: var(--text);
}

.col-sno,
.col-id {
  width: 70px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.col-id {
  width: 90px;
}

.paper-title {
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
  color: #1a3334;
}

.paper-authors {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.paper-online-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Page actions */
.technical-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 8px;
}

.technical-actions .back-btn {
  margin: 0;
}

.technical-actions .cmt-btn {
  background: #1a8c8d;
}

.technical-actions .cmt-btn:hover {
  background: #0f6f70;
}

/* Responsive */
@media (max-width: 768px) {
  .page-subtitle {
    font-size: 0.95rem;
    padding: 0 12px;
  }

  .day-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    padding: 8px;
  }

  .day-tab {
    min-width: 0;
    flex: 1 1 0;
    padding: 12px 8px;
  }

  .tab-day-label {
    font-size: 0.95rem;
  }

  .tab-date {
    font-size: 0.78rem;
  }

  .day-header h2 {
    font-size: 1.45rem;
  }

  .session-summary {
    padding: 14px 16px;
  }

  .session-title-text {
    flex: 1 1 100%;
    font-size: 0.92rem;
  }

  .session-body {
    padding: 0 12px 16px;
  }

  /* Card layout for papers on mobile */
  .papers-table thead {
    display: none;
  }

  .papers-table,
  .papers-table tbody,
  .papers-table tr,
  .papers-table td {
    display: block;
    width: 100%;
  }

  .papers-table tr.paper-row {
    padding: 14px;
    border-bottom: 1px solid #e8f0f0;
  }

  .papers-table tr.paper-row:last-child {
    border-bottom: none;
  }

  .papers-table td {
    padding: 2px 0;
    border: none;
  }

  .papers-table td::before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
  }

  .papers-table td.col-paper::before {
    display: none;
  }

  .col-sno,
  .col-id {
    width: auto;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .day-tab {
    padding: 10px 6px;
  }

  .tab-day-label {
    font-size: 0.88rem;
  }

  .tab-date {
    font-size: 0.72rem;
  }

  .schedule-legend {
    gap: 10px;
  }

  .legend-item {
    font-size: 0.82rem;
  }
}
