/* Pantheon Notebook Extension Styles */

.pantheon-floating-widget {
  position: relative;
  background: var(--jp-layout-color1);
  border-top: 1px solid var(--jp-border-color1);
  min-height: 40px;
  max-height: 300px;
  display: flex;
  flex-direction: column;
}

.pantheon-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
}

/* Header */
.pantheon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid var(--jp-border-color2);
  margin-bottom: 8px;
}

.pantheon-title {
  font-weight: 600;
  color: var(--jp-ui-font-color0);
  font-size: 14px;
}

.pantheon-toggle-btn {
  background: none;
  border: none;
  color: var(--jp-ui-font-color2);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
  transition: color 0.2s;
}

.pantheon-toggle-btn:hover {
  color: var(--jp-ui-font-color0);
}

/* Input Container */
.pantheon-input-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.pantheon-input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--jp-border-color2);
  border-radius: 4px;
  background: var(--jp-layout-color0);
  color: var(--jp-ui-font-color1);
  font-family: var(--jp-code-font-family);
  font-size: var(--jp-code-font-size);
  resize: vertical;
  min-height: 60px;
  max-height: 150px;
  outline: none;
  transition: border-color 0.2s;
}

.pantheon-input:focus {
  border-color: var(--jp-brand-color1);
}

.pantheon-input::placeholder {
  color: var(--jp-ui-font-color3);
  font-style: italic;
}

/* Button Container */
.pantheon-button-container {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pantheon-send-btn,
.pantheon-clear-btn {
  padding: 6px 16px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pantheon-send-btn {
  background: var(--jp-brand-color1);
  color: white;
}

.pantheon-send-btn:hover {
  background: var(--jp-brand-color0);
}

.pantheon-send-btn:active {
  transform: scale(0.98);
}

.pantheon-clear-btn {
  background: var(--jp-layout-color2);
  color: var(--jp-ui-font-color1);
  border: 1px solid var(--jp-border-color2);
}

.pantheon-clear-btn:hover {
  background: var(--jp-layout-color3);
}

/* Status Bar */
.pantheon-status {
  padding: 4px 8px;
  border-top: 1px solid var(--jp-border-color2);
  margin-top: 8px;
  font-size: 12px;
}

.pantheon-status-text {
  color: var(--jp-ui-font-color2);
}

.pantheon-status-ready {
  color: var(--jp-success-color1);
}

.pantheon-status-processing {
  color: var(--jp-warn-color1);
  animation: pulse 1.5s infinite;
}

.pantheon-status-success {
  color: var(--jp-success-color0);
}

.pantheon-status-error {
  color: var(--jp-error-color1);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pantheon-container {
    padding: 6px;
  }
  
  .pantheon-input {
    font-size: 12px;
  }
  
  .pantheon-send-btn,
  .pantheon-clear-btn {
    padding: 4px 12px;
    font-size: 12px;
  }
}

/* Dark theme adjustments */
[data-jp-theme-light="false"] .pantheon-floating-widget {
  background: var(--jp-layout-color1);
}

[data-jp-theme-light="false"] .pantheon-input {
  background: var(--jp-layout-color0);
  color: var(--jp-ui-font-color0);
}

/* Floating widget when docked */
.pantheon-floating-widget.jp-mod-current {
  border-top: 2px solid var(--jp-brand-color1);
}