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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  color: #2563eb;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #64748b;
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.warning-banner {
  background: #e8f0fe;
  color: #1e40af;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
  border: 1px solid #bfdbfe;
}

.drop-zone {
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  padding: 5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.drop-zone:hover,
.drop-zone.active {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 10px 15px -3px rgba(59,130,246,0.2);
}

.hidden {
  display: none !important;
}

.editor {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.preview-info p {
  margin: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.controls {
  margin: 2rem 0;
  text-align: center;
}

select {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  min-width: 220px;
}

.action-bar {
  text-align: center;
  margin: 2rem 0;
}

button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#compress-btn {
  background: #2563eb;
  color: white;
  border: none;
}

#compress-btn:hover {
  background: #1d4ed8;
}

#clear-btn {
  background: #6b7280;
  color: white;
  border: none;
  margin-left: 1rem;
}

#clear-btn:hover {
  background: #4b5563;
}

.result-message {
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
  min-height: 1.5rem;
}

#download-links a {
  display: block;
  margin: 0.75rem 0;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

#download-links a:hover {
  text-decoration: underline;
}

.ad-container {
  margin: 3rem auto;
  text-align: center;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-width: 728px;
}

.content-section {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.content-section h2 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.content-section h3 {
  color: #334155;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.content-section ul, .content-section ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #2563eb;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-container {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 2.2rem;
  }
}
