/* ==========================================================================
   BASE.CSS - Resets, Tipografia, Cursores e Utilitários Globais
   ========================================================================== */

/* Desativa a seleção de texto em toda a interface */
* {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */
}

/* Permite seleção apenas em campos de digitação */
input, textarea, [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
}

body.show-homepage {
    background: transparent;
}

/* Indicadores de cursor reutilizáveis */
button, .mode-btn, .category-title, .delete-btn {
    cursor: pointer;
}

/* Estrutura do Modal de Erros Críticos */
#errorModal {
    pointer-events: auto !important;
}

#errorModal button {
    cursor: pointer !important;
}

/* Melhora a legibilidade da mensagem dentro do modal expandido */
#errorMessage {
    text-align: center !important;
    line-height: 1.5;
    font-size: 13px !important;
    white-space: pre-wrap; /* Mantém quebras de linha amigáveis */
}