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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #2c3e50;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #4285f4;
}

textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

input[type="file"] {
  display: none;
}

.file-upload-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.file-upload-btn:hover {
  border-color: #4285f4;
  background: #f8f9fa;
}

.file-name {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.send-btn {
  background: #4285f4;
  color: white;
  flex: 1;
}

.send-btn:hover:not(:disabled) {
  background: #3367d6;
}

.send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.toggle-btn {
  background: #f0f0f0;
  color: #333;
  padding: 8px 16px;
  font-size: 12px;
}

.toggle-btn:hover {
  background: #e0e0e0;
}

.hidden {
  display: none;
}

.results {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #4285f4;
}

.results h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.results-content {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.error {
  color: #d32f2f;
  background: #ffebee;
  padding: 12px;
  border-radius: 4px;
  margin-top: 10px;
}

.loading {
  display: inline-block;
  margin-left: 10px;
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}
