/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

/* Impede dark mode automático */
:root {
    color-scheme: light;
}

/* ===== BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== MODAL BACKGROUND ===== */
.modal-body {
    background: #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Remove visual padrão do Bootstrap */
.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-dialog {
    max-width: 380px;
    margin: auto;
}

/* ===== APP CONTAINER ===== */
.app {
    width: 360px;
    min-height: 640px;
    background-color: #2f3e4e;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    color: #f1c40f;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 14px;
    text-align: left;
}

/* ===== INPUT PADRÃO ===== */
.input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #2f3e4e;
    -webkit-text-fill-color: #2f3e4e;
    -webkit-appearance: none;
    appearance: none;
}

/* Remove seta padrão feia do select em alguns navegadores */
select.input {
    background-image: none;
}

/* ===== CAMPO NOME COM BORDA ===== */
.nome-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2px;
    border: 2px solid #e74c3c;
    margin-bottom: 12px;
}

.nome-box .input {
    background-color: #ffffff;
    border-radius: 8px;
}

/* ===== GROUPS ===== */
.group {
    margin-bottom: 12px;
}

.row-custom {
    display: flex;
    gap: 10px;
}

.row-custom .input {
    flex: 1;
}

/* ===== QUANTIDADES ===== */
.qty-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.qty-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    padding-left: 2px;
}

/* Caixa */
.qty-box {
    height: 44px;
    background-color: #ffffff;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    padding: 0 10px;
}

/* Força cor do texto no mobile */
.qty-box,
.qty-box * {
    color: #2f3e4e !important;
    -webkit-text-fill-color: #2f3e4e !important;
}

/* Botões */
.qty-box button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background-color: #e6e6e6;
    font-size: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.qty-box button:active {
    transform: scale(0.95);
}

.qty-box span {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* ===== MENSAGENS ===== */
.msg {
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.msg.sucesso {
    background: #27ae60;
    color: #ffffff;
}

.msg.erro {
    background: #e74c3c;
    color: #ffffff;
}

/* ===== BOTÃO ===== */
.btn-app {
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #2ecc71;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn-app:active {
    transform: scale(0.98);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 420px) {
    .app {
        width: 95%;
        min-height: auto;
    }
}