/* Importação de uma fonte mais agradável */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

/* Container Principal */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Estilo dos Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.card h2 {
    color: #3498db;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* --- NOVAS REGRAS PARA RESPONSIVIDADE --- */
.form-row {
    display: flex;
    gap: 20px; /* Espaço entre os campos */
}

.form-row .form-group {
    flex: 1; /* Faz com que os campos dividam o espaço igualmente */
}
/* --- FIM DAS NOVAS REGRAS --- */

/* Grupos de Formulário */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

/* Itens do Orçamento */
.item-orcamento {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.item-descricao { flex-grow: 1; }
.item-valor { width: 150px; }

/* Botões */
.btn-remover-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 30px;
    text-align: center;
}
.btn-remover-item:hover { background-color: #c0392b; }

.btn-secundario {
    background: none;
    border: 1px dashed #3498db;
    color: #3498db;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}
.btn-secundario:hover { background-color: #ecf5fb; }

/* Seção de Total */
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1em;
}
.total-row:not(:last-child) { border-bottom: 1px solid #f0f0f0; }
.total-row label { margin: 0; }
.total-row input { width: 120px; text-align: right; padding: 8px; }
.grand-total { font-weight: 700; font-size: 1.4em; color: #2c3e50; }

/* Rodapé e Botão Principal */
footer {
    text-align: center;
    margin-top: 20px;
}
.btn-principal {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-principal:hover { background-color: #27ae60; }

/* --- REGRAS DE RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Coloca os campos um embaixo do outro */
        gap: 0; /* Remove o espaço entre eles */
    }

    .item-orcamento {
        flex-wrap: wrap;
    }

    .item-valor {
        width: 100%;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
}
header {
    text-align: center;
    margin-bottom: 25px;
}
header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Estilo dos Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}
.card h2 {
    color: #3498db;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Layout Flexível para campos lado a lado */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}

/* Estilos Gerais para Campos de Formulário */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}
.form-group input,
.form-group textarea,
.form-group select { /* Adicionamos 'select' aqui */
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { /* Adicionamos 'select' aqui */
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

/* --- ESTILOS DO MENU DESPLEGABLE PERSONALIZADO --- */
.select-wrapper {
    position: relative; /* Necessário para posicionar a seta */
}
.select-wrapper::after {
    content: '▼'; /* Símbolo da seta */
    font-size: 1rem;
    color: #3498db;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Permite clicar no select através da seta */
}
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px; /* Espaço para a seta personalizada */
}

/* Itens do Orçamento */
.item-orcamento {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.item-descricao { flex-grow: 1; }
.item-valor { width: 150px; }
.btn-remover-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 30px;
    text-align: center;
}

/* Seção de Total */
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.grand-total { font-weight: 700; font-size: 1.4em; color: #2c3e50; }

/* Botões */
footer {
    text-align: center;
    margin-top: 20px;
}
.btn-principal {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
}

/* --- REGRAS DE RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 768px) {
    .form-row, .item-orcamento {
        flex-direction: column; /* Coloca os campos um embaixo do outro */
        gap: 0;
    }
    .item-orcamento .form-group {
        margin-bottom: 10px;
    }
    .item-valor {
        width: 100%;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
}
header {
    text-align: center;
    margin-bottom: 25px;
}
h1 { color: #2c3e50; margin-bottom: 5px; }

/* Estilo dos Cards */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}
h2 {
    color: #3498db;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Layout Flexível */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group { flex: 1; }

/* Campos de Formulário */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

/* Estilos do Menu Desplegable Personalizado */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '▼';
    font-size: 1rem;
    color: #3498db;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

/* --- ESTILOS CORRIGIDOS PARA OS ITENS --- */
.item-orcamento {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.item-descricao { flex-grow: 1; } /* Faz o campo de descrição ocupar o espaço restante */
.item-valor { width: 150px; } /* Define uma largura fixa para o campo de valor */
.btn-remover-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 30px;
    text-align: center;
}

/* Seção de Total */
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.grand-total { font-weight: 700; font-size: 1.4em; color: #2c3e50; }

/* Botões */
footer { text-align: center; margin-top: 20px; }
.btn-principal {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    .form-row, .item-orcamento {
        flex-direction: column;
        gap: 0;
    }
    .item-orcamento .form-group { margin-bottom: 10px; }
    .item-valor { width: 100%; }
}