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

html, body {
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.codaqr-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.codaqr-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  height: 100%;
}

.codaqr-logo {
  max-width: 280px;
  max-height: 200px;
  margin-bottom: 50px;
  object-fit: contain;
}

.codaqr-langs {
  list-style: none;
  padding: 0;
  text-align: center;
}

.codaqr-lang-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
  color: #555;
  gap: 12px;
  transition: font-size 0.5s ease, color 0.5s ease, font-weight 0.5s ease;
  flex-wrap: wrap;
}

.codaqr-lang-item.active {
  font-size: 34px;
  color: #111;
  font-weight: 700;
}

.codaqr-lang-item img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.codaqr-lang-item span {
  text-align: center;
}

.codaqr-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.codaqr-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qrcode {
  display: block;
}

.codaqr-scan-label {
  margin-top: 24px;
  font-size: 20px;
  color: #555;
  text-align: center;
}

.codaqr-divider {
  width: 1px;
  height: 60%;
  background: #ddd;
  flex-shrink: 0;
}

/* Modal selezione lingue */
#modalLingue {
  z-index: 99999;
}

.modal-backdrop {
  z-index: 99998 !important;
}

.lang-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 10px 0;
}

.lang-pick-item {
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.lang-pick-item:hover {
  border-color: #999;
}

.lang-pick-item.selected {
  border-color: #0d6efd;
  background: #e8f0fe;
}

.lang-pick-item img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
}

.lang-pick-item span {
  font-size: 15px;
  font-weight: 500;
}
