html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.installWrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: white;
}

.installContainer {
  padding: 48px 64px;
  font-family: Inter, Arial, sans-serif;
  color: #111;
  position: absolute;
  top: 50%;
  width: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pageHeader {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pageHeader h1 {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.pageDivider {
  margin: 32px 0;
  height: 1px;
  background: #e5e5e5;
}

.contentLayout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
}

.description {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

.description a {
  color: #007bff;
  text-decoration: none;
}

.description a:hover {
  text-decoration: underline;
}

.infoNote {
  margin-top: 20px;
  padding-left: 10px;
  font-size: 14px;
  color: #8b8b8b;
  border-left: 3px solid #7c7c7c;
}

.cardsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

.cardsColumn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.solutionCard {
  display: grid;
  grid-template-columns: 60px 1fr max-content; /* keeps button size intact */
  align-items: center;
  gap: 16px;

  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;

  max-width: 100%;
  min-width: 0;
}

.solutionCard:hover {
  border-color: #ccc;
  background: #fafafa;
}

.osLogoContainer {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  overflow: hidden;
  flex-shrink: 0;
}

.osLogo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.05));
}

.solutionCardText {
  min-width: 0;
}

.solutionCardText h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  display: block;
  line-height: 1.25;
}

.fileTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background-color: #000;
  color: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.downloadArrow {
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 1px solid #000;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  justify-self: end; /* keeps it inside card */
  flex-shrink: 0;
}

.downloadArrow:hover {
  background: #000;
  color: #fff;
}

.solutionCard.disabled {
  opacity: 0.6;
  filter: grayscale(0.8);
  cursor: not-allowed;
  border-style: dashed;
  background: #fcfcfc;
}

.solutionCard.disabled:hover {
  background: #fcfcfc;
  border-color: #e6e6e6;
}

.solutionCard.disabled .downloadArrow {
  border-color: #ccc;
  color: #ccc;
}

.solutionCard.disabled .downloadArrow:hover {
  background: none;
  color: #ccc;
}

.statusText {
  display: block;
  font-size: 11px;
  color: #ff4b4b;
  margin-top: 4px;
  font-weight: 500;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease forwards;
  max-width: 320px;
}

.toast.error {
  background-color: #ff4b4b;
  color: #fff;
}

.toast.success {
  background-color: #56d6ac;
  color: #111;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 1199px) {
  .installContainer {
    padding: 40px 32px;
    width: 90%;
  }

  .contentLayout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cardsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .installContainer {
    position: static;
    transform: none;
    width: 100%;
    padding: 24px 16px;
  }

  .pageHeader h1 {
    font-size: 22px;
  }

  .cardsGrid {
    grid-template-columns: 1fr;
  }

  .solutionCard {
    grid-template-columns: 48px 1fr max-content; /* button keeps real size */
    gap: 12px;
  }

  .osLogoContainer {
    width: 48px;
    height: 48px;
  }
}

#toast,
.toast {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}
