body {
  padding: 32px 12px 32px 12px;
  background: linear-gradient(120deg, #f8fafc 0%, #e3e9f7 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.corner {
  max-width: 135px;
  max-height: 135px;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  z-index: 10;
  opacity: 0.92;
  object-fit: contain;
  aspect-ratio: auto;
}
.top-left   { left: 0; }
.top-right  { right: 0; margin-top: 14px; margin-right: 14px; }

h1 {
  margin-top: 30px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #e3e9f7;
}

.timeline {
  position: relative;
  height: 60px;
  background: #f0f4fa;
  margin: 24px 0 16px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 #e3e9f7;
  border: 1px solid #e0e6f0;
}

.delay-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.15em;
  color: #dc3545;
  background: #fff6f6;
  padding: 6px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 8px #f8d7da33;
  border: 1px solid #f5c2c7;
  z-index: 20;
  margin: 0;
  pointer-events: none;
}

.meeting-info-indicator {
  position: relative;
  margin: 2px auto 2px auto;
  top: 0;
  left: 0;
  display: block;
  text-align: center;
  font-size: 1.13em;
  color: #1976d2;
  background: #e3f2fd;
  padding: 7px 22px;
  border-radius: 18px;
  box-shadow: 0 2px 8px #e3e9f7;
  border: 1.5px solid #bbdefb;
  font-weight: 600;
  letter-spacing: 0.5px;
  max-width: 420px;
}

.theme-box {
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px #e3e9f7;
  padding: 16px 0 10px 0;
  font-size: 1.25em;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  letter-spacing: 0.5px;
}

.theme-current {
  background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
  color: #fff;
  border: 2px solid #007bff;
  margin-bottom: 10px;
  font-size: 1.35em;
  text-shadow: 0 2px 8px #007bff33;
}

.theme-next {
  background: linear-gradient(90deg, #e3f2fd 0%, #f8fafc 100%);
  color: #0d47a1;
  border: 2px solid #b3e5fc;
}

.theme-subtopic {
  background: linear-gradient(90deg, #f8fafc 0%, #e3e9f7 100%);
  color: #1976d2;
  border: 1.5px solid #bbdefb;
  font-size: 1.12em;
  margin-bottom: 18px;
  font-weight: 500;
  box-shadow: 0 1.5px 6px #e3e9f7;
}

#nextThemeBox {
  border-radius: 18px;
  background: linear-gradient(90deg, #e3f2fd 0%, #f8fafc 100%);
  color: #0d47a1;
  font-weight: 600;
  box-shadow: 0 2px 8px #e3e9f7;
}

.theme-timer-indicator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 110px;
  min-height: 44px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 1.45em;
  font-weight: 700;
  border-radius: 16px;
  box-shadow: 0 2px 12px #e3e9f7;
  border: 2px solid #a5d6a7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  z-index: 9999;
  transition: background 0.2s, color 0.2s, border 0.2s;
  pointer-events: auto;
}

.theme-timer-indicator button {
  pointer-events: auto !important;
  z-index: 10000 !important;
  position: relative !important;
  margin-left: 15px;
}
.theme-timer-indicator.timer-over {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #ffcdd2;
}
.theme-timer-indicator.timer-paused {
  background: #424242;
  color: #ffffff;
  border: 2px solid #757575;
  animation: blink 1s infinite;
}

.info-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #e3e9f7;
  border: 1px solid #e0e6f0;
}

h5, h6 {
  color: #2c3e50;
  margin-bottom: 8px;
}

select.form-select {
  border-radius: 12px;
  border: 1px solid #b0bec5;
}

button.btn-primary {
  border-radius: 12px;
  background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #e3e9f7;
  transition: background 0.2s;
}
button.btn-primary:hover {
  background: linear-gradient(90deg, #0056b3 60%, #00aaff 100%);
}

svg {
  width: 100% !important;
  height: 60px !important;
  display: block;
}

@media (max-width: 600px) {
  .corner {
    max-width: 100px;
    max-height: 100px;
  }
  .timeline, svg { height: 38px !important; }
  #nextThemeBox { font-size: 1em; }
  .delay-indicator {
    font-size: 1em;
    margin: 0;
    padding: 4px 10px;
  }
}

@keyframes flash-border {
  0% { box-shadow: 0 0 0 0 rgba(0,123,255,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0,123,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,123,255,0); }
}
.theme-highlight {
  animation: flash-border 1.5s ease-out;
}

@keyframes blink {
  0% { opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { opacity: 0.8; }
}
