/* TROSQA Effect Studio & Applications Styles */

:root {
  --es-bg: #0d0e12;
  --es-surface: #161820;
  --es-surface-border: #262936;
  --es-text: #f1f5f9;
  --es-text-muted: #94a3b8;
  --es-primary: #8b5cf6;
  --es-primary-hover: #7c3aed;
  --es-accent: #f59e0b;
}

.effect-studio-shell {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--es-bg);
  color: var(--es-text);
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.effect-studio-shell[hidden] {
  display: none !important;
}

.es-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.es-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: var(--es-surface);
  border-bottom: 1px solid var(--es-surface-border);
}

.es-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.es-brand>div{display:grid;gap:.05rem}.es-brand small{font-size:.65rem;color:var(--es-text-muted);font-weight:500}

.es-icon {
  color: var(--es-primary);
  font-size: 1.3rem;
}

.es-source-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.es-source-label {
  font-size: 0.85rem;
  color: var(--es-text-muted);
}

.es-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.es-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 0.375rem;
  background: var(--es-surface-border);
  color: var(--es-text);
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.es-btn:hover {
  background: #333748;
}

.es-btn-primary {
  background: var(--es-primary);
  color: #fff;
}

.es-btn-primary:hover {
  background: var(--es-primary-hover);
}
.es-btn-accent{background:#0f766e;color:#ecfeff;border-color:#14b8a6}.es-btn-accent:hover{background:#0d9488}.es-btn:disabled{opacity:.5;cursor:progress}

.es-btn-return {
  background: rgba(245, 158, 11, 0.15);
  color: var(--es-accent);
  border-color: rgba(245, 158, 11, 0.3);
}

.es-btn-return:hover {
  background: rgba(245, 158, 11, 0.25);
}

.es-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

.es-btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.es-btn-icon {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

}

/* Main Body Layout */
.es-main-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.es-panel {
  width: 280px;
  background-color: var(--es-surface);
  border-color: var(--es-surface-border);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.es-left-panel{width:310px}.es-right-panel{width:320px}

.es-left-panel {
  border-right: 1px solid var(--es-surface-border);
}

.es-right-panel {
  border-left: 1px solid var(--es-surface-border);
}

.es-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--es-text-muted);
  margin-bottom: 0.75rem;
}

.es-effect-browser {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.es-effect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: var(--es-bg);
  border-radius: 0.375rem;
  border: 1px solid var(--es-surface-border);
}

.es-effect-item strong {
  display: block;
  font-size: 0.85rem;
}

.es-effect-item small {
  font-size: 0.72rem;
  color: var(--es-text-muted);
}
.es-effect-item>div{min-width:0}.es-effect-item small{display:block;line-height:1.3;margin-top:.18rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.es-input,.es-select,.es-output-settings input,.es-output-settings select{width:100%;box-sizing:border-box;background:var(--es-bg);border:1px solid var(--es-surface-border);border-radius:.4rem;color:var(--es-text);padding:.48rem .55rem;font-size:.8rem}.es-input{margin-bottom:.65rem}.es-preset-actions{display:grid;gap:.5rem}.es-two-col{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.es-output-settings{display:grid;gap:.6rem}.es-output-settings label{display:grid;gap:.25rem;color:var(--es-text-muted);font-size:.72rem}

.es-viewport {
  flex: 1;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.es-canvas-container {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 0.375rem;
  overflow: hidden;
  background: #000;
}

#effect-studio-preview-canvas {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.es-stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.es-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--es-bg);
  border: 1px solid var(--es-surface-border);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.es-stack-item.is-active {
  border-color: var(--es-primary);
  background: rgba(139, 92, 246, 0.1);
}

.es-stack-controls {
  display: flex;
  gap: 0.35rem;
}

.es-stack-controls button {
  background: none;
  border: none;
  color: var(--es-text-muted);
  cursor: pointer;
}

.es-stack-controls button:hover {
  color: var(--es-text);
}
.es-section-title{display:flex;align-items:center;justify-content:space-between}.es-section-title h3{margin-bottom:.75rem}.es-link-btn{border:0;background:transparent;color:#a78bfa;cursor:pointer;font-size:.72rem}.es-parameter-head{display:grid;gap:.2rem;padding-bottom:.75rem;margin-bottom:.75rem;border-bottom:1px solid var(--es-surface-border)}.es-parameter-head small{color:var(--es-text-muted);font-size:.72rem;line-height:1.4}

/* Property Schema Form Controls */
.trosqa-property-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.trosqa-property-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--es-text-muted);
}

.trosqa-property-range-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trosqa-property-range {
  flex: 1;
  accent-color: var(--es-primary);
}

.trosqa-property-output {
  font-size: 0.8rem;
  width: 2.2rem;
  text-align: right;
}

.trosqa-property-select,
.trosqa-property-text,
.trosqa-property-color {
  background: var(--es-bg);
  border: 1px solid var(--es-surface-border);
  color: var(--es-text);
  padding: 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.82rem;
  width: 100%;
}

/* Bottom Scrubber Bar */
.es-bottombar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background-color: var(--es-surface);
  border-top: 1px solid var(--es-surface-border);
}

.es-scrubber {
  flex: 1;
  accent-color: var(--es-primary);
}

.es-time-display {
  font-size: 0.82rem;
  color: var(--es-text-muted);
  font-family: monospace;
}

.es-muted {
  font-size: 0.82rem;
  color: var(--es-text-muted);
  font-style: italic;
}
.es-status{position:absolute;left:50%;bottom:1.2rem;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#064e3b;color:#d1fae5;border:1px solid #10b981;border-radius:999px;padding:.55rem 1rem;font-size:.8rem;font-weight:700;transition:.2s}.es-status.is-visible{opacity:1;transform:translate(-50%,0)}.es-status.is-error{background:#7f1d1d;color:#fee2e2;border-color:#ef4444}

@media(max-width:1100px){.es-topbar{flex-wrap:wrap}.es-source-picker{order:3;width:100%}.es-main-body{display:grid;grid-template-columns:240px minmax(0,1fr)}.es-left-panel{width:auto}.es-right-panel{width:auto;position:absolute;right:0;top:0;bottom:0;max-width:290px;box-shadow:-12px 0 35px #0008}.es-viewport{min-width:0}}
@media(max-width:720px){.effect-studio-shell{overflow:auto}.es-container{min-height:100dvh;height:auto}.es-topbar{padding:.65rem}.es-source-picker,.es-topbar-actions{flex-wrap:wrap;gap:.4rem}.es-main-body{display:flex;flex-direction:column;overflow:visible}.es-panel,.es-left-panel,.es-right-panel{position:static;width:auto;max-width:none;border:0}.es-viewport{min-height:46dvh;order:-1}.es-right-panel{box-shadow:none}.es-bottombar{position:sticky;bottom:0}.es-source-label{width:100%}}

/* Accordion Applications Section */
.properties-application {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.properties-application strong {
  display: block;
  font-size: 0.88rem;

}

.properties-application small {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.properties-application button {
  padding: 0.35rem 0.75rem;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.properties-application button:hover {
  background: #7c3aed;
}

.properties-application button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
