/* === Desktop: hide all mobile elements, show desktop agenda === */

#mobile-agenda,

.stage-tabs,

.mobile-panels {

  display: none !important;

}

#desktop-agenda {

  display: block !important;

}

 

/* === Mobile (<=768px): hide desktop, show mobile elements === */

@media screen and (max-width: 768px) {

  #desktop-agenda {

    display: none !important;

  }

  #mobile-agenda {

    display: block !important;

  }

  .stage-tabs {

    display: flex !important;

  }

  .mobile-panels {

    display: block !important;

  }

}

/* === Desktop vs Mobile Toggle (must come first) === */

/* Default (desktop): show desktop agenda, hide mobile agenda & tabs */

#desktop-agenda { display: block !important; }

#mobile-agenda  { display: none  !important; }

.stage-tabs     { display: none  !important; }

 

/* === Original Agenda Styles === */

/* Disable all hover animations for session boxes */

.session { transition: none !important; }

 

/* Container & Table Layout */

.agenda-table-container {

  width: 100%;

  padding: 10px;

  background-color: #F4FAFF;

  overflow-x: auto;

}

.agenda-table {

  width: 100%;

  table-layout: fixed;

  border-collapse: collapse;

  font-family: Arial, sans-serif;

  color: #333;

  background-color: #F4FAFF;

}

.agenda-table col { width: 25%; }

.agenda-table th, .agenda-table td {

  padding: 10px;

  vertical-align: top;

  border: none;

}

.agenda-table th {

  background-color: #009FE3;

  text-align: center;

  font-size: 16px;

  font-weight: bold;

  color: #fff;

}

 

/* Registration row as a full-width banner */

.registration {

  background-color: #e0e0e0;

  text-align: center;

  font-size: 20px;

  font-weight: bold;

  padding: 15px;

}

 

/* Session box styling */

.session {

  margin: 8px 0;

  padding: 8px;

  background-color: #E6F0FA;

  border-radius: 8px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.03);

  border: 1.5px solid #E3EAF2;

  height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  min-height: 100%;

  width: 100%;

  box-sizing: border-box;

}

.session:has(.tag-keynote),
.session.highlight {
  background-color: #fff !important;
  border: 1.5px solid #E3EAF2 !important;
}

.session .time {

  font-weight: bold;

  color: #555;

}

.session .details {

  margin-top: 4px;

  font-size: 14px;

}

 

/* Highlighted sessions */

.session.highlight {

  border: 2px solid #B6E6A7;

  background-color: #DDF7D2;

}

 

/* Tags */

.tags { margin-top: 6px; }

.tag-type, .tag-roundtable, .tag-keynote, .tag-presentation, .tag-panel, .tag-special {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
  border-radius: 4px;
  padding: 2px 10px;
  margin-right: 6px;
  margin-bottom: 4px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.tag-he, .tag-en {
  color: #fff;
}

.tag-keynote {
  background-color: #DDF7D2;
  color: #3A6B1A;
  border: 1.5px solid #B6E6A7;
}

.tag-presentation {
  background-color: #FFF9D2;
  color: #B59A00;
  border: 1.5px solid #F7E6A7;
}

.tag-panel {
  background-color: #D2F0FF;
  color: #007A99;
  border: 1.5px solid #A7E6F7;
}

.tag-special {
  background-color: #FFE3C2;
  color: #C47A00;
  border: 1.5px solid #FFD7A7;
}

.tag-roundtable {
  background-color: #FFD2E3;
  color: #C0005B;
  border: 1.5px solid #F7A7C8;
}

.tag-lang {

  padding: 2px 10px;

  border-radius: 4px;

  font-weight: bold;

  font-size: 13px;

  margin-right: 6px;

  margin-bottom: 4px;

  display: inline-block;

}

.tag-he { background-color: #6d9eeb; }

.tag-en { background-color: #cc0000; }

 

/* Inactive cells */

td.not-operating {

  background-color: transparent;

}

 

/* Lunch Break row */

.span-row {

  background-color: #009FE3;

  color: #fff;

  font-weight: bold;

  text-align: center;

  font-size: 18px;

  padding: 15px;

}

 

/* Exhibition Hall cell */

.exhibition-active {

  text-align: center;

}

.exhibition-hall-content {

  padding: 10px;

  border-radius: 4px;

  min-height: 200px;

  text-align: center;

}

.exhibition-list {

  list-style: none;

  padding: 0;

  margin: 10px 0 0;

}

.exhibition-list li {

  padding: 8px;

  margin: 5px 0;

  border-radius: 4px;

  position: relative;

  text-align: left;

  padding-left: 30px;

  background-color: #0074B6 !important;

  color: #fff;

}

.exh-vip         { background-color: #d0eaff; }

.exh-business    { background-color: #d0ffd0; }

.exh-esports     { background-color: #ffffd0; }

.exh-combatica   { background-color: #e6d0ff; }

.exh-indie       { background-color: #ffd0e6; }

.exh-podcast     { background-color: #ffe6cc; }

.exh-experience  { background-color: #f0f0f0; }

.exh-vip::before       { content: "🏆"; }

.exh-business::before  { content: "🤝"; }

.exh-esports::before   { content: "🎮"; }

.exh-combatica::before { content: "🕶️"; }

.exh-indie::before     { content: "🎨"; }

.exh-podcast::before   { content: "🎙️"; }

.exh-experience::before{ content: "🚀"; }

.exh-vip::before, .exh-business::before, .exh-esports::before, .exh-combatica::before, .exh-indie::before, .exh-podcast::before, .exh-experience::before {
  color: #fff;
}

 

/* === Mobile Tabs & Panels === */

.stage-tabs {

  display: flex;

  overflow-x: auto;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  margin-bottom: 10px;

}

.stage-tabs::-webkit-scrollbar { display: none; }

.stage-tabs button {

  flex: 0 0 auto;

  margin-right: 8px;

  padding: 8px 12px;

  white-space: nowrap;

  background: #a3d4ff;

  border: none;

  font-weight: bold;

  cursor: pointer;

}

.stage-tabs button.active {

  background: #6aa84f;

  color: #fff;

}

 

.mobile-panels .mobile-stage {

  display: none;

}

.mobile-panels .mobile-stage.active {

  display: block;

}

 

/* === Mobile Media Query === */

@media screen and (max-width: 768px) {

  /* Show mobile, hide desktop & reveal tabs */

  #desktop-agenda { display: none !important; }

  #mobile-agenda  { display: block !important; }

  .stage-tabs     { display: flex !important; }

 

  /* Reset table layout for mobile */

  .agenda-table,

  .agenda-table thead,

  .agenda-table tbody,

  .agenda-table th,

  .agenda-table td,

  .agenda-table tr {

    display: block;

    width: 100%;

  }

  .agenda-table thead tr { display: none; }

  .agenda-table td { padding: 10px 0; }

 

  /* Larger exhibition items */

  .exhibition-list li {

    padding: 12px;

    margin: 10px 0;

    font-size: 16px;

    padding-left: 40px;

  }

  .exhibition-list li::before {

    font-size: 18px;

    left: 10px;

  }

}

/* 4. Make all agenda-table td and .session boxes in the same row have equal height */
.agenda-table tr {
  height: auto;
}
.agenda-table td {
  height: auto;
  vertical-align: top;
}

/* 3. Restore emojis for tag types */
.tag-keynote::before { content: "🎤 "; }
.tag-presentation::before { content: "💡 "; }
.tag-panel::before { content: "👥 "; }
.tag-special::before { content: "🔥 "; }
.tag-roundtable::before { content: "💬 "; }

/* 4. Unify label text color */
.tag-type, .tag-keynote, .tag-presentation, .tag-panel, .tag-special, .tag-roundtable {
  color: #222;
}
.tag-he, .tag-en {
  color: #fff;
}

/* === Additional Styles from HTML === */

/* Override mobile-specific styles */
#mobile-agenda,
.stage-tabs,
.mobile-panels {
  display: none !important;
}

#desktop-agenda {
  display: block !important;
}

/* Additional styles for interactivity */
.session {
  position: relative;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  padding-right: 40px; /* Increased padding */
}

.session .full-details {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #E3EAF2;
}

.session.expanded .full-details {
  display: block;
}

.filter-controls {
  margin: 20px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-direction: column;
  align-items: center; /* Center align buttons */
  max-width: 400px;
}

.filter-controls-row {
  display: flex;
  width: 100%;
  gap: 5px;
}

.filter-controls button {
  margin: 0;
  padding: 10px 10px; /* Doubled height */
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  min-width: 120px;
  max-width: 130px;
  text-align: center;
  transition: all 0.3s ease;
  flex: 1 1 0;
  white-space: normal;
  line-height: 1.2;
}

.filter-controls button[data-filter="all"] {
  background: #6B46C1;
  width: 100%;
  max-width: none;
  flex: none;
}

.filter-controls button[data-filter="main"] {
  background: #805AD5; /* Medium purple */
}

.filter-controls button[data-filter="secondary"] {
  background: #9F7AEA; /* Light purple */
}

.filter-controls button[data-filter="combined"] {
  background: #B794F4; /* Very light purple */
}

.filter-controls button.active {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-weight: bold;
  z-index: 1;
}

/* Bookmark styles */
.bookmark-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
  pointer-events: auto;
}

.bookmark-btn svg {
  width: 24px;
  height: 24px;
  fill: #ccc;
  transition: all 0.2s ease-in-out;
}

/* Hover effect on the entire session */
.session:hover .bookmark-btn svg {
  transform: scale(1.1);
}

/* Active state */
.session.bookmarked .bookmark-btn svg {
  fill: #6B46C1; /* Deep purple */
}

.session.bookmarked:hover .bookmark-btn svg {
  fill: #6B46C1; /* Deep purple */
}

/* Table header styles */
.agenda-table th {
  background: linear-gradient(135deg, #6B46C1, #805AD5);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

.agenda-table th:nth-child(1) {
  background: linear-gradient(135deg, #6B46C1, #805AD5);
}

.agenda-table th:nth-child(2) {
  background: linear-gradient(135deg, #805AD5, #9F7AEA);
}

.agenda-table th:nth-child(3) {
  background: linear-gradient(135deg, #9F7AEA, #B794F4);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .agenda-table-container {
    padding: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .agenda-table {
    font-size: 14px;
    width: 100%;
  }

  .session {
    padding-right: 40px; /* Increased padding for mobile */
    min-height: 60px; /* Ensure minimum height for content */
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .session .time {
    font-size: 13px;
  }

  .session .details {
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .tags {
    font-size: 12px;
  }

  .tag-type, .tag-lang {
    padding: 1px 6px;
    font-size: 11px;
  }

  .bookmark-btn {
    width: 20px;
    height: 20px;
    top: 6px;
    right: 6px;
    position: absolute;
    z-index: 2;
  }

  .bookmark-btn svg {
    width: 20px;
    height: 20px;
  }

  .filter-controls {
    padding: 8px;
    max-width: 400px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-controls button {
    padding: 8px 8px; /* Doubled height */
    font-size: 13px;
    min-width: 100px;
    max-width: 120px;
    white-space: normal;
    line-height: 1.2;
  }

  /* Ensure table headers stay visible */
  .agenda-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .agenda-table th {
    position: sticky;
    top: 0;
  }

  /* Mobile-specific table adjustments */
  .agenda-table td {
    padding: 5px;
    vertical-align: top;
  }

  .agenda-table th {
    padding: 8px 5px;
    font-size: 14px;
  }

  /* Adjust exhibition hall for mobile */
  .exhibition-hall-content {
    display: none !important;
  }

  .exhibition-hall-mobile {
    display: block !important;
    background: #f5f5fa;
    margin: 20px 0 0 0;
    padding: 16px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(107,70,193,0.08);
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    font-size: 15px !important;
    color: #222 !important;
  }

  .exhibition-hall-mobile h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .exhibition-list li {
    padding: 6px;
    margin: 3px 0;
    font-size: 13px;
  }

  /* Adjust break rows */
  .span-row {
    font-size: 16px;
    padding: 10px;
  }

  /* Adjust presented-by section */
  .presented-by {
    font-size: 12px;
  }

  .presented-by img {
    max-width: 60px !important;
  }
}

/* Consistent font for exhibition hall boxes */
.exhibition-hall-content,
.exhibition-hall-mobile {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 15px;
  color: #222;
  text-align: center;
}

/* Hide mobile exhibition hall by default (desktop view) */
.exhibition-hall-mobile {
  display: none;
}

.exhibition-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* Space between icon and word */
}

.agenda-table-container {
  padding: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 95%; /* Limit width to prevent overflow */
}

.exhibition-hall-mobile {
  max-width: 95%; /* Limit width to prevent overflow */
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6B46C1;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #6B46C1;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#my-list-view h2 {
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

.my-list-session {
  display: flex;
  flex-direction: column;
  background: #e9f0fa;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(107,70,193,0.08);
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

.my-list-session .session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.my-list-session .session-row span,
.my-list-session .session-row .hall-label {
  font-size: 11px !important;
  line-height: 1.2;
  margin: 0;
  padding: 0 4px;
  height: 22px;
  display: flex;
  align-items: center;
}

.my-list-session .session-row .hall-label {
  margin-left: auto;
  padding-right: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  font-weight: bold;
  color: #6B46C1;
  z-index: 3;
}

.my-list-session .time {
  font-weight: bold;
  font-size: 17px;
  margin-right: 10px;
}

.my-list-session .tags {
  display: flex;
  gap: 6px;
}

.my-list-session .details {
  font-size: 15px;
  margin-top: 2px;
  margin-bottom: 0;
  text-align: left;
}

.my-list-session .hall-label {
  font-size: 11px !important;
  font-weight: bold;
  color: #6B46C1;
  background: rgba(255,255,255,0.85);
  padding: 1px 8px;
  border-radius: 6px;
  z-index: 3;
  height: 22px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-left: auto;
  padding-right: 8px;
}

@media screen and (max-width: 768px) {
  .my-list-session {
    padding: 12px 8px;
  }
  .my-list-session .hall-label {
    min-width: 80px;
    font-size: 11px;
  }
  .my-list-session .details {
    font-size: 14px;
  }
}

#my-list-view {
  background-color: #F4FAFF;
  min-height: 80vh;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px 40px 24px; /* Add padding around boxes */
}

.bookmark-btn svg {
  fill: #ccc !important; /* Light grey for unchecked state */
}

.session.bookmarked .bookmark-btn svg,
.session.bookmarked:hover .bookmark-btn svg {
  fill: #6B46C1 !important; /* Purple for checked state */
}

.session:hover .bookmark-btn svg {
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .exhibition-hall-content {
    display: none !important;
  }
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

#my-list-view, #full-agenda-view, #desktop-agenda {
  min-height: 0;
  height: auto;
  overflow-y: visible;
}

/* Unified session box layout for both views */
.session, .my-list-session {
  display: flex;
  flex-direction: column;
  background: #e9f0fa;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(107,70,193,0.08);
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

.session .session-row, .my-list-session .session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.session .time, .my-list-session .time {
  font-weight: bold;
  font-size: 17px;
  margin-right: 10px;
}

.session .tags, .my-list-session .tags {
  display: flex;
  gap: 6px;
}

.session .details, .my-list-session .details {
  font-size: 15px;
  margin-top: 2px;
  margin-bottom: 0;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .session, .my-list-session {
    padding: 12px 8px;
  }
  .session .details, .my-list-session .details {
    font-size: 14px;
  }
}

.session-row .hall-label {
  font-size: 11px !important;
  font-weight: bold;
  color: #6B46C1;
  background: rgba(255,255,255,0.85);
  padding: 1px 8px;
  border-radius: 6px;
  z-index: 3;
  height: 22px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-left: auto;
  padding-right: 8px;
}