/* Hikari App Launcher Component */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.ecosistema-link {
  color: #06B6D4 !important;
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 8px 15px !important;
  border-radius: 50px !important;
  background: rgba(6, 182, 212, 0.05);
  cursor: pointer;
  max-width: none !important;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.ecosistema-link:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.app-launcher-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 50%;
  transform: translateX(50%) translateY(10px);
  width: 320px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.app-launcher-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.launcher-header {
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.launcher-header h4 {
  color: #94A3B8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.launcher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.launcher-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
  max-width: none !important;
  width: 100% !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
}

.launcher-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(5px) !important;
}

.launcher-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.launcher-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.launcher-text span {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.launcher-text small {
  font-size: 0.75rem;
  color: #64748B;
}

/* App specific colors */
.launcher-item.gym .launcher-icon { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.launcher-item.animal .launcher-icon { background: rgba(248, 177, 51, 0.1); color: #F8B133; }
.launcher-item.bill .launcher-icon { background: rgba(34, 197, 94, 0.1); color: #22C55E; }
.launcher-item.wellness .launcher-icon { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.launcher-item.taller .launcher-icon { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

.launcher-item.gym:hover { border-color: rgba(6, 182, 212, 0.3) !important; }
.launcher-item.animal:hover { border-color: rgba(248, 177, 51, 0.3) !important; }
.launcher-item.bill:hover { border-color: rgba(34, 197, 94, 0.3) !important; }
.launcher-item.wellness:hover { border-color: rgba(99, 102, 241, 0.3) !important; }
.launcher-item.taller:hover { border-color: rgba(245, 158, 11, 0.3) !important; }

.launcher-close-btn {
  display: none;
}

@media (max-width: 992px) {
  .app-launcher-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    transform: translateY(100%) !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 2rem) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 999999 !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .app-launcher-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .launcher-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .launcher-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94A3B8;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .launcher-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    transform: rotate(90deg);
  }
}
