/**
 * Character Lab CSS - Based on main style.css
 */

:root {
  --accent-color-hover: #6b91c5;
}

/* Global box sizing */
* {
  box-sizing: border-box;
}

/* Component specific styles */
.header {
  padding-bottom: 0.4rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-top: 0.4rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 0;
  text-align: center;
  font-family: var(--font-primary);
}

/* Split panel layout */
.panel-container {
  /* Flex instead of grid since we're using fixed positioning */
  display: flex;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 88vh; /* Adjusted height to use more vertical space */
}

.left-panel {
  height: calc(100vh - 100px); /* Further reduced to account for header */
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 240px; /* Made narrower to give more space to content */
  top: 3.5rem; /* Reduced space for header */
  left: 0.5rem; /* Reduced left padding further */
}

.right-panel {
  /* No fixed height or scroll - use page scroll instead */
  padding: 0.5rem 1rem 1.5rem 0; /* Further reduced padding */
  margin-left: 270px; /* Further reduced margin from left panel */
  width: calc(100% - 270px); /* Make sure it takes up the full width */
}

/* Personalities List Section */
.persona-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: calc(100% - 50px); /* Reduce space for create button */
}

.persona-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%; /* Ensure it takes full width of container */
  box-sizing: border-box;
}

.persona-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.6rem 0.8rem; /* Reduced padding */
  border-bottom: 1px solid var(--border-color);
}

.persona-list-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-color);
  border-bottom: none;
  padding-bottom: 0;
}

.persona-count {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.create-new-btn {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem; /* Slightly smaller text */
}

.create-new-btn .icon {
  font-size: 1.2rem;
}

.persona-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word; /* Allow long words to break */
  overflow-wrap: break-word; /* Ensure words wrap */
}

.persona-item:hover {
  background-color: rgba(91, 129, 185, 0.1);
}

.persona-item.selected {
  background-color: rgba(91, 129, 185, 0.2);
  border-left: 4px solid var(--accent-color);
}

.persona-item.selected::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 1.2rem;
  opacity: 0.7;
}

.persona-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.persona-name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 70%; /* Leave room for engine label */
}

.persona-engine {
  font-size: 0.75rem;
  opacity: 0.7;
  padding: 0.15rem 0.4rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  white-space: nowrap; /* Keep on one line */
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 30%;
}

.persona-details {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  opacity: 0.8;
}

.persona-voice {
  font-family: var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.persona-updated {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0.6;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Search and Filter */
.persona-search {
  padding: 0.5rem 0.8rem; /* Reduced padding */
  border-bottom: 1px solid var(--border-color);
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(91, 129, 185, 0.3);
}

/* Edit section layout */
.edit-section {
  position: relative;
}

.layout-wrapper {
  display: grid;
  grid-template-columns: minmax(550px, 2fr) minmax(350px, 1fr); /* Wider content areas with better proportion */
  grid-template-rows: auto; /* Let rows adjust to content */
  gap: 18px; /* Further reduced gap */
  width: 100%;
  box-sizing: border-box;
  align-items: start; /* Start alignment keeps things at the top */
}

/* Form Container */
.form-container {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.1rem 1.3rem; /* Further reduced padding */
  margin-bottom: 1rem; /* Further reduced margin */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%; /* Ensure it takes full width */
}

.form-title {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editing-indicator {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(91, 129, 185, 0.1);
  border-radius: 4px;
  border-left: 3px solid var(--accent-color);
}

#current-persona-name {
  font-weight: 600;
  color: var(--accent-color);
}

.form-group {
  margin-bottom: 1rem; /* Further reduced margin */
}

label {
  display: block;
  margin-bottom: 0.4rem; /* Reduced margin */
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-color);
}

input[type="text"], textarea, select {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.7rem 0.9rem; /* Reduced padding */
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

select:hover {
  border-color: #505050;
}

textarea {
  height: 110px; /* Further reduced height */
  resize: vertical;
  line-height: 1.5;
}

input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(91, 129, 185, 0.3);
}

.form-actions {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on narrow screens */
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.form-actions .button {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  min-width: 140px;
  white-space: nowrap; /* Prevent text from wrapping inside buttons */
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Enhance description button */
.label-with-button {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on narrow screens */
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 0.5rem; /* Add gap between label and button when wrapped */
}

.label-with-button label {
  margin-bottom: 0; /* Override default margin when in this container */
}

.button-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-width: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.enhance-status {
  margin-top: 0.6rem;
  min-height: 24px;
  font-size: 0.9rem;
}

.enhance-status.loading {
  color: #ffcc00;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.enhance-status.success {
  color: #00cc33;
}

.enhance-status.error {
  color: #ff6666;
}

/* Say section */
.say-section {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.1rem 1.1rem 1.3rem; /* Further reduced padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: static;
  align-self: flex-start;
  height: auto;
  min-height: auto;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  transition: none;
}

.say-title {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.2rem;
}

.say-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Further reduced gap */
  margin-bottom: 0.75rem; /* Further reduced margin */
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem; /* Further reduced padding */
  width: 100%;
}

.say-output-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto; /* Let it fit content */
  position: relative;
  margin-top: 1rem;
}

.say-input-group {
  width: 100%;
}

#say-text {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Prevent overflow */
}

/* .say-form width is already set above */

/* Removed say-input-with-button styles as we changed the HTML structure */

.say-options {
  margin: 0.4rem 0;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
}

#say-btn {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem;
  margin-top: 0.4rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  height: auto;
}

#say-btn:hover {
  background-color: var(--accent-color-hover);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

#say-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.say-output {
  padding: 0.6rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 70px; /* Reduced minimum height */
  height: auto;
  max-height: 140px; /* Reduced maximum height */
  overflow-y: auto; /* Add scrolling for overflow */
  line-height: 1.45;
  border-left: 3px solid var(--accent-color);
  color: #b9ff99;
  transition: none;
  margin-bottom: 0.6rem; /* Further reduced margin */
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.say-output.loading {
  background-color: rgba(0, 0, 0, 0.3);
  border-left-color: #ffcc00;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px; /* Ensure there's space for the loading indicator */
}

.say-output.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffcc00;
}

.say-output.success {
  background-color: rgba(0, 40, 0, 0.2);
  border-left-color: #00cc33;
  box-shadow: 0 0 10px rgba(0, 204, 51, 0.1);
}

.say-output.error {
  background-color: rgba(40, 0, 0, 0.2);
  border-left-color: #ff3333;
  color: #ff9999;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
}

@keyframes progress-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

audio {
  width: 100%; 
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  height: 34px; /* Further reduced height */
  box-sizing: border-box;
  display: block;
  margin-top: 0.3rem; /* Further reduced margin */
}

audio:focus, audio:hover {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(91, 129, 185, 0.2);
}

audio::-webkit-media-controls-panel {
  background-color: rgba(20, 30, 40, 0.8);
}

audio::-webkit-media-controls-play-button {
  background-color: rgba(91, 129, 185, 0.8);
  border-radius: 50%;
  transition: all 0.2s ease;
}

audio::-webkit-media-controls-play-button:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* Empty states */
.empty-state-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 180px; /* Reduced height */
  color: var(--text-color);
  opacity: 0.7;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem; /* Reduced padding */
  text-align: center;
  min-height: 350px; /* Reduced height */
  color: var(--text-color);
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
  margin-bottom: 1.5rem; /* Reduced margin */
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.5;
}

/* Loading states */
.loading-indicator {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(91, 129, 185, 0.3);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-left: 0.5rem;
}

.loading-pulse {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 10px auto;
  opacity: 0.8;
  border-radius: 50%;
  background-color: rgba(91, 129, 185, 0.2);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.4; }
  100% { transform: scale(0.8); opacity: 0.8; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .form-container, .say-section {
    max-width: 100%;
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 1400px) {
  .left-panel {
    width: 220px; /* Even narrower for more content space */
  }
  
  .right-panel {
    margin-left: 240px; /* Adjusted spacing */
    width: calc(100% - 240px);
    padding-right: 0.5rem; /* Reduced padding */
  }
  
  /* Adjust grid template for laptops */
  .layout-wrapper {
    grid-template-columns: minmax(470px, 3fr) minmax(340px, 1fr); /* Better proportions for content */
    gap: 12px; /* Even further reduced gap */
  }
}

@media (max-width: 960px) {
  .left-panel {
    width: 200px; /* Even narrower for this breakpoint */
  }
  
  .right-panel {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
  
  /* Adjust layout for this breakpoint */
  .layout-wrapper {
    grid-template-columns: minmax(400px, 3.5fr) minmax(280px, 1fr); /* Better proportions */
    gap: 10px; /* Smaller gap */
  }
  
  /* Reduce some margins and paddings for this screen size */
  .form-container, .say-section {
    padding: 1rem;
  }
  
  .form-title, .say-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
  }
}

@media (max-width: 900px) {
  /* Stack layout vertically at 900px instead of 800px */
  .layout-wrapper {
    grid-template-columns: 1fr; /* Stack vertically on smaller screens */
    gap: 1.5rem; /* Reduced gap for vertical layout */
  }
  
  .say-section {
    position: static;
    max-width: 100%;
    padding: 1rem 1.25rem 1.5rem;
    margin-bottom: 1.5rem; /* Reduced space at bottom for mobile */
  }
  
  /* Ensure buttons have enough space */
  .form-actions {
    justify-content: flex-start; /* Left align buttons */
  }
  
  /* Improve form label/field layout */
  .form-group {
    margin-bottom: 1.5rem; /* Adjusted space between form fields */
  }
}


@media (max-width: 900px) {
  /* Switch to vertical layout */
  .panel-container {
    display: block;
  }
  
  .left-panel {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    max-height: 500px;
    margin-bottom: 2rem;
  }
  
  .right-panel {
    margin-left: 0;
    width: 100%;
    max-width: 800px; /* Set maximum width for readability */
    padding-right: 1rem; /* Ensure content doesn't touch edge */
  }
  
  /* Button styling for mobile */
  #say-btn {
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-container {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .say-section {
    padding: 1rem;
    position: static;
    max-height: none;
  }
  
  .edit-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .persona-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .persona-engine {
    margin-top: 0.25rem;
  }
  
  /* Small screen styling */
  #say-btn {
    padding: 0.9rem;
  }
  
  /* Prevent overflow issues */
  .form-container {
    padding: 1rem;
    overflow-x: hidden;
  }
  
  /* Ensure form elements fit */
  input[type="text"], textarea {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 0.7rem;
  }
  
  /* Make buttons more touch-friendly */
  .button {
    min-height: 44px;
  }
  
  /* Fix label overflow */
  label, .label-with-button {
    word-break: break-word;
    hyphens: auto;
  }

/* Event Config Styles */
.event-config-container {
  /* Match the form-container styling */
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.event-config-header {
  margin-bottom: 1rem;
}

.event-config-header h3 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.2rem;
}

.event-config-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.event-config-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-config-textarea {
  flex: 1;
  width: 100%;
  min-height: 350px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--input-bg);
  color: var(--text-color);
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-config-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(91, 129, 185, 0.3);
}

.event-config-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.event-config-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.event-config-actions .button {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  min-width: 140px;
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.status-message.success {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-message.error {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-message.info {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Mobile responsiveness for event config */
@media (max-width: 768px) {
  .event-config-container {
    padding: 1rem;
  }
  
  .event-config-textarea {
    min-height: 300px;
    font-size: 12px;
  }
  
  .event-config-actions {
    flex-direction: column;
  }
  
  .event-config-actions .button {
    width: 100%;
  }
}
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background-color: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  min-width: 250px;
  max-width: 400px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.success {
  border-left: 4px solid var(--success-color);
  background-color: rgba(20, 40, 20, 0.95);
}

.toast.error {
  border-left: 4px solid var(--error-color);
  background-color: rgba(40, 20, 20, 0.95);
}

.toast.info {
  border-left: 4px solid var(--accent-color);
  background-color: rgba(20, 30, 40, 0.95);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
}

.toast.fade-out {
  opacity: 0;
  transform: translateX(20px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile responsiveness for toasts */
@media (max-width: 600px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
  }
  
  .toast {
    width: 100%;
    max-width: none;
  }
}


#reset-config-btn {
  background: #dd2222;
}

#save-config-btn {
  background: var(--success-color);
}

.break {
  flex-basis: 100%;
  height: 0;
}