body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  background: #111827;
  color: #ffffff;
  margin: 0;
}

.container h1 {
  color: #ff0000;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 30px; 
  margin: 0 0 0px 0;
  position: relative;
  top: -50px; 
}

#logo {
  width: 60px;
  height: 60px;
  margin: 0px;
}


/* Top Right Buttons */
.top-right-buttons {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 15px 0 20px;
}


.icon-btn {
  background: transparent;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: 36px;
  height: 36px;
  border: none;
}

.icon-btn svg {
  border-radius: 5px;
  pointer-events: none;
}

.icon-btn:hover {
  background-color: #ffffff26;
}


/* App Cards */
#app-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); 
  gap: 16px;
  width: 100%;
  max-width: calc(4 * 280px + 3 * 16px + 2 * 16px);
  margin: 0 auto;
  padding: 0px;
}

.app-card {
  display: flex;
  align-items: center;
  background: #29314e;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px #0000001a;
}

.app-icon {
  width: 70px;
  height: 70px;
  border-radius: 17px;
  object-fit: cover;
  margin-right: 25px;
}

.app-info {
  flex-grow: 1;
}

.app-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.info-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dot {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.info-button {
  margin-left: auto;
  background-color: #405076;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.info-button:hover {
  background-color: #4d5e8c;
}

.info-button svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.dot.version::before { background-color: #ff0000; }
.dot.date::before { background-color: #ea00ff; }
.dot.description::before { background-color: #0000ff; }


/* DropDown Button ("Add This Repo") */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 10px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#top-buttons {
  margin-bottom: 30px;
}

.btn {
  padding: 12px 16px;
  cursor: pointer;
  background-color: transparent;
  color: #ffffff;
  border-radius:5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.3s ease, border 0.3s ease;
  justify-content: center;
  font-size: 16px;
  width: 750px;
  max-width: 100%;
  outline: none;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.btn:focus {
  outline: none;
}

.btn:active {
  outline: none;
}

.btn.add-esign {
  border: 2px solid #5999ff;
  color: #5999ff;
  background-color: transparent;
  border-radius: 10px; 
}

.btn.add-esign:hover {
  background-color: #0671a3;
}

.btn.add-scarlet {
  border: 2px solid #ff0000;
  color: #ff0000;
  background-color: transparent;
  border-radius: 10px;
}

.btn.add-scarlet:hover {
  background-color: #ff00005d; 
}

#toggle-add-repo {
  background-color: #ff0000;
  border: none;
  border-radius: 10px;
  margin-top: -20px;
}

#add-buttons {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  transform: translateY(-8px);
  transition: 
    max-height 0.9s ease,
    opacity 0.9s ease,
    transform 0.9s ease,
    margin-top 0.9s ease; 
  margin-top: 0; 
}

#add-buttons.show {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 10px;
}

.btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  border-radius: 5px;
}

.btn.add-json-url {
  border: 2px solid #b700ff; 
  color: #b700ff; 
  background-color: transparent;
  border-radius: 10px;
  justify-content: center;
  gap: 8px;
}

.btn.add-json-url:hover {
  background-color: #5d307a8c;
}

.btn.add-json-url img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  border-radius: 5px;
}



/* App Info */
.hidden {
  display: none !important;
}

#modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #00000099;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
}

#modal {
  background: #29314e;
  border-radius: 10px;
  width: 320px;
  max-width: 90%;
  max-height: 80vh;
  padding: 20px;
  position: relative;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 0 15px #000000cc;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #ff0000;
  cursor: pointer;
  line-height: 1;
  width: 30px;
  height: 30px;
}

#modal-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80px;
  height: 80px;
  border-radius: 15px;
  margin-bottom: 12px;
}

#modal-content h2 {
  margin: 0 0 8px 0;
}

#modal-content p {
  margin: 4px 0;
  font-size: 14px;
}

.modal-app-name {
  text-align: center;
}


/* Install With Buttons */
.install-toggle {
  font-size: 15px;
  font-weight: bold;
  margin-top: 16px;
  background-color: #405076;
  border: none;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  user-select: none;
}

.install-toggle:hover {
  background-color: #4d5e8c;
}

.install-options {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  transform: translateY(-15px);
  transition:
    max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-options.show {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 10px;
}

.install-option {
  background-color: #405076;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.install-download {
  color: #00cc00;
  border: 2px solid #00cc00;
  background-color: transparent;
  border-radius: 8px;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.install-download:hover {
  background-color: #00cc0033;
}

.install-option img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  margin: 0 !important;
  object-fit: cover !important;
  display: block !important;
}

.install-option svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #ffffff;
  position: static;
  display: block;
}

.install-copy-url {
  color: #b700ff;
  border: 2px solid #b700ff;
  background-color: transparent;
  border-radius: 8px;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.install-copy-url:hover {
  background-color: #5d307a8c;
}

.install-scarlet {
  color: #FF0000;
  border: 2px solid #FF0000;
  background-color: transparent;
  border-radius: 8px;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.install-scarlet:hover {
  background-color: #ff00005d;
}

.install-trollstore {
  color: #0044FF;
  border: 2px solid #0044FF;
  background-color: transparent;
  border-radius: 8px;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.install-trollstore:hover {
  background-color: #0044ff5e;
}

.appstore-button {
  margin: 15px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #000000;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  cursor: pointer;
  text-align: center;
}

.appstore-button .apple-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.appstore-button .text-container {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.appstore-button .text-container .small-text {
  font-size: 10px;
}

.appstore-button .text-container .big-text {
  font-size: 16px;
  font-weight: bold;
}
