/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 16px; /* Controls spacing between elements in the group */
}

.control-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Controls spacing between labels and components */
}

.control-label {
  display: inline-block;
  width: 70px; /* Fixed label width to ensure alignment */
  text-align: right;
  margin-right: 8px;
  white-space: nowrap;
}

.refresh-button {
  margin-left: 16px;
}

.log-content-container {
  height: 70vh; /* Uses viewport height unit to ensure sufficient height on different screen sizes */
  min-height: 500px; /* Sets minimum height to ensure enough space on small screens */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; /* Adds relative positioning for absolute positioning of child elements */
  margin-top: 10px; /* Adds top margin to separate from controls above */
  border-radius: 4px; /* Rounded corners */
}

.log-content {
  height: 100%;
  overflow: auto !important; /* Forces scrollbar to be visible */
  font-family: monospace;
  font-size: 13px; /* Slightly increased font size for better readability */
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #e0e0e0; /* Adds border for clearer distinction of log content area */
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Adds inner shadow for enhanced visual effect */

  pre {
    margin: 0;
    height: auto; /* Changed to auto to fit content */
    min-height: 100%; /* Ensures it occupies at least the container's height */
    overflow: visible; /* Makes pre element's content visible, controlled by parent container's scroll */
  }
  
  /* Custom scrollbar styles - for Webkit browsers */
  &::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  /* For Firefox browsers */
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.highlight {
  background-color: rgba(255, 255, 0, 0.3);
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  from {
    background-color: rgba(255, 255, 0, 0.3);
  }
  to {
    background-color: transparent;
  }
}