html,
body {
  height: 100%;
  margin: 0;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  background-image: url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.logo {
  position: absolute;
  top: 18px;
  left: 32px;
  height: 56px;
  width: auto;
  z-index: 2;
}
.contact {
  position: absolute;
  top: 18px;
  right: 32px;
  height: 56px;
  width: auto;
  z-index: 2;
}
.header-img {
  width: 100%;
  height: 500px;
  object-fit: fill;
  display: block;
  opacity: 1;
  filter: brightness(0.45);
}
.main-title {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 1;
  z-index: 1111;
}
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
}
.profile-section {
  text-align: center;
}
.profile-img {
  width: 220px;
  height: 250px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  margin-bottom: 8px;
}
.valid-license {
  display: inline-block;
  background: #b8f5bd;
  color: #2e7d32;
  border-radius: 12px;
  padding: 4px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 12px;
}
.expired-license {
  display: inline-block;
  background: #f8dfe2;
  color: #e73636;
  border-radius: 12px;
  padding: 4px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 12px;
}
.license-date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}
.profile-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 5px;
}
.details-section {
  background: #f4f1ec;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 30px 80px;
  min-width: 320px;
  max-width: 500px;
  margin-top: 50px;
  vertical-align: middle;
}
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.details-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  line-height: 25px;
}
.details-label {
  font-weight: 600;
  color: #222;
}
.details-value {
  color: #333;
  margin-left: 12px;
  text-align: right;
  direction: ltr;
}
.arabic {
  direction: rtl;
  font-family: "Segoe UI", Arial, sans-serif;
}
.done-btn {
  margin-top: 22px;
  background: #f77860;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 28px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: 0.2s;
}
.official-validated-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px auto 10px auto;
  max-width: 900px;
  color: #2e7d32;
  font-weight: 600;
  font-size: 1rem;
}
.validated-divider {
  flex: 1;
  height: 2px;
  background: #b8b8b8;
  border-radius: 2px;
  max-width: 120px;
}
.done-btn:hover {
  background: #a86a55;
}
.footer {
  background: #111;
  color: #fff;
  padding: 18px 5px 0px 0px;
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 1rem;
  z-index: 1111;
  flex-shrink: 0;
}
.sticker-left-top {
  position: absolute;
  top: -25px;
  left: -25px;
  width: 40px;
  height: 40px;
  z-index: 2;
  transform: rotate(270deg);
}
.sticker-right-bottom {
  position: absolute;
  bottom: -15px;
  right: -25px;
  width: 40px;
  height: 40px;
  z-index: 2;
  transform: rotate(90deg);
}
.invalid-qr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px auto 100px auto;
  max-width: 900px;
  flex-grow: 1; /* fill remaining vertical space */
  min-height: 0; /* reset min-height to avoid overflow */
}

.title {
  line-height: 40px;
  font-weight: 600;
  color: #e73636;
  font-size: 1.15em;
}
.invalid-qr .content {
  line-height: 40px;
  font-size: 0.9em;
}
.content {
  background-color: #fff;
  width: fit-content;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  margin: auto; /* This helps with horizontal centering if needed */
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .content {
    margin: 50px 0 auto;
  }
  .container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .details-section {
    min-width: 200px;
    max-width: 100%;
  }
  .header-img {
    height: 180px;
  }
  .logo {
    top: 10px;
    left: 15px;
    height: 30px;
  }
  .main-title {
    bottom: 20px;
    font-size: 1.5rem;
  }
  .details-section {
    padding: 15px 20px;
    min-width: 320px;
    margin-top: 20px;
  }
  .official-validated-text {
    gap: 10px;
  }
  .validated-divider {
    max-width: 30px;
  }
}
