/**
 * LifeOS - Base mobile-first + otimização performance (Android/desktop).
 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Área de toque e resposta rápida */
button,
.card {
    touch-action: manipulation;
}

button {
    min-height: 44px;
    min-width: 44px;
}

/* GPU e containment para cards (menos repaint) */
.card {
    will-change: transform;
    transform: translateZ(0);
    contain: layout paint style;
}

/* Telas pequenas: sidebar oculta, app em coluna, cards mais compactos */
@media (max-width: 700px) {
    .sidebar {
        display: none !important;
    }
    .sidebar.active {
        display: block !important;
    }
    .app {
        flex-direction: column;
        width: 100%;
    }
    .cards-container,
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
}
