/* ═══════════════════════════════════════════════════
   LomGroup App Switcher — Cross-app navigation widget
   Drop into any app's navbar. Works standalone (no framework deps).
   ═══════════════════════════════════════════════════ */

.lomgroup-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lomgroup-switcher-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: inherit;
}

.lomgroup-switcher-btn:hover {
    background: rgba(140, 198, 63, 0.1);
}

/* 3×3 grid icon */
.lomgroup-switcher-btn svg {
    width: 20px;
    height: 20px;
}

.lomgroup-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1d27;
    border: 1px solid #2a2e3a;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 9999;
    min-width: 280px;
}

.lomgroup-switcher-menu.open {
    display: block;
    animation: lom-fade-in 0.15s ease-out;
}

@keyframes lom-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lomgroup-switcher-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding: 0 4px;
}

.lomgroup-switcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lomgroup-switcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.lomgroup-switcher-item:hover {
    background: #232733;
    border-color: #2a2e3a;
}

.lomgroup-switcher-item .app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f1117;
}

.lomgroup-switcher-item .app-icon.lomcrea   { background: #f15a24; }
.lomgroup-switcher-item .app-icon.lombilling { background: #8cc63f; }
.lomgroup-switcher-item .app-icon.lominnov   { background: #7eb356; }
.lomgroup-switcher-item .app-icon.lominvests { background: #6082ef; }

.lomgroup-switcher-item .app-name {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8eaf0;
    text-align: center;
}

.lomgroup-switcher-item .app-desc {
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.65rem;
    color: #8b8fa3;
    text-align: center;
    line-height: 1.3;
}

/* Light theme variant */
@media (prefers-color-scheme: light) {
    .lomgroup-switcher-menu {
        background: #ffffff;
        border-color: #e5e7eb;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    }
    .lomgroup-switcher-item:hover {
        background: #f3f4f6;
        border-color: #e5e7eb;
    }
    .lomgroup-switcher-title { color: #6b7280; }
    .lomgroup-switcher-item .app-name { color: #111827; }
    .lomgroup-switcher-item .app-desc { color: #6b7280; }
}
