body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

h1, h3 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 20px;
  width: 100%;
}

.input-group {
  flex: 1;
  margin-bottom: 15px;
  min-width: 300px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-weight: bold;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="file"], select, input[type="color"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

.preview {
  flex: 1;
  min-width: 300px;
}

.card {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s;
  margin: 0 auto;
}

.card:hover {
  transform: scale(1.05);
}

.card.vertical {
  height: 500px;
}

.card.horizontal {
  width: 500px;
  height: 300px;
  display: flex;
}

.card.blue { background-color: #2563eb; color: white; }
.card.black { background-color: #1f2937; color: white; }
.card.gold { background-color: #d4af37; color: #1f2937; }
.card.white { background-color: #fff; color: #1f2937; }
.card.gradient { background: linear-gradient(135deg, #2563eb, #10b981); color: white; }

.card-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.card-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.card-body {
  padding: 10px;
  text-align: center;
}

.card-body h2 {
  font-size: 1.5em;
  margin: 5px 0;
}

.card-body h3 {
  font-size: 1.2em;
  margin: 5px 0;
  color: inherit;
}

.card-body p {
  font-size: 0.9em;
  margin: 5px 0;
}

.contact-info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.contact-info .icon {
  font-size: 1.2em;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.card-footer {
  padding: 10px;
  text-align: center;
}

#previewQRCode {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
}

button {
  flex: 1;
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #1e40af;
}

.error {
  color: #dc2626;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

.notification {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.notification.success {
  background-color: #d1fae5;
  color: #065f46;
}

.back-button {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
  width: 100%;
}

.back-button:hover {
  color: #1e40af;
}

.footer-note {
  text-align: center;
  margin-top: 20px;
  color: #4b5563;
  font-size: 0.9em;
  width: 100%;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #2563eb;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #2563eb;
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}