* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1877f2 0%, #3b5998 50%, #192951 100%);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

header {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo {
  font-size: 2.5rem;
  color: #1877f2;
  background: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #ecf0f1;
  line-height: 1.6;
}

.tool-container {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.1);
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 20px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  background: rgba(0,0,0,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24,119,242,0.3);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

button {
  padding: 12px 25px;
  background: linear-gradient(to right, #1877f2, #42b72a);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

#clearBtn {
  background: linear-gradient(to right, #8a8d91, #606770);
}

.font-styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 15px;
  margin: 20px 0;
}

.font-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.font-btn:hover {
  background: rgba(24,119,242,0.3);
  transform: translateY(-2px);
}

.font-btn.active {
  background: rgba(24,119,242,0.5);
  border-color: #1877f2;
}

.output-container {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 15px;
  background: linear-gradient(to right, #1877f2, #42b72a);
}

.output-text {
  background: rgba(0,0,0,0.2);
  min-height: 150px;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1.8;
  border: 2px solid rgba(255,255,255,0.1);
}

.preview {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 1.1rem;
}
