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

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  min-height: 100vh;
  padding: 20px 10px;
}

.container { 
  max-width: 420px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 30px 25px;
  min-height: 500px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #667eea;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

p {
  text-align: center;
  color: #666;
  margin-bottom: 15px;
}

.btn, button { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:active, button:active {
  transform: translateY(0);
}

button[style*="background: #dc3545"] {
  background: linear-gradient(135deg, #f54e4e 0%, #dc3545 100%) !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

button[style*="background: #dc3545"]:hover {
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.btn-voltar { 
  display: block;
  margin-top: 20px;
  color: #667eea;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  padding: 10px;
  transition: all 0.3s ease;
}

.btn-voltar:hover {
  color: #764ba2;
  transform: scale(1.05);
}

.box { 
  background: #f8f9fa;
  padding: 20px;
  margin: 15px 0;
  border-radius: 16px;
  border: 1px solid #e9ecef;
}

textarea { 
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s ease;
  margin-top: 8px;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
}

.erro { 
  color: #dc3545;
  font-weight: 500;
  margin-top: 10px;
}

select, input[type="text"], input[type="password"] { 
  width: 100%;
  padding: 12px 16px;
  margin: 8px 0;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

select:focus, input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  font-size: 14px;
}

#nomeArquivo {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
}

#resultado {
  text-align: center;
  color: #667eea;
  font-size: 20px;
  font-weight: 700;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo mobile-first */
@media (max-width: 480px) {
  body {
    padding: 10px 5px;
  }
  
  .container {
    padding: 20px 15px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .btn, button {
    padding: 12px 20px;
    font-size: 15px;
  }
}

