.word-counter-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
}

.text-editor-container {
  margin-bottom: 20px;
}

#text-input {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

button {
  padding: 8px 15px;
  background-color: #4a6fa5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #3a5a8a;
}

.stats-container {
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
}

.basic-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.stat-box {
  background-color: white;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-box h3 {
  margin-top: 0;
  color: #555;
  font-size: 16px;
}

.stat-box span {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.export-actions {
  display: flex;
  gap: 10px;
}

.keyword-density-container {
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 15px;
}

.density-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.density-header h3 {
  margin: 0;
}

.density-export {
  display: flex;
  gap: 10px;
}

.density-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.density-tab {
  padding: 8px 15px;
  background-color: #e9ecef;
  color: #495057;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.density-tab.active {
  background-color: #4a6fa5;
  color: white;
}

.density-results {
  overflow-x: auto;
}

.density-results table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.density-results th, .density-results td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.density-results th {
  background-color: #e9ecef;
}

@media (max-width: 768px) {
  .basic-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .editor-actions, .export-actions, .density-export {
    flex-direction: column;
  }
  
  button {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .density-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .density-tabs {
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .density-tab {
    white-space: nowrap;
  }
}