/* ========================================
   SHARED BASE STYLES FOR PROGRAM & POSTERS
   ======================================== */

/* Base page styles */
body.program-page,
body.posters-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-top: 0;
  margin: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   SHARED CONTROL STYLES
   ======================================== */

/* Compact controls section - shared between program and posters */
.controls-compact {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.controls-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search */
.search-container-flex {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--main-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(43, 60, 98, 0.1);
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--main-gray);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: none;
}

.clear-search:hover {
  color: var(--orange);
}

/* Filters */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.filter-select-compact {
  padding: 0.4rem 0.6rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  flex: 1;
}

.filter-select-compact:hover,
.filter-select-compact:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.filter-select-compact option {
  white-space: nowrap;
}

/* View Toggle */
.view-toggle-compact {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.view-btn-compact {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--main-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.view-btn-compact:hover {
  background: white;
  color: var(--primary-blue);
}

.view-btn-compact.active {
  background: var(--primary-blue);
  color: white;
}

.view-btn-compact .material-icons {
  font-size: 1rem;
}

/* Results Info */
.results-info {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--main-gray);
}

.results-info span#visibleCount,
.results-info span#totalCount {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ========================================
   PROGRAM-SPECIFIC STYLES
   ======================================== */

/* Compact hero section for program */
.program-hero-compact {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.program-hero-compact .hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-title-compact {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.hero-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--main-gray);
  font-size: 0.9rem;
}

.hero-info .material-icons {
  font-size: 1rem;
}

/* Timezone selector */
.timezone-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.timezone-selector label {
  color: var(--main-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.timezone-selector .material-icons {
  font-size: 1rem;
  color: var(--primary-blue);
}

.timezone-select {
  border: none;
  background: transparent;
  color: var(--primary-blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
}

.timezone-select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Quick action buttons */
.hero-actions-compact {
  display: flex;
  gap: 0.75rem;
}

.action-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-blue);
  background: white;
  color: var(--primary-blue);
  font-size: 0.85rem;
}

.action-btn-compact:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
}

.action-btn-compact .material-icons {
  font-size: 1rem;
}

.action-btn-compact .badge {
  background: tomato;
  color: white;
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

/* Main content */
.program-main-simple {
  max-width: 1200px;
  margin: 0 auto;
}

/* Statistics row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-item a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.stat-item .stat-label {
  color: var(--main-gray);
  font-size: 0.85rem;
}

/* Date filter pills */
.date-filter-pills {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.date-pill {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: var(--main-gray);
  white-space: nowrap;
}

.date-pill:hover {
  background: white;
  color: var(--primary-blue);
}

.date-pill.active {
  background: var(--primary-blue);
  color: white;
}

.date-pill.all-days {
  font-weight: 600;
}

/* Program display */
.program-display {
  padding: 0 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.display-container {
  min-height: 400px;
}

.view-content {
  display: block;
}

.view-content.hidden {
  display: none !important;
}

/* Timeline view */
.timeline-container {
  background: transparent;
}

/* Timeline date separators */
.timeline-date-separator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timeline-date-separator:first-child {
  margin-top: 0;
}

/* Time slots */
.time-slot {
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-header {
  background: #525f7f;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-header:hover {
  background: #424f6f;
}

.time-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.time-range {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-range .material-icons {
  font-size: 1.1rem;
}

.time-duration {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.collapse-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.collapse-toggle .material-icons {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.time-slot.collapsed .collapse-toggle .material-icons {
  transform: rotate(-90deg);
}

.time-slot.collapsed .parallel-sessions,
.time-slot.collapsed .break-content {
  display: none;
}

/* Break slots */
.break-slot .time-header {
  background: #95a5a6;
}

.break-content {
  padding: 1rem;
  text-align: center;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.break-content .material-icons {
  font-size: 1.5rem;
  color: var(--main-gray);
}

.break-title {
  font-size: 1.1rem;
  color: var(--main-gray);
}

/* Parallel sessions */
.parallel-sessions {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  background: #f8f9fa;
}

/* Session blocks */
.session-block {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.session-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Session type colors */
.session-block.plenary {
  border-left-color: #2c3e5d;
}
.session-block.keynote {
  border-left-color: #f19c23;
}
.session-block.symposium {
  border-left-color: #4a90e2;
}
.session-block.workshop {
  border-left-color: #7b68ee;
}
.session-block.panel {
  border-left-color: #20b2aa;
}
.session-block.contributed-oral {
  border-left-color: #3cb371;
}
.session-block.poster {
  border-left-color: #ff6b6b;
}
.session-block.lightning-talk {
  border-left-color: #ffd700;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  min-height: 28px;
}

.room-label {
  background: #525f7f;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.room-label .material-icons {
  font-size: 0.8rem;
}

.session-type-badge,
.organisation-theme-badge,
.theme-badge {
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: white;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  line-height: 1.2;
}

.theme-badge {
  background: #9c7fdb;
  margin-right: 4px;
  margin-bottom: 2px;
}

.session-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.5rem;
  align-items: flex-start;
}

.organisation-theme-badge {
  background: #6c757d;
  display: inline-block;
}

.session-type-badge.plenary {
  background: #2c3e5d;
}
.session-type-badge.keynote {
  background: #f19c23;
}
.session-type-badge.symposium {
  background: #4a90e2;
}
.session-type-badge.workshop {
  background: #7b68ee;
}
.session-type-badge.panel {
  background: #20b2aa;
}
.session-type-badge.contributed-oral {
  background: #3cb371;
}
.session-type-badge.poster {
  background: #ff6b6b;
}
.session-type-badge.lightning-talk {
  background: #ffd700;
  color: #333;
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(43, 60, 98, 0.3);
  color: #ccc;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.favorite-btn:hover {
  color: var(--orange);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn.active {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 165, 0, 0.1);
}

.favorite-btn .material-icons {
  font-size: 1rem;
}

.session-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--main-gray);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.session-meta .material-icons {
  font-size: 0.9rem;
  color: var(--main-gray);
}

/* Session abstracts */
.session-abstracts {
  border-top: 1px solid #e0e0e0;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.expand-abstracts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  background: #f8f9fa;
  border: none;
  border-radius: 6px;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.expand-abstracts:hover {
  background: #e9ecef;
}

.abstracts-list {
  margin-top: 0.75rem;
}

.abstract-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.abstract-item:hover {
  background: #e9ecef;
  transform: translateX(3px);
}

.abstract-time {
  font-size: 0.75rem;
  color: var(--main-gray);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.abstract-time .material-icons {
  font-size: 0.7rem;
}

.abstract-title {
  flex: 1;
  color: var(--primary-blue);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abstract-presenter {
  color: var(--main-gray);
  font-style: italic;
  font-size: 0.8rem;
}

.format-indicator {
  font-size: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-radius: 50%;
  padding: 0.25rem;
}

.format-indicator.lightning {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.format-indicator.lightning-virtual {
  color: #2196f3;
  background-color: rgba(33, 150, 243, 0.1);
}

.format-indicator.oral-virtual {
  color: #9c27b0;
  background-color: rgba(156, 39, 176, 0.1);
}

/* Grid view */
.grid-view-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.grid-session-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-blue);
  cursor: pointer;
}

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

.grid-session-header {
  background: linear-gradient(135deg, #525f7f, #424f6f);
  color: white;
  padding: 1rem;
}

.grid-session-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.grid-session-time .material-icons {
  font-size: 1rem;
}

.grid-session-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.grid-session-body {
  padding: 1rem;
}

.grid-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.grid-room-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--main-gray);
}

.grid-room-badge .material-icons {
  font-size: 0.8rem;
}

.grid-type-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  background: var(--primary-blue);
}

.grid-session-organizers {
  color: var(--main-gray);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.grid-session-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 0.75rem;
}

.grid-abstracts-count {
  font-size: 0.8rem;
  color: var(--main-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.grid-abstracts-count .material-icons {
  font-size: 0.9rem;
}

.grid-action-buttons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.grid-copy-id-btn,
.grid-share-session-btn,
.grid-favorite-btn {
  background: white;
  border: 1px solid #e0e0e0;
  color: var(--primary-blue);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.grid-copy-id-btn:hover,
.grid-share-session-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

.grid-favorite-btn:hover,
.grid-favorite-btn.active {
  color: var(--orange);
  background: rgba(255, 165, 0, 0.1);
  border-color: var(--orange);
}

/* List view */
.list-view-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-session-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.list-session-item:hover {
  background: #f8f9fa;
  transform: translateX(2px);
}

.list-session-item:last-child {
  border-bottom: none;
}

.list-session-time {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 1rem;
}

.list-session-content {
  flex: 1;
  min-width: 0;
}

.list-session-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.list-session-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
}

.list-type-badge {
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  background: var(--primary-blue);
}

.list-session-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--main-gray);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.list-session-room {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.list-session-room .material-icons {
  font-size: 0.8rem;
}

.list-session-organizers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.list-session-organizers .material-icons {
  font-size: 0.8rem;
}

.list-session-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-abstracts-count {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--main-gray);
}

.list-favorite-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.list-favorite-btn:hover,
.list-favorite-btn.active {
  color: var(--orange);
  background: rgba(255, 165, 0, 0.1);
}

/* My Schedule Panel */
.my-schedule-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: none;
}

.my-schedule-panel[style*="display: block"] {
  transform: translateX(0);
}

.panel-header {
  background: var(--primary-blue);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.close-panel {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.5rem;
}

.close-panel:hover {
  opacity: 0.8;
}

.schedule-note {
  font-size: 0.8rem;
  color: var(--orange);
  margin: 0.5rem 1rem;
}

.panel-content {
  padding: 1rem;
  overflow-y: auto;
  height: calc(100vh - 120px);
}

.empty-schedule {
  text-align: center;
  padding: 2rem;
  color: var(--main-gray);
}

.empty-schedule .material-icons {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.schedule-day {
  margin-bottom: 1.5rem;
}

.schedule-day h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.schedule-item {
  display: block;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  position: relative;
}

.schedule-time {
  font-size: 0.8rem;
  color: var(--main-gray);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.schedule-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: var(--primary-blue);
  padding-right: 22px;
}

.schedule-content p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--main-gray);
}

.schedule-item .session-id-small {
  display: block;
  margin-bottom: 0.25rem;
}

.schedule-abstracts {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
}

.schedule-expand-abstracts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: #f8f9fa;
  border: none;
  border-radius: 6px;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.schedule-expand-abstracts:hover {
  background: #e9ecef;
}

.schedule-abstracts-list {
  margin-left: 0.5rem;
}

.schedule-abstract-item {
  transition: all 0.2s ease;
  border-radius: 3px;
}

.schedule-abstract-item:hover {
  background-color: rgba(43, 60, 98, 0.05);
  padding-left: 0.25rem !important;
}

.schedule-abstract-item:last-child {
  border-bottom: none !important;
}

.remove-favorite {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: transparent;
  border: none;
  color: #646060;
  cursor: pointer;
  padding: 0.25rem;
}

.remove-favorite:hover {
  color: var(--red);
}

.panel-actions {
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
}

.btn-export {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-export:hover {
  background: #1e2d47;
}

/* ========================================
   SHARED MODAL STYLES
   ======================================== */

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  min-height: 200px;
}

.modal-header {
  background: var(--primary-blue);
  color: white;
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  padding-right: 2rem;
  flex: 1;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-section {
  margin-bottom: 1rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  margin-top: 0;
}

.modal-section p {
  color: var(--main-gray);
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.modal-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.modal-meta .badge {
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-meta .badge:nth-child(1) {
  background: var(--green);
}

.modal-meta .badge:nth-child(2) {
  background: var(--orange);
}

.modal-meta .badge:nth-child(3) {
  background: var(--light-blue);
}

/* ========================================
   SHARED ACTION BUTTONS & IDS
   ======================================== */

.session-action-buttons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}

.copy-id-btn,
.share-session-btn,
.share-poster-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(43, 60, 98, 0.3);
  color: var(--primary-blue);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.copy-id-btn:hover,
.share-session-btn:hover,
.share-poster-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(43, 60, 98, 0.3);
}

.copy-id-btn .material-icons,
.share-session-btn .material-icons,
.share-poster-btn .material-icons {
  font-size: 0.9rem;
}

.modal-actions-inline {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.modal-copy-id-btn,
.modal-share-session-btn,
.modal-share-abstract-btn,
.modal-share-poster-btn {
  background: white;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-copy-id-btn:hover,
.modal-share-session-btn:hover,
.modal-share-abstract-btn:hover,
.modal-share-poster-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(43, 60, 98, 0.2);
}

.modal-copy-id-btn .material-icons,
.modal-share-session-btn .material-icons,
.modal-share-abstract-btn .material-icons,
.modal-share-poster-btn .material-icons {
  font-size: 0.9rem;
}

/* Session ID styles */
.session-id {
  font-size: 0.75rem;
  color: var(--main-gray);
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-id-small {
  font-size: 0.65rem;
  color: var(--main-gray);
  opacity: 0.7;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.session-block .session-id {
  display: block;
  margin-bottom: 0.5rem;
}

.grid-session-id {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-session-id {
  font-size: 0.7rem;
  color: var(--main-gray);
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.abstract-item .session-id-small {
  display: block;
  margin-bottom: 0.1rem;
}

.modal-session-id {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-item .session-id-small {
  display: block;
  margin-bottom: 0.25rem;
}

/* Copy notification */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-blue);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(43, 60, 98, 0.3);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  max-width: 300px;
  word-wrap: break-word;
}

.copy-notification.show {
  transform: translateX(0);
}

.copy-notification.error {
  background: #dc3545;
}

/* ========================================
   LOADING & STATUS STATES
   ======================================== */

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--main-gray);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preliminary-notice {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-icon {
  color: #856404;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-text {
  color: #856404;
  font-size: 14px;
  line-height: 1.5;
}

.notice-email {
  color: #0056b3;
  text-decoration: none;
  font-weight: 600;
}

.notice-email:hover {
  text-decoration: underline;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* No results message */
.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--main-gray);
}

.no-results .material-icons {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0.5rem 0;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--main-gray);
  cursor: pointer;
  position: relative;
}

.mobile-nav-item.active {
  color: var(--primary-blue);
}

.mobile-nav-item .material-icons {
  font-size: 1.25rem;
}

.mobile-nav-item span:not(.material-icons) {
  font-size: 0.65rem;
  font-weight: 500;
}

.mobile-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: tomato;
  color: white;
  border-radius: 8px;
  padding: 1px 4px;
  font-size: 0.6rem;
  min-width: 14px;
  text-align: center;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 1025px) {
  .session-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .abstract-title {
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
  }

  .grid-session-card .organisation-theme-badge,
  .grid-session-card .theme-badge {
    max-width: 140px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .session-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .abstract-title {
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body.program-page,
  body.posters-page {
    padding-bottom: 60px;
  }

  .hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-title-compact {
    font-size: 1.5rem;
  }

  .hero-info {
    font-size: 0.85rem;
  }

  .timezone-selector {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-actions-compact {
    width: 100%;
    flex-direction: column;
  }

  .action-btn-compact {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    gap: 1rem;
    padding: 0.75rem;
  }

  .stat-item .stat-number {
    font-size: 1.25rem;
  }

  .stat-item .stat-label {
    font-size: 0.75rem;
  }

  .controls-top {
    flex-direction: column;
  }

  .date-filter-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .date-pill {
    flex-shrink: 0;
  }

  .controls-bottom {
    flex-direction: column;
    align-items: stretch;
  }

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

  .filter-select-compact {
    width: 100%;
    min-width: auto;
  }

  .view-toggle-compact {
    justify-content: center;
    width: 100%;
  }

  .parallel-sessions {
    grid-template-columns: 1fr;
  }

  .session-title {
    font-size: 0.95rem;
  }

  .session-meta {
    font-size: 0.8rem;
  }

  .abstract-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .abstract-title {
    white-space: normal;
  }

  .grid-view-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .list-session-time {
    width: 80px;
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }

  .list-session-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .my-schedule-panel {
    width: 100%;
  }

  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal-header {
    border-radius: 0;
  }

  .preliminary-notice {
    margin: 15px 0;
    padding: 12px;
  }

  .notice-content {
    gap: 8px;
  }

  .notice-text {
    font-size: 13px;
  }

  .session-type-badge,
  .organisation-theme-badge,
  .theme-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    max-width: 100px;
    letter-spacing: 0.1px;
  }

  .session-badges {
    gap: 3px;
  }

  .session-header {
    gap: 0.25rem;
  }

  .grid-session-card .organisation-theme-badge,
  .grid-session-card .theme-badge {
    max-width: 90px;
  }

  .session-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .abstract-title {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .session-id {
    font-size: 0.65rem;
  }

  .session-id-small {
    font-size: 0.6rem;
  }

  .grid-session-id {
    font-size: 0.65rem;
  }

  .list-session-id {
    font-size: 0.65rem;
  }

  .modal-session-id {
    font-size: 0.75rem;
  }

  .session-action-buttons,
  .grid-action-buttons {
    gap: 0.2rem;
  }

  .copy-id-btn,
  .share-session-btn,
  .share-poster-btn,
  .favorite-btn,
  .grid-copy-id-btn,
  .grid-share-session-btn,
  .grid-favorite-btn {
    width: 24px;
    height: 24px;
  }

  .copy-id-btn .material-icons,
  .share-session-btn .material-icons,
  .share-poster-btn .material-icons,
  .favorite-btn .material-icons,
  .grid-copy-id-btn .material-icons,
  .grid-share-session-btn .material-icons,
  .grid-favorite-btn .material-icons {
    font-size: 0.8rem;
  }

  .modal-actions-inline {
    flex-direction: column;
    gap: 0.25rem;
  }

  .modal-copy-id-btn,
  .modal-share-session-btn,
  .modal-share-abstract-btn,
  .modal-share-poster-btn {
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .copy-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title-compact {
    font-size: 1.25rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .stat-item,
  .stat-item a {
    flex-direction: column;
    text-align: center;
  }

  .date-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .timeline-date-separator {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .time-header {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .session-block {
    padding: 0.75rem;
  }

  .room-label {
    font-size: 0.7rem;
  }

  .session-type-badge,
  .organisation-theme-badge,
  .theme-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
    max-width: 80px;
    border-radius: 8px;
  }

  .session-badges {
    gap: 2px;
    margin-top: 0.25rem;
  }

  .session-title {
    font-size: 0.9rem;
  }

  .abstract-item {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  .preliminary-notice {
    margin: 10px 0;
    padding: 10px;
  }

  .notice-icon {
    font-size: 18px;
  }

  .notice-text {
    font-size: 12px;
  }

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .program-display,
  .controls-compact,
  .stats-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .session-card,
  .abstract-card {
    padding: 0.5rem;
  }

  .session-title {
    margin-bottom: 0.25rem;
  }

  .modal-close {
    right: 0.5rem;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }

  .modal-title {
    font-size: 1rem;
    padding-right: 2.5rem;
  }
}
