* {
  box-sizing: border-box;
}

html {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Ubuntu,
    sans-serif;
  background: #f5f6f8; /* fundo com contraste */
  color: #111111;
}

body {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

textarea {
  resize: none;
  overflow-y: auto;
  min-height: 140px;
  max-height: 420px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

header {
  margin-bottom: 40px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

header p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #444;
}

.section {
  margin-bottom: 56px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: #222;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 18px;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.tool-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.tool-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e4e6eb;
}

.site-header .container {
  display: flex;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: #2563eb;
}

.home-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.home-subtitle {
  color: #555;
}

.tool-header {
  margin-bottom: 40px;
}

.tool-header h1 {
  font-size: 2rem;
  margin: 0;
}

.tool-header p {
  margin-top: 8px;
  color: #555;
  font-size: 1rem;
}

.more-tools {
  margin-top: 48px;
  font-size: 0.95rem;
}

.more-tools a {
  color: #2563eb;
  font-weight: 500;
}

.more-tools a:hover {
  text-decoration: underline;
}

.tool-form {
  max-width: 600px;
  margin-top: 24px;
}

.tool-form textarea,
.tool-form input[type="file"] {
  width: 100%;
  margin-bottom: 12px;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tool-actions button {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.tool-preview {
  margin-top: 16px;
  padding: 16px;
  min-height: 180px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-message {
  margin: 10px 0 18px 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tool-message-info {
  background: #eef4ff;
  color: #1e40af;
}

.tool-message-warning {
  background: #fff7ed;
  color: #9a3412;
}

.tool-message-error {
  background: #fef2f2;
  color: #991b1b;
}
.tool-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-status {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.tool-status.info {
  background: #f0f6ff;
  color: #1e4fd8;
}

.tool-status.success {
  background: #eefaf1;
  color: #1f7a3f;
}

.tool-status.error {
  background: #fdecea;
  color: #a11a1a;
}
