@import url(customElements.css);

body {
     font-family: Arial, sans-serif;
     background-color: #f4f4f4;
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     margin: 0;
}
 .container {
     background-color: #fff;
     padding: 30px;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     width: 100%;
     max-width: 600px;
     box-sizing: border-box;
}
 h1, h3 {
     text-align: center;
     color: #333;
}
 .form-group {
     margin-bottom: 15px;
}
 .form-group label {
     display: block;
     margin-bottom: 5px;
     font-weight: bold;
     color: #555;
}
 .form-group input[type="text"], .form-group input[type="number"], .form-group select {
     width: 100%;
     padding: 10px;
     border: 1px solid #ddd;
     border-radius: 4px;
     box-sizing: border-box;
     font-size: 16px;
}
 .servico {
     border: 1px solid #eee;
     padding: 15px;
     margin-bottom: 10px;
     border-radius: 6px;
     background-color: #fafafa;
}
 #adicionarServico, #gerarPDF  {
     display: block;
     width: 100%;
     padding: 12px;
     border: none;
     border-radius: 4px;
     background-color: #004aad;
     color: #fff;
     font-size: 16px;
     font-weight: bold;
     cursor: pointer;
     margin-top: 20px;
     margin-bottom: 20px;
     transition: background-color 0.3s ease;
}
 #adicionarServico:hover, #gerarPDF:hover {
     background-color: #0056b3;
}
 #parcelamentoInfo {
     margin-top: 15px;
     padding: 15px;
     background-color: #f0f8ff;
     border: 1px solid #cceeff;
     border-radius: 6px;
}
 .hidden {
     display: none;
}
/* --- Estilos para o input de arquivo customizado --- */
 .input-hidden {
    /* Esconde o input original de forma que ele ainda seja funcional */
     display: none;
}
 .custom-file-label {
     display: flex !important;
     flex-direction: column;
     align-items: start;
     justify-content: start;
     gap: .5rem;
     padding: 8px 12px;
     border: 1px solid #ccc;
     border-radius: 4px;
     cursor: pointer;
     background-color: #f0f0f0;
     transition: background-color 0.2s;
     width: 100%;
     box-sizing: border-box;
}
 .custom-file-label:hover {
     background-color: #e0e0e0;
}
 .custom-file-button {
     background-color: #004aad;
     color: white;
     padding: 6px 12px;
     border-radius: 4px;
     font-weight: 500;
}
 .custom-file-name {
     /*margin-left: 10px;*/
     color: #666;
     font-style: italic;
    /* Garante que o nome do arquivo longo seja truncado */
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
}

@media (min-width: 1200px){
     .custom-file-label{
        flex-direction: row;
        align-items: baseline;
     }
}
