/* 9jaOnCloud Universal App Switcher (Waffle Menu) Styling */
.nineja-waffle-container {
    position: relative;
    display: inline-block;
}

.nineja-waffle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nineja-waffle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.nineja-waffle-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    display: none;
    z-index: 10000;
    overflow: hidden;
    animation: waffleFadeIn 0.15s ease-out forwards;
}

@keyframes waffleFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nineja-waffle-dropdown.active {
    display: block;
}

.nineja-waffle-header {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nineja-waffle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px;
    background: #090d16;
}

.nineja-waffle-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nineja-waffle-app-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.nineja-waffle-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
}

.nineja-waffle-app-title {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.nineja-waffle-footer {
    padding: 10px 16px;
    background: #0d1321;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.nineja-waffle-footer a {
    font-size: 12px;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.nineja-waffle-footer a:hover {
    text-decoration: underline;
}
