/* MaestroSDK Demo Styles */
* {
  box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background: #f6f8fa;
    overflow: hidden;
}
body {
    height: 100vh;
    width: 100vw;
}

.maestro-sdk-demo {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

.demo-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

.demo-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  box-sizing: border-box;
  height: 100vh;
}

.demo-left, .demo-right {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  flex: 0 0 280px;
}

.demo-right {
  border-left: 1px solid #e0e0e0;
  border-right: none;
}

.demo-center {
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

.demo-section-title {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #444;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}

.demo-clear-btn {
  margin-bottom: 10px;
  padding: 6px 14px;
  font-size: 0.95em;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #f3f4f6;
  color: #444;
  cursor: pointer;
  transition: background 0.17s;
  width: fit-content;
  align-self: center;
}

.demo-clear-btn:hover {
  background: #e5e7eb;
}

.demo-events {
  flex: 1;
  overflow-y: auto;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9em;
  color: #333;
  min-height: 180px;
  border: 1px solid #e5e7eb;
  word-break: break-word;
  white-space: pre-wrap;
}

.event-sent, .event-received {
  font-size: 0.9em;
  color: #222;
  padding: 2px 0;
  margin: 6px 0;
  background: none;
  border-radius: 0;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: inherit;
  font-weight: normal;
}

.event-sent {
  color: #0066cc;
}

.event-received {
  color: #006600;
}

.demo-button-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.demo-button-bar input[type="text"] {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 170px;
  margin-right: 10px;
}

.demo-button-bar button {
  padding: 10px 18px;
  font-size: 1em;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.05);
  transition: background 0.15s;
}

.demo-button-bar button:hover {
  background: #1e40af;
}

.demo-iframe-wrapper {
  width: 700px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  margin: auto;
}

.demo-iframe {
  width: 750px;
  height: 80vh;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  transform: scale(1);
  transform-origin: 0 0;
}

.demo-iframe::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .demo-iframe-wrapper {
    max-width: calc(100vw - 520px);
  }
}

@media (max-width: 1024px) {
  .demo-container {
    flex-direction: column;
    height: auto;
  }
  
  .demo-left, .demo-right {
    width: 100%;
    max-height: 200px;
    flex: none;
  }
  
  .demo-center {
    order: -1;
    min-height: 400px;
  }
  
  .demo-iframe-wrapper {
    max-width: calc(100vw - 40px);
    height: 350px;
  }
}