.app-launcher {
    align-items: center;
    display: flex;
    position: relative;
}

.app-launcher__trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .65rem;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: background-color .15s ease;
    width: 44px;
}

.app-launcher__trigger:hover,
.app-launcher__trigger[aria-expanded="true"] {
    background: #e8f3ff;
}

.app-launcher__dots {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(3, 4px);
}

.app-launcher__dots span {
    background: #3f4254;
    border-radius: 50%;
    height: 4px;
    width: 4px;
}

.app-launcher__panel {
    background: #fff;
    border: 1px solid #eff2f5;
    border-radius: .85rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .18);
    left: 0;
    padding: 18px;
    position: absolute;
    top: calc(100% + 8px);
    width: min(560px, calc(100vw - 24px));
    z-index: 1090;
}

.app-launcher__panel-title {
    color: #181c32;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-launcher__featured {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-launcher__shortcut {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .65rem;
    color: #3f4254;
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    gap: 8px;
    justify-content: flex-start;
    min-height: 94px;
    min-width: 0;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
}

.app-launcher__shortcut:hover {
    background: #f5f8fa;
    color: #009ef7;
}

.app-launcher__shortcut > span:last-child {
    display: -webkit-box;
    line-height: 1.25;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-launcher__shortcut--disabled {
    cursor: not-allowed;
    opacity: .55;
}

.app-launcher__logo,
.app-launcher__more-icon {
    align-items: center;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.app-launcher__logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.app-launcher__initials {
    align-items: center;
    background: linear-gradient(135deg, #009ef7, #7239ea);
    border-radius: .75rem;
    color: #fff;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.app-launcher__more-icon {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(2, 14px);
}

.app-launcher__more-icon span {
    border: 2px solid #7e8299;
    border-radius: 3px;
    height: 14px;
    width: 14px;
}

.app-launcher__empty-featured {
    color: #7e8299;
    font-size: .85rem;
    margin-top: 8px;
}

.app-catalog-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    min-height: min(760px, calc(100vh - 40px));
}

.app-catalog-modal {
    z-index: 2060;
}

.app-catalog-modal .modal-header {
    border-bottom-color: #eff2f5;
    padding: 22px 26px;
}

.app-catalog-modal .modal-body {
    padding: 22px 26px 28px;
}

.app-catalog__filters {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
    margin-bottom: 22px;
}

.app-catalog__search {
    position: relative;
}

.app-catalog__search .form-control {
    padding-left: 40px;
}

.app-catalog__search-icon {
    border: 2px solid #7e8299;
    border-radius: 50%;
    height: 14px;
    left: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 14px;
    z-index: 2;
}

.app-catalog__search-icon::after {
    background: #7e8299;
    content: "";
    height: 2px;
    position: absolute;
    right: -6px;
    top: 10px;
    transform: rotate(45deg);
    width: 7px;
}

.app-catalog__card {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: .85rem;
    color: #3f4254;
    display: flex;
    gap: 16px;
    height: 100%;
    min-height: 150px;
    padding: 18px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.app-catalog__card:hover {
    border-color: #b5dfff;
    box-shadow: 0 8px 24px rgba(0, 158, 247, .12);
    color: #3f4254;
    transform: translateY(-2px);
}

.app-catalog__card--disabled {
    cursor: not-allowed;
    opacity: .65;
}

.app-catalog__card--disabled:hover {
    border-color: #e4e6ef;
    box-shadow: none;
    transform: none;
}

.app-catalog__logo {
    align-items: center;
    background: #f5f8fa;
    border-radius: .85rem;
    display: flex;
    flex: 0 0 68px;
    height: 68px;
    justify-content: center;
    overflow: hidden;
}

.app-catalog__logo img {
    height: 56px;
    object-fit: contain;
    width: 56px;
}

.app-catalog__logo > span {
    align-items: center;
    background: linear-gradient(135deg, #009ef7, #7239ea);
    border-radius: .75rem;
    color: #fff;
    display: flex;
    font-size: 1.15rem;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.app-catalog__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.app-catalog__name {
    color: #181c32;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.app-catalog__alias {
    color: #009ef7;
    font-size: .82rem;
    font-weight: 600;
    margin: 3px 0 9px;
}

.app-catalog__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: 7px;
    justify-content: space-between;
}

.app-catalog__status {
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 8px;
}

.app-catalog__status--active { background: #d1fae5; color: #065f46; }
.app-catalog__status--maintenance { background: #fef3c7; color: #92400e; }
.app-catalog__status--archived { background: #e5e7eb; color: #374151; }
.app-catalog__status--development { background: #dbeafe; color: #1e40af; }
.app-catalog__status--deprecated { background: #fee2e2; color: #991b1b; }

.app-catalog__category {
    color: #7e8299;
    font-size: .72rem;
    margin-top: 7px;
}

.app-catalog__logo--disabled {
    filter: grayscale(1);
    opacity: .6;
}

.app-catalog__disabled-reason {
    align-items: center;
    background: #fff4f4;
    border: 1px solid #fde8e8;
    border-radius: 6px;
    color: #b71c1c;
    display: flex;
    font-size: .7rem;
    font-weight: 600;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 8px;
}

.app-catalog__disabled-icon {
    flex-shrink: 0;
    font-size: .75rem;
}


.app-catalog__empty {
    color: #3f4254;
    padding: 70px 20px;
    text-align: center;
}

.app-catalog__empty-icon {
    color: #a1a5b7;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
}

@media (max-width: 1199.98px) {
    .app-catalog__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-catalog__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .app-launcher__panel {
        left: -45px;
    }

    .app-launcher__featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-catalog__filters {
        grid-template-columns: 1fr;
    }

    .app-catalog__search {
        grid-column: auto;
    }

    .app-catalog-modal .modal-body,
    .app-catalog-modal .modal-header {
        padding-left: 16px;
        padding-right: 16px;
    }
}
