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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  font-size: 16px;
}

/* Login page styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  margin-bottom: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #4CAF50;
}

button[type="submit"], .btn {
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover, .btn:hover {
  background-color: #45a049;
}

.error-message {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

/* Main app styles */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
}

.header {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 15px;
  font-size: 16px;
  color: #666;
}

.search-box {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 18px;
  margin-bottom: 20px;
}

.search-box:focus {
  outline: none;
  border-color: #4CAF50;
}

.records {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.record {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.record-header {
  background: #f5f5f5;
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.record-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.record-section {
  min-height: 100px;
  max-width: 50vw;
  overflow-wrap: break-word;
  word-break: break-word;
}

.record-section h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
  font-size: 20px;
}

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

.input-key {
  font-weight: bold;
  margin-bottom: 8px;
  color: #4CAF50;
  font-size: 17px;
}

.input-value {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.input-value pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.html-content {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.output-content {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.output-content pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.output-list {
  list-style: none;
  padding-left: 0;
}

.output-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.output-list li:last-child {
  border-bottom: none;
}

.output-list .key {
  font-weight: 600;
  color: #333;
  display: inline-block;
  min-width: 250px;
}

.output-list .value {
  color: #666;
  word-break: break-word;
}

.output-list .value.yes {
  color: #4CAF50;
}

.output-list .value.no {
  color: #999;
}

.output-list ul {
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
}

.highlight {
  background-color: #ffeb3b;
  padding: 2px 0;
  font-weight: 500;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #999;
}

.logout-btn {
  background-color: #f44336;
  margin-top: 10px;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
}

.logout-btn:hover {
  background-color: #d32f2f;
}

@media (max-width: 768px) {
  .record-content {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 10px;
  }
}
