/* Custom CSS Variables & Light Theme Setup */
:root {
  --bg-dark: #f8fafc; /* Very light slate gray */
  --bg-panel: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --accent-primary: #2563eb; /* Clean Royal Blue */
  --accent-secondary: #7c3aed; /* Violet */
  --accent-blue: #0284c7; /* Sky Blue */
  --accent-success: #059669; /* Green */
  --accent-danger: #dc2626; /* Red */
  
  --text-main: #0f172a; /* Near black for high contrast */
  --text-muted: #475569; /* Slate gray for readable subtexts */
  --text-subtle: #64748b; /* Soft gray */
  
  --border-color: #e2e8f0; /* Soft gray border */
  --border-focus: #93c5fd; /* Soft blue focus border */
  
  --glass-blur: blur(12px);
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #e2e8f0;
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .conf-year {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #0f172a;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 500px; /* Mobile constraint */
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Header */
.app-header {
  padding: calc(14px + var(--safe-top)) 16px 12px 16px;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.conf-year {
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  color: #0f172a;
  font-weight: 800;
}

.conf-subtitle {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Language Toggle Button - Minimalist */
.lang-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 30px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:active {
  transform: scale(0.96);
  background: #e2e8f0;
}

/* Main Content Views */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(80px + var(--safe-bottom)) 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* App View toggles */
.app-view {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn var(--transition-fast) forwards;
}

.app-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography and Section Headers */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.view-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.view-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Live Badge Pulse */
.live-pulse {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-danger);
  background: rgba(220, 38, 38, 0.08);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Live Widget: Now & Next Session (Minimalist light theme) */
.now-next-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.widget-row {
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.widget-row:active {
  background: #f8fafc;
}

.widget-row.now-row {
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  background: rgba(37, 99, 235, 0.02);
}

.widget-row.next-row {
  border-left: 3px solid var(--accent-secondary);
}

.widget-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.now-row .widget-label {
  color: var(--accent-primary);
}

.next-row .widget-label {
  color: var(--accent-secondary);
}

.widget-time-badge {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 4px;
}

.widget-speaker {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  align-items: center;
  font-weight: 500;
}

.meta-icon-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icon-txt svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-subtle);
}

/* Feedback voting button group */
.voting-container {
  display: flex;
  gap: 8px;
}

.vote-btn-sm {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-subtle);
}

.vote-btn-sm svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.vote-btn-sm:active {
  transform: scale(0.9);
}

.vote-btn-sm.like.active {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--accent-success);
}

.vote-btn-sm.dislike.active {
  background: rgba(220, 56, 56, 0.08);
  border-color: rgba(220, 56, 56, 0.3);
  color: var(--accent-danger);
}

/* Empty Live Widget Fallback */
.empty-widget {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Search Box */
.search-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

.search-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-subtle);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
}

.search-box input::placeholder {
  color: var(--text-subtle);
}

/* Day Selector - Minimalist Pill Buttons */
.day-selector {
  display: flex;
  gap: 8px;
}

.day-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.day-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.day-btn:active {
  transform: scale(0.98);
}

/* Category Carousel */
.category-carousel {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-tag {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-tag.active {
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.category-tag:active {
  transform: scale(0.96);
}

/* Schedule Session Cards (Highly readable light design) */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.session-card:active {
  transform: scale(0.99);
  background: var(--bg-card-hover);
}

.session-card.now-playing {
  background: rgba(37, 99, 235, 0.02);
  animation: pulse-now-playing 1.5s infinite alternate;
}

@keyframes pulse-now-playing {
  0% { border-left-color: var(--accent-primary) !important; box-shadow: -2px 0 8px rgba(37, 99, 235, 0.3); }
  100% { border-left-color: transparent !important; box-shadow: -1px 0 2px rgba(37, 99, 235, 0); }
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.session-time-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-time-block svg {
  width: 12px;
  height: 12px;
  stroke: var(--accent-primary);
}

.session-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}

.session-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  padding-right: 36px;
}

.session-speaker {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.session-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.session-room {
  font-size: 0.78rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.session-room svg {
  width: 12px;
  height: 12px;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-subtle);
  text-align: center;
  gap: 12px;
}

.empty-icon {
  width: 40px;
  height: 40px;
  stroke: var(--text-subtle);
}

.empty-state p {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card-header h3 {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 700;
}

.info-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent-primary);
}

.info-card p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.info-link-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition-fast);
}

.info-link-btn:active {
  background: #e2e8f0;
}

.wifi-details {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.wifi-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wifi-details p:last-child {
  margin-bottom: 0;
}

.wifi-details code {
  color: var(--accent-primary);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

.app-version-txt {
  font-size: 0.72rem !important;
  color: var(--text-subtle) !important;
  text-align: center;
}

/* PWA Install Card specific */
.install-card {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.01);
}

.install-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.install-btn:active {
  transform: scale(0.98);
}

/* Detail Modal */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  padding: 24px 20px calc(20px + var(--safe-bottom)) 20px;
  position: relative;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close-btn:active {
  background: #e2e8f0;
  transform: scale(0.9);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-category {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(124, 58, 237, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  padding-right: 32px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-primary);
}

.modal-speaker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 10px;
}

.speaker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.speaker-avatar svg {
  width: 16px;
  height: 16px;
}

.speaker-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.speaker-title {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.modal-desc-section h3, .modal-actions-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-bottom: 6px;
  font-weight: 700;
}

.modal-desc-section p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400; /* Regular Inter for high readability */
}

.modal-actions-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.actions-heading {
  margin-bottom: 10px !important;
  text-align: center;
}

.feedback-vote-buttons {
  display: flex;
  gap: 10px;
}

.vote-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.vote-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.vote-btn:active {
  transform: scale(0.97);
}

.vote-btn.like-btn.active {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--accent-success);
}

.vote-btn.dislike-btn.active {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--accent-danger);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px calc(6px + var(--safe-bottom)) 12px;
  display: flex;
  justify-content: space-around;
  z-index: 10;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: var(--transition-fast);
  flex: 1;
}

.nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 600;
}

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

.nav-item:active .nav-icon {
  transform: scale(0.9);
}

/* Timeline Widget Styles */
.timeline-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.timeline-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
}

.timeline-time {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.timeline-viewport {
  width: 100%;
  overflow-x: auto;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.timeline-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.timeline-canvas {
  position: relative;
  height: 120px; /* Set by JS or standard */
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 59px,
    #f8fafc 59px,
    #f8fafc 60px
  );
}

.timeline-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-danger);
  z-index: 5;
  box-shadow: 0 0 4px rgba(220, 38, 38, 0.5);
  pointer-events: none;
}

.timeline-now-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-danger);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.8);
}

.timeline-time-axis {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.timeline-time-label {
  position: absolute;
  top: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-subtle);
  transform: translateX(-50%);
  font-family: monospace;
}

.timeline-tracks {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.timeline-track-row {
  position: relative;
  height: 36px;
  width: 100%;
}

.timeline-block {
  position: absolute;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.timeline-block:active {
  background: var(--bg-card-hover);
}

.timeline-block.active-session {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.3);
}

.timeline-block.break-session {
  background: #f8fafc;
  border-style: dashed;
}

.timeline-block-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.timeline-block-time {
  font-size: 0.58rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-weight: 500;
}

/* Speaker large details */
.speaker-large-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.speaker-avatar.large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.speaker-avatar.large svg {
  width: 32px;
  height: 32px;
}

.speaker-large-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.speaker-large-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.speaker-bio-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* BEKCAN Popup modal custom styles */
.bekcan-popup-content {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.bekcan-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.bekcan-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bekcan-logo {
  border-radius: 18px;
}

.bekcan-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #dc2626; /* Crimson matching the logo */
  letter-spacing: 2px;
  line-height: 1;
  margin-top: 4px;
}

.bekcan-url {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-subtle);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.bekcan-content-desc {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.powered-by-txt {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.branding-credits {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #dc2626;
}

.branding-info-txt {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 6px;
}

.bekcan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.bekcan-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.bekcan-btn:active {
  transform: scale(0.98);
}

.bekcan-btn.highlight {
  background: #dc2626;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.bekcan-btn.highlight:active {
  background: #b91c1c;
  box-shadow: none;
}

.bekcan-icon {
  width: 16px;
  height: 16px;
}

/* Skeletons */
.skeleton-loader {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Category Color Custom Variables */
.cat-keynote { --category-color: #7c3aed; --category-bg: #f5f3ff; }
.cat-web-dev { --category-color: #2563eb; --category-bg: #eff6ff; }
.cat-mobile { --category-color: #0284c7; --category-bg: #f0f9ff; }
.cat-uiux { --category-color: #db2777; --category-bg: #fdf2f8; }
.cat-security { --category-color: #dc2626; --category-bg: #fef2f2; }
.cat-cloud { --category-color: #0891b2; --category-bg: #ecfeff; }
.cat-panel { --category-color: #ea580c; --category-bg: #fff7ed; }
.cat-data-science { --category-color: #16a34a; --category-bg: #f0fdf4; }
.cat-devops { --category-color: #475569; --category-bg: #f8fafc; }
.cat-web3 { --category-color: #d946ef; --category-bg: #fdf4ff; }
.cat-break, .cat-welcome { --category-color: #94a3b8; --category-bg: #f1f5f9; }

.session-card {
  border-left: 4px solid var(--category-color, #e2e8f0) !important;
  background: var(--category-bg, #ffffff) !important;
}

.timeline-block {
  border-left: 3px solid var(--category-color, #e2e8f0) !important;
  background: var(--category-bg, #ffffff) !important;
}

/* Multiple Speakers Layout & Details */
.modal-speakers-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.modal-speaker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-speaker-card:active {
  background: var(--bg-card-hover);
}

.session-speaker-link {
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-right: 6px;
}

.session-speaker-link:hover {
  text-decoration: underline;
}

.session-speaker-comma {
  color: var(--text-muted);
  margin-right: 6px;
}

.speaker-large-institution {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 2px;
  font-weight: 500;
}

.speaker-contact-row {
  font-size: 0.78rem;
  color: var(--accent-primary);
  margin-top: 4px;
  font-weight: 600;
}

.speaker-contact-row a {
  color: inherit;
  text-decoration: none;
}

.speaker-contact-row a:hover {
  text-decoration: underline;
}

/* Registration Form Styles */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: var(--bg-card);
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
