
#home {
  font-size: .875rem;
  background-color:#282D32;
  color: #fff;
  display: flex;
  margin: 0;
  padding: 0;
}

.left-navbar {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-right: 1px solid #3E454A;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #282D32;
  z-index: 1000;
}

.nav-logo {
  width: 32px;
  height: 40px;
  margin-bottom: 12px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-icon:hover {
  background-color: #191D20;
}

.nav-icon img {
  width: 24px;
  height: 24px;
}

.navbar-avatar {
  margin-top: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.tooltip .tooltip-inner {
  background-color: #191D20;
}

/* Remove carat from left navbar tooltips */
.tooltip.bs-tooltip-end .tooltip-arrow,
.tooltip.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Set hero card tooltip carat color */
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
  border-bottom-color: #191D20 !important;
}

.nav-item-with-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  display: flex;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  border-radius: 12px;
  background: #191D20;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);
  min-width: 160px;
  border: 0;
  display: none;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  display: flex;
  padding: 4px 12px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  width: 100%;
  font-size: 0.875rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: #336FE4;
  color: #fff;
}

main {
  flex: 1;
  padding: 12px 24px;
  margin-left: 56px; /* Width of the left navbar (32px) + padding (12px * 2) */
}
#home .text-muted {
  color: #CCD0D7 !important;
}

.hero-container {
  border-radius: 16px;
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

#home h1 {
  font-size: calc(1.125rem + 1.5vw);
  margin-bottom: 24px;
}

#home h2 {
  font-size: calc(1rem + .9vw);
  margin-bottom: 8px;
}

.quick-links {
  margin-bottom: 48px;
}

.quick-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.quick-link-button {
  display: flex;
  padding: 12px 24px 12px 12px;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 2px solid #3E454A;
  background: #282D32;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link-button:hover {
  border-color: #336FE4;
  color: #fff;
  text-decoration: none;
}



.quick-link-button .icon-container {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 6px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: #191D20;
  transition: all 0.2s ease;
}

.quick-link-button i {
  color: #FFF;
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  transition: all 0.2s ease;
}

.quick-link-button:hover i {
  background: linear-gradient(126deg, #2BB86C -6.8%, #578FFF 48.76%, #9747FF 109.65%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.template-card {
  display: flex;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 16px;
  background: #191D20;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 300px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.card-icon {
  display: flex;
  padding: 9px 70px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 8px;
  min-height: 148px;
  background: #282D32;
}

.card-text {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 24px */

}

.main-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  
}

.header-dropdown {
  position: relative;
}

.dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #336FE4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.dropdown-button:hover {
  background-color: #2857b8;
}

.dropdown-button i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.header-dropdown .dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 200px;
}

.header-dropdown .dropdown-menu.active {
  display: flex;
}

.header-dropdown .dropdown-button:has(+ .dropdown-menu.active) i {
  transform: rotate(180deg);
}

/* Pre-built apps section */
.pre-built-apps {
  margin-bottom: 48px;
}

.app-card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
  width: 100%;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border-radius: 16px;
}

.app-card:hover .app-image-container {
  border: 2px solid #336FE4;
}

.app-image-container {
  height: 165px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.app-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.app-card:hover .app-image-container img {
  transform: scale(1.07);
}

.app-title {
  font-weight: bold;
  font-size: 18px;
  margin: 0;
}

.app-description {
  font-size: 14px;
  margin: 0;
}

.app-badge {
  display: flex;
  padding: 0px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: #191D20;
  font-size: 12px;
  width: fit-content;
  height: 24px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #282D32;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
  padding: 24px;
}

.modal-image-container {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #fff;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-description {
  color: #CCD0D7;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 16px;
}

.modal-button-primary {
  padding: 8px 24px;
  background-color: #336FE4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.modal-button-primary:hover {
  background-color: #2857b8;
}

.modal-button-secondary {
  padding: 8px 24px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.modal-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Make app cards clickable */
.app-card {
  cursor: pointer;
  transition: transform 0.2s;
}


/* Responsive layout for smaller screens */
@media (max-width: 1200px) {
  .app-card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .app-card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-container {
    width: 95%;
  }
}

@media (max-width: 576px) {
  .app-card-container {
    grid-template-columns: 1fr;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
}
