/* Text style classes */
.text-preview {
  display: inline-block;
  padding: 8px 16px;
  margin: 10px auto;
  font-size: 18px;
}

.text-preview.text-default {
  font-family: 'Arial', sans-serif;
  color: #333333;
}

.text-preview.text-old-style {
  font-family: 'Times New Roman', serif;
  color: #444444;
  font-size: 20px;
}

.text-preview.text-modern {
  font-family: 'Montserrat', sans-serif;
  color: #3498db;
  font-weight: 500;
}

.text-preview.text-retro {
  font-family: 'Press Start 2P', cursive;
  color: #ff6b6b;
  font-size: 16px;
  text-transform: uppercase;
}

.text-preview.text-script {
  font-family: 'Pacifico', cursive;
  color: #8e44ad;
  font-size: 22px;
}

.text-preview.text-tech {
  font-family: 'Roboto', sans-serif;
  color: #2ecc71;
  letter-spacing: 2px;
  font-weight: 300;
}

/* New text styles */
.text-preview.text-neon {
  font-family: 'Montserrat', sans-serif;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
  letter-spacing: 2px;
  background-color: #000;
  border-radius: 5px;
}

.text-preview.text-shadow {
  font-family: 'Arial', sans-serif;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  background-color: #444;
}

.text-preview.text-gradient {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #6e48aa, #9d50bb, #e74c3c, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 20px;
}

.text-preview.text-outline {
  font-family: 'Impact', sans-serif;
  color: white;
  -webkit-text-stroke: 1px #333;
  font-size: 20px;
  letter-spacing: 1px;
}

.text-preview.text-handwritten {
  font-family: 'Pacifico', cursive;
  color: #333;
  font-size: 20px;
  transform: rotate(-3deg);
}

/* Text style modal */
.text-style-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.text-style-modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  width: 80%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.text-style-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.text-style-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.text-style-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.text-style-close:hover {
  color: #e74c3c;
}

.text-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.text-style-option {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

.text-style-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  border-color: #4a6eff;
}

.text-style-option h4 {
  margin: 10px 0 5px;
  color: #333;
}

.text-style-option p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}