.app-section {
    flex-direction: column;
    width: 100%;
    padding: 8px;
}

.app-section > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.app-section > div:first-child > div {
    display: flex;
    gap: 6px;
}

#appList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
}

.app-card {
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-2px);
    background: rgba(40, 40, 45, 0.7);
    border-color: rgba(255, 140, 0, 0.3);
}

.app-card:hover::before {
    opacity: 1;
}

.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: pointer;
}

.app-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.app-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #ffffff);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-card-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.app-card:hover .app-card-actions {
    opacity: 1;
}

.app-card-actions button {
    padding: 2px 6px;
    font-size: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.app-card-actions button:hover {
    background: rgba(255, 140, 0, 0.6);
}

.app-empty {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

@media (max-width: 480px) {
    #appList {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .app-icon-wrap {
        width: 40px;
        height: 40px;
    }
    
    .app-icon {
        width: 28px;
        height: 28px;
    }
    
    .app-name {
        font-size: 12px;
    }
    
    .app-desc {
        font-size: 10px;
    }
}