/* Sunil Sir's Open Canvas Sandbox Runner Styles */

.canvas-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.canvas-modal-overlay.active {
  display: flex;
}

.canvas-window {
  background: #0d1b2a;
  border: 1px solid #213755;
  border-radius: 16px;
  width: 900px;
  max-width: 95vw;
  height: 80vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15);
  animation: canvasSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes canvasSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.canvas-modal-overlay.maximized .canvas-window {
  width: 98vw;
  height: 96vh;
  max-width: 98vw;
  max-height: 98vh;
  border-radius: 8px;
}

.canvas-header {
  padding: 14px 20px;
  background: #1b2d45;
  border-bottom: 1px solid #213755;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canvas-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.canvas-indicator-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.canvas-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.canvas-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-btn {
  background: #0d1b2a;
  border: 1px solid #213755;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.canvas-btn:hover {
  background: #213755;
  color: #fff;
  border-color: #3b82f6;
}

.canvas-btn-close {
  color: #f43f5e;
}
.canvas-btn-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
  border-color: #f43f5e;
}

.canvas-frame-container {
  flex: 1;
  position: relative;
  background: #070f1e;
  overflow: hidden;
}

.canvas-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f172a;
}
