/* =====================================================
   GLOBAL RESET
   ===================================================== */

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

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-family-base);
    font-size: var(--font-base);
}



/* =====================================================
   🔧 UTILITIES
   ===================================================== */

.hidden {
    display: none !important;
}
/* =====================================================
   🔧 HIDDEN ATTRIBUTE
   ===================================================== */

[hidden] {
    display: none !important;
}

/* =====================================================
   🔒 MODAL BODY LOCK
   ===================================================== */

body.modal-open {
    overflow: hidden;
}

/* =====================================================
   CONTAINER PADRÃO
   ===================================================== */

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-4);
    padding-bottom: 80px;
}

/* =====================================================
   🔓 CONTAINER LIVRE (SEM PADDING)
   ===================================================== */

.app-container--no-padding {
    max-width: none;
    padding: 0;
    margin-bottom: 135px;
}


/* =====================================================
   CARD PADRÃO
   ===================================================== */

.card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

/* =====================================================
   BOTÃO PRIMÁRIO
   ===================================================== */

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-default);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}



/* =====================================================
   🚫 DISABLE TEXT SELECTION — APP FEEL
   Evita seleção acidental ao pressionar elementos
===================================================== */

body,
button,
a,
img,
span,
div,
section,
article,
header,
footer,
nav {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}



/* ===================================================== */
/* 🧼 REMOVE TAP HIGHLIGHT GLOBAL                         */
/* ===================================================== */

a,
button,
img,
input,
textarea,
select,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   ✅ ALLOW TEXT SELECTION IN FORM FIELDS
   Mantém inputs, textarea e campos editáveis funcionando
===================================================== */

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}


/* =====================================================
   🔢 GLOBAL — NUMBER INPUT CLEAN
===================================================== */

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
    appearance: none;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}




