/* Global Styles */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Layout */
.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* Left: Slide Display */
.left {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
}

.left img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.8s ease;
}

/* Right: Controls & Info Panel */
.right {
  flex: 1;
  padding: 2rem;
  background-color: #fff;
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.right h2 {
  margin-top: 0;
}

.right p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

/* Control Buttons */
.controls,
.audio-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.controls button,
.audio-controls button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #444;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.controls button:hover,
.audio-controls button:hover {
  background-color: #666;
}

/* Dropdown + Volume Slider */
.audio-controls select,
.audio-controls input[type="range"] {
  margin-right: 0.5rem;
  font-size: 0.95rem;
}

/* Debug Log */
.log-box {
  margin-top: 1.5rem;
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  max-height: 200px;
  overflow-y: scroll;
  border-radius: 6px;
}

/* Toast Messages */
#toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  pointer-events: auto;
}
.slide-toast {
  position: fixed;
  bottom: 1em;
  right: 1em;
  background: #333;
  color: white;
  padding: 0.75em 1em;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.slide-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-toast-info { background: #2196f3; }
.slide-toast-success { background: #4caf50; }
.slide-toast-error { background: #f44336; }

