/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #343a40;
  background-color: #ffffff;
  min-height: 100vh;
} */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  border-radius: 12px;
  color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1)!important;
}

header h1 {
  font-size: 45px !important;
  font-weight: 700;
  margin-bottom: 10px;
	color:white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Section styles */
section {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1) !important;
  border: 1px solid rgba(233, 30, 99, 0.1) !important;
  transition: all 0.3s ease;
}

section:hover {
  box-shadow: 0 8px 15px rgba(233, 30, 99, 0.2);
}

section h2 {
  color: #e91e63 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 20px;
}

/* Input section */
.input-header, .output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.input-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(233, 30, 99, 0.2) !important;
  border-radius: 12px !important;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background-color: #f8f9fa !important;
}

textarea:focus {
  outline: none !important;
  border-color: #e91e63 !important;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1) !important;
}

textarea::placeholder {
  color: #6c757d !important;
}

#outputText {
  background-color: #fce4ec !important;
  border-color: rgba(233, 30, 99, 0.3) !important;
}

/* Buttons */
button {
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 500;
  cursor: pointer !important;
  transition: all 0.3s ease;
  font-family: inherit !important;
  display: inline-flex !im\;
  align-items: center;
  gap: 8px;
}

.transform-btn {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1);
	text-transform:none !important;
}

.transform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(233, 30, 99, 0.2) !important;
  background: linear-gradient(135deg, #c2185b, #e91e63) !important;
}

.transform-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background-color: #fce4ec !important;
  color: #e91e63 !important;
  border: 2px solid #e91e63 !important;
}

.secondary-btn:hover {
  background-color: #e91e63 !important;
  color: #ffffff !important;
}

.clear-btn {
  background-color: linear-gradient(219deg, #FB0E76 0%, #910694 100%)  !important;
  color: #ffffff !important;
}

.clear-btn:hover {
  background-color: #c82333 !important;
  transform: translateY(-2px);
}

.copy-btn {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%)  ;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(233, 30, 99, 0.2);
}

/* Transformation buttons grid */
.transformation-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

/* Copy feedback */
.copy-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e91e63;
  color: #ffffff !important;
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 8px 15px rgba(233, 30, 99, 0.2) !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.copy-feedback.show {
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  color: #6c757d;
  border-top: 1px solid rgba(233, 30, 99, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px !important;
  }

  header {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  header h1 {
    font-size: 35px !important;
  }

  header p {
    font-size: 1rem;
  }

  section {
    padding: 20px !important;
  }

  .input-header, .output-header {
    flex-direction: column;
    align-items: stretch;
  }

  .input-controls {
    justify-content: center;
  }

  .transformation-buttons {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
    justify-content: center;
  }

  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  .transformation-buttons {
    gap: 10px;
  }

  button {
    padding: 10px 20px;
    font-size: 0.9rem !important;
  }
}

/* Loading animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e91e63;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
button:focus {
  outline: 3px solid rgba(233, 30, 99, 0.3);
  outline-offset: 2px;
}

textarea:focus {
  outline: 3px solid rgba(233, 30, 99, 0.3);
  outline-offset: -1px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  section {
    border: 2px solid #e91e63;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
