:host {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: var(--size);
  padding-bottom: var(--size);
  overflow: hidden;

  > *:not(.sam-text-header) {
    margin-left: var(--size);
    margin-right: var(--size);
  }

  .sam-text-header {
    margin-bottom: var(--size);
    flex-shrink: 0;

    .logs-actions {
      position: absolute;
      right: 0;
      display: flex;
      gap: 8px;
    }
  }
}

.logs-container {
  flex: 1;
  overflow-y: auto;
  background: var(--background-light);
  border-radius: 8px;
  padding: var(--size-h);
}

.logs-empty {
  color: var(--muted-foreground);
  text-align: center;
  padding: var(--size);
}

.log-entry {
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
  display: flex;
  gap: 8px;
  align-items: center;

  &.log-error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
  }

  &.log-warn {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
  }

  &.log-debug {
    background: rgba(108, 117, 125, 0.15);
    color: #adb5bd;
  }

  &.log-info {
    background: rgba(13, 110, 253, 0.1);
    color: var(--foreground);
  }
}

.log-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.log-time {
  color: var(--muted-foreground);
  flex-shrink: 0;
  font-size: 10px;
}

.log-message {
  flex: 1;
  word-break: break-word;
}
