/*
* Software Name : abcdesktop.io
* Version: 0.2
* SPDX-FileCopyrightText: Copyright (c) 2020-2021 Orange
* SPDX-License-Identifier: GPL-2.0-only
*
* This software is distributed under the GNU General Public License v2.0 only
* see the "license.txt" file for more details.
*
* Author: abcdesktop.io team
* Software description: cloud native desktop service
*/
/*Supporting colours*/
/* Font sizes */
/* Spacing */
/* Border radii */
/* Icon / button sizes */
/* Opacities */
/* Breakpoints */
/* Mixin : désactiver la sélection */
/* Mixin : autoriser la sélection */
/* Mixin : bouton circulaire "glass" (ex: #settings-back-button) */
#appstore-window p,
#appstore-window span,
#appstore-window td {
  user-select: text !important;
  -moz-user-select: text !important;
}
#appstore-window {
  overflow-y: hidden;
  overflow-x: hidden;
  height: 100%;
}
div.appstore-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  width: 100%;
}
div.appstore-title h5#appstore-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#appstore-window div.tab {
  overflow-y: auto;
  overflow-x: hidden;
}
#appstore-window .tab {
  height: 100%;
}
.modal-open .modal {
  overflow-y: hidden !important;
}
div.appstore-window .modal-body {
  padding: 0 !important;
}
/* Let the glass card fill the full-size dialog (see base.less window-dialog) */
div.appstore-window .modal-dialog .modal-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
div.appstore-window div.content-apps {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
/* ============================================================
   Sidebar navigation
   ============================================================ */
div.appstore-window div.content-apps #nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 96px;
  gap: 4px;
  padding: 15px 5px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
}
div.appstore-window div.content-apps #nav .button {
  display: flex;
  width: 100%;
  height: auto;
  float: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  opacity: 0.75;
  transition: background 0.15s ease, opacity 0.15s ease;
}
div.appstore-window div.content-apps #nav .button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
div.appstore-window div.content-apps #nav .button:hover > img {
  width: 30px;
  margin-left: 8px;
  margin-top: 10px;
}
div.appstore-window div.content-apps #nav div.button div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  pointer-events: none;
}
div.appstore-window div.content-apps #nav .button.active {
  opacity: 1;
  background: rgba(255, 121, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(101, 174, 205, 0.4);
}
div.appstore-window div.content-apps #nav .button span.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease;
}
div.appstore-window div.content-apps #nav .button:hover span.nav-icon {
  transform: scale(1.08);
}
div.appstore-window div.content-apps #nav div.button img {
  height: 22px;
  width: 22px;
  pointer-events: none;
}
div.appstore-window div.content-apps #nav div.button p {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
/* Soft per-category icon tint, kept subtle behind the glass style */
div.appstore-window div.content-apps #nav #office span.nav-icon {
  background: rgba(168, 133, 216, 0.26);
}
div.appstore-window div.content-apps #nav #games span.nav-icon {
  background: rgba(205, 60, 20, 0.26);
}
div.appstore-window div.content-apps #nav #graphics span.nav-icon {
  background: rgba(255, 180, 230, 0.26);
}
div.appstore-window div.content-apps #nav #utilities span.nav-icon {
  background: rgba(101, 174, 205, 0.26);
}
div.appstore-window div.content-apps #nav #development span.nav-icon {
  background: rgba(50, 200, 50, 0.26);
}
div.appstore-window div.content-apps #nav #education span.nav-icon {
  background: rgba(168, 133, 216, 0.26);
}
/* ============================================================
   Main panel: search toolbar + application grid
   ============================================================ */
div.appstore-window div.content-apps div.appstore-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
div.appstore-window div.content-apps div.appstore-toolbar {
  flex: 0 0 auto;
  padding: 15px 20px 10px;
}
div.appstore-window div.content-apps div.appstore-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
div.appstore-window div.content-apps div.appstore-search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(101, 174, 205, 0.55);
}
div.appstore-window div.content-apps svg.appstore-search-icon {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
}
div.appstore-window div.content-apps #appstore-search-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 15px;
}
div.appstore-window div.content-apps #appstore-search-placeholder::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
div.appstore-window div.content-apps ul#appstore-applist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 20px;
  margin: 0;
  flex: 1 1 auto;
}
.appstore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
p.tooltipTitle {
  font-size: x-small;
}
.tooltipTitle {
  color: #65AECD;
  font-size: x-small;
}
.tooltip-inner {
  white-space: nowrap;
  max-width: none;
  min-width: 0;
  font-size: x-small;
}
div.appstore-window div.content-apps ul#appstore-applist li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
div.appstore-window div.content-apps ul#appstore-applist li div.d-flex {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer !important;
  transition: background 0.15s ease;
}
div.appstore-window div.content-apps ul#appstore-applist li:hover div.d-flex {
  background: rgba(255, 255, 255, 0.1);
}
div.appstore-window div.content-apps ul#appstore-applist li p {
  vertical-align: middle;
  text-align: center;
  pointer-events: none;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
div.appstore-window div.content-apps ul#appstore-applist li div img {
  height: 34px;
  width: 34px;
  pointer-events: none;
}
div.appstore-window div.content-apps ul#appstore-applist li div.container-app-loader {
  height: 0;
  width: 0;
  padding: 0;
}
div.appstore-window div.content-apps ul#appstore-applist li div img.appLoader {
  position: relative;
  top: -44px;
  right: 0;
}
/* Lock badge overlaid on the bottom-right corner of the app icon */
div.appstore-window div.content-apps ul#appstore-applist li img.app-lock-icon {
  position: absolute;
  top: 52px;
  left: 50%;
  bottom: unset;
  transform: translate(14px, -8px);
  width: 16px !important;
  height: 16px !important;
  padding: 2px;
  border-radius: 50%;
  background: #1E1E1E;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}
