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

body {
  background-image: url('/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f5f5f5;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 500px;
  width: 100%;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #222;
}

.card {
  background: white;
  padding: 30px;
  border: 1px solid #e0e0e0;
}

.drop-zone {
  border: 2px dashed #ccc;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fafafa;
}

.drop-zone:hover {
  border-color: #888;
}

.drop-zone.dragover {
  border-color: #555;
  background: #f0f0f0;
}

.drop-zone h3 {
  font-weight: 500;
  margin-bottom: 8px;
}

.browse-btn {
  color: #0066cc;
  text-decoration: underline;
}

.preview {
  margin: 20px 0;
  text-align: center;
}

.preview img {
  max-width: 100%;
  max-height: 250px;
  border: 1px solid #ddd;
}

.file-name {
  margin-top: 10px;
  color: #666;
  font-size: 0.85rem;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 20px;
  text-align: center;
}

.btn-primary {
  background: #0066cc;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #0052a3;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
  margin-top: 10px;
}

.result-container {
  margin: 20px 0;
  text-align: center;
}

.result-container img {
  max-width: 100%;
  border: 1px solid #ddd;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  margin-top: 15px;
  border-left: 3px solid #dc3545;
}

.hidden {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  border-top-color: #666;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.footer-container {
  position: static; 
  transform: none;
  
  width: 100%;
  text-align: center;
  margin-top: 40px; 
  padding-bottom: 10px;
}

.footer-text {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #000;
  font-weight: 600; 
  text-shadow: 
    0 0 1px #fff,
    0 0 1px #fff,
    0 0 1px #fff;
}

.social-footer {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.social-btn:hover {
  opacity: 0.8;
}

.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: #e4405f; }
.social-btn.buymeacoffee { background: #b19a01; }