/* SmartText Condenser Custom Styles */

body {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for fixed process button */
}

/* Text areas and output containers */
textarea, .output-text {
  min-height: 250px;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-y: auto;
}

.output-text {
  background-color: #fff;
  min-height: 250px;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Comparison view */
.comparison-text {
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  background-color: #fff;
}

/* Highlighting for diff view */
.added {
  background-color: #d4edda;
  color: #155724;
  text-decoration: none;
}

.removed {
  background-color: #f8d7da;
  color: #721c24;
  text-decoration: line-through;
}

.preserved {
  background-color: #e2f0fd;
  color: #0c5460;
  font-weight: 500;
}

/* Keywords styling */
.keyword-pill {
  display: inline-block;
  background-color: #e2f0fd;
  color: #0d6efd;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.keyword-pill .remove-keyword {
  cursor: pointer;
  margin-left: 0.25rem;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 200px;
  width: 100%;
}

/* Process button fixed at bottom */
.process-button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.process-button-container .btn {
  padding-left: 2rem;
  padding-right: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card styling */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Preset buttons */
.preset-btn {
  transition: all 0.2s;
}

.preset-btn:hover {
  transform: translateY(-1px);
}

.preset-btn.active {
  background-color: #0d6efd;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .process-button-container {
    width: 100%;
    padding: 0 15px;
  }
  
  .process-button-container .btn {
    width: 100%;
  }
}