/*
 * File: style.css
 * Path: \themes\kadence-child-theme-master\tools\sentence-counter\style.css (UPDATED)
 */

#sentence-counter-tool { /* Changed ID to be specific to this tool */
  max-width: 1100px;
  width: 95%; /* Make it fluid for smaller screens */
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
}

#sentence-counter-tool h3 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #333;
}

.stat-boxes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Keep wrap for responsiveness on smaller screens */
  gap: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: hidden; /* Hide horizontal scroll if wrapping */
}

.stat-box {
  /* --- IMPORTANT CHANGE HERE --- */
  /* Adjusted flex-basis for 4 items in a row, considering 3 gaps of 1rem each */
  flex: 1 1 calc(25% - 0.75rem); /* (4 items * 0.75rem gap = 3rem total gap; 3rem / 4 items = 0.75rem per item) */
  min-width: 150px; /* Reduced min-width slightly to allow more flexibility for 4 items */
  /* --- END IMPORTANT CHANGE --- */

  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #FF8A08;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Responsive adjustments for stat-boxes */
@media (max-width: 768px) {
    .stat-box {
        flex: 1 1 calc(50% - 0.5rem); /* Two columns on medium screens */
        min-width: unset; /* Allow flexibility */
    }
}

@media (max-width: 480px) {
    .stat-box {
        flex: 1 1 100%; /* Single column on small screens */
    }
}

.stat-label {
  font-size: 0.65rem;
  color: #777;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
}

#sentenceInput { /* Changed ID to be specific to this tool */
  width: 100%;
  height: 300px;
  padding: 1rem;
  border: 1px solid #FF8A08;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  font-family: monospace;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}