/* Frontend styles for shortcodes and widgets */
.jatt-shortener-widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  max-width: 500px;
  margin: 20px auto;
}

.jatt-shortener-widget h3 {
  margin: 0 0 20px 0;
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.jatt-widget-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jatt-widget-input {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.jatt-widget-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.jatt-widget-button {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jatt-widget-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.jatt-widget-result {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  display: none;
}

.jatt-widget-result.success {
  background: #f0fdf4;
  border-color: #10b981;
}

.jatt-widget-result.error {
  background: #fef2f2;
  border-color: #ef4444;
}

.jatt-result-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.jatt-result-url input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: monospace;
  background: white;
}

.jatt-copy-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.jatt-copy-btn:hover {
  background: #059669;
}

@media (max-width: 480px) {
  .jatt-shortener-widget {
    margin: 20px 10px;
    padding: 20px;
  }

  .jatt-result-url {
    flex-direction: column;
    align-items: stretch;
  }

  .jatt-copy-btn {
    margin-top: 8px;
  }
}
