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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #ffffff;
}

.form-container {
  background: rgba(40, 40, 40, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 720px;
  backdrop-filter: blur(10px);
}

header {
  margin-bottom: 2rem;
}

.form-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.link-header-buttons {
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.link-header-buttons:hover {
  color: #cccccc;
  text-decoration: underline;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cccccc;
  font-weight: 500;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: "Courier New", monospace;
  resize: vertical;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

textarea::placeholder {
  color: #888888;
}

input {
  width: 100%;
  padding: 1rem;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-family: "Courier New", monospace;
  resize: vertical;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

input::placeholder {
  color: #888888;
}

small {
  color: #888888;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
}

.submit-btn span {
  display: inline-block;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

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

.submit-btn:disabled {
  background: #666666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: #4caf50;
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.success {
  color: #4caf50;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.response-container {
  margin-top: 2rem;
  display: none;
}

.response-title {
  color: #cccccc;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.response-content {
  background: rgba(20, 20, 20, 0.9);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.response-content::-webkit-scrollbar {
  width: 8px;
}

.response-content::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.5);
  border-radius: 4px;
}

.response-content::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.5);
  border-radius: 4px;
}

.response-content::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.7);
}

.clear-response {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cccccc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.clear-response:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background: #45a049;
}

.copy-btn:active {
    background: #3d8b40;
}

.copy-btn.copied {
    background: #2196F3;
}

.response-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem;
    margin: 10px;
  }

  .form-title {
    font-size: 1.5rem;
  }

  textarea {
    min-height: 150px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .form-container {
    padding: 1rem;
  }

  .form-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  textarea {
    min-height: 120px;
    padding: 0.8rem;
  }
}

/* Estilos para o formulário de login */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-form {
  background: rgba(40, 40, 40, 0.95);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
}

.login-form h2 {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.login-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-btn:hover {
  background: linear-gradient(135deg, #45a049, #599049);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.login-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.logout-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-1px);
}