/* App-specific styles for PySnippets app runner */

/* Hide config elements by default */
mpy-config,
py-config {
  display: none !important;
}

/* Ensure the attribution is visible and properly styled */
.pysnippets-attribution {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  background: rgba(0, 0, 0, 0.9) !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  z-index: 10000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

.pysnippets-attribution a {
  color: #66BB6A !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  transition: color 0.2s ease !important;
}

.pysnippets-attribution a:hover {
  color: #81C784 !important;
  text-decoration: none !important;
}

.pysnippets-attribution svg {
  margin-right: 6px !important;
  flex-shrink: 0 !important;
  color: #66BB6A !important;
}

/* Ensure full-screen apps work properly */
body.app-mode {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  overflow: auto !important;
}

/* Oops message specific styles */
.oops-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.oops-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 500px;
  width: 100%;
}

.oops-emoji {
  font-size: 64px;
  margin-bottom: 20px;
}

.oops-title {
  margin: 0 0 16px 0;
  font-size: 2.5rem;
  font-weight: 600;
}

.oops-message {
  margin: 0 0 24px 0;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.oops-button {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.oops-button:hover {
  background-color: #45a049;
}
