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

@font-face {
    font-family: tulu;
    src: url("/media/fonts/baravu.ttf");
}

.tulu {
    font-family: tulu;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #b22222 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 300;
}

.description {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-left: 4px solid #8b0000;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.description a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.description a:hover {
  border-bottom: 1px solid #8b0000;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

label {
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

select {
  padding: 10px 16px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  color: #495057;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

select:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

select:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.7;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8b0000;
}

.text-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.textarea-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.textarea-label {
  font-weight: 700;
  color: #8b0000;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.textarea-label::before {
  content: "";
  width: 4px;
  height: 20px;
  background: #8b0000;
  border-radius: 2px;
}

textarea {
  width: 100%;
  height: 320px;
  padding: 18px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  background: white;
  color: #495057;
  transition: all 0.3s ease;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.output {
  font-family: tulu;
  background: #f8f9fa;
  font-size: 15px;
}

.output::placeholder {
    font-family: 'Courier New', Courier, monospace;
}

.copy-btn {
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
  background: linear-gradient(135deg, #a00000, #ff1456);
}

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

.instructions {
  background: white;
  border: 1px solid #dee2e6;
  border-left: 4px solid #8b0000;
  padding: 25px;
  border-radius: 8px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instructions h3 {
  color: #8b0000;
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 700;
}

.instructions ul {
  margin: 20px 0 0 25px;
  line-height: 2;
}

.instructions li {
  margin-bottom: 12px;
}

.bold {
  font-weight: 700;
  color: #8b0000;
}

.tulu {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 3px 8px;
  border-radius: 4px;
  color: #856404;
  font-weight: 600;
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  border-top: 2px solid #dee2e6;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 8px;
}

.footer a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .text-areas {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .control-group {
    justify-content: space-between;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  textarea {
    height: 250px;
  }

  .container {
    padding: 15px;
  }
}

/* Special notification styles */
.alert {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-left: 4px solid #8b0000;
  color: #856404;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.alert a {
  color: #8b0000;
  font-weight: 700;
}

/* Loading styles - keeping the important commented code */
.loading {
  height: 100%;
  width: 100%;
  position: fixed;
  background: #8b0000;
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 300;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success animation for copy button */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.copy-success {
  animation: successPulse 0.3s ease;
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}
