* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: #2a2d3a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 20px;
}

.container {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  border: 1px solid #e5e7eb;
}

.container h2 {
  color: #374151;
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 600;
  text-align: center;
}

.input-container {
  margin-bottom: 24px;
}

.input-container input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  color: #374151;
  transition: border-color 0.2s;
}

.input-container input:focus {
  outline: none;
  border-color: #3b82f6;
}

.input-container input::placeholder {
  color: #9ca3af;
}

.btns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

button {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 50px;
}

button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.output-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

p {
  width: 100%;
  min-height: 80px;
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin: 0;
  text-align: center;
}

.copy-btn {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
  padding: 10px 20px;
  font-weight: 600;
}

.copy-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
}

.copy-btn.copied {
  background: linear-gradient(145deg, #00ff88, #00cc6a);
  border-color: #00ff88;
  box-shadow: 
    0 6px 20px rgba(0, 255, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.copy-btn.copied::after {
  content: 'Copied! ✓';
  position: absolute;
  top: 3px;
  right: -150px;
  transform: translateX(-50%);
  background: rgba(0, 255, 136, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  animation: fadeInOut 2s ease;
}

.uppercase {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.uppercase:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.lowercase {
  background: #06b6d4;
  color: white;
  border-color: #06b6d4;
}

.lowercase:hover {
  background: #0891b2;
  border-color: #0891b2;
}

.capitalize {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

.capitalize:hover {
  background: #7c3aed;
  border-color: #7c3aed;
}

.bold {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
  font-weight: 700;
}

.bold:hover {
  background: #d97706;
  border-color: #d97706;
}

.italic {
  background: #10b981;
  color: white;
  border-color: #10b981;
  font-style: italic;
}

.italic:hover {
  background: #059669;
  border-color: #059669;
}

.underline {
  background: #84cc16;
  color: white;
  border-color: #84cc16;
  text-decoration: underline;
}

.underline:hover {
  background: #65a30d;
  border-color: #65a30d;
}

.increase {
  background: #165fcc;
  color: white;
  border-color: #84cc16;
}

.increase:hover {
  background: #0c3674;
  border-color: #65a30d;
}

.decrease {
  background: #cc1c16;
  color: white;
  border-color: #84cc16;
}

.decrease:hover {
  background: #a31712;
  border-color: #65a30d;
}

/* רספונסיביות */
@media (max-width: 768px) {
  .container {
    padding: 24px;
    margin: 16px;
  }
  
  .container h2 {
    font-size: 20px;
  }
  
  .btns-container {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  button {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 45px;
  }
  
  p {
    font-size: 15px;
    min-height: 70px;
    padding: 12px;
  }
  
  .copy-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}
