/* Estilos para o container principal do CRUD */ .crud-wrapper { display: flex; gap: 30px; align-items: flex-start; margin-top: 20px; } .crud-header h1 { font-weight: 600; color: #333; } .crud-header p { color: #666; font-size: 1rem; } /* Estilos do Formulário */ .form-container { background-color: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); flex: 1; min-width: 300px; } .form-container h2 { margin-bottom: 20px; font-weight: 500; font-size: 1.2rem; color: #007bff; border-bottom: 1px solid #dee2e6; padding-bottom: 10px; } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; } .input-group input, .input-group select { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-family: 'Poppins', sans-serif; font-size: 0.95rem; transition: all 0.2s ease-in-out; } .input-group input:focus, .input-group select:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); } .button-group { display: flex; gap: 10px; margin-top: 20px; } .button-group button { padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 500; transition: all 0.2s; flex: 1; } .btn-primary { background-color: #007bff; color: white; } .btn-primary:hover { background-color: #0056b3; transform: translateY(-2px); } .btn-secondary { background-color: #6c757d; color: white; } .btn-secondary:hover { background-color: #5a6268; } /* Estilos da Tabela */ .table-container { background-color: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); flex: 2; } .table-container h2 { margin-bottom: 20px; font-weight: 500; } .table-wrapper { overflow-x: auto; /* Garante que a tabela seja rolável em telas pequenas */ } table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #dee2e6; vertical-align: middle; } thead th { background-color: #f8f9fa; font-weight: 600; } tbody tr:hover { background-color: #f1f3f5; } td .btn-action { padding: 6px 10px; font-size: 14px; margin-right: 5px; color: white; border: none; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; } td .btn-action:hover { opacity: 0.85; } .btn-edit { background-color: #28a745; } .btn-delete { background-color: #dc3545; color: #fff; } .btn-delete:hover { background-color: #c82333; } .btn-edit:hover { background-color: #218838; } /* Responsividade para o conteúdo do CRUD */ @media (max-width: 992px) { .crud-wrapper { flex-direction: column; } } /* força exibição do btn-primary caso haja override */ .btn-primary { display: inline-block !important; } /* espaçamento e alinhamento dos botões */ .button-group { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: 1rem; } body { background-color: #f8f9fa; } .crud-header { padding: 2rem 1rem; margin: 1rem; background: linear-gradient(135deg, #0d6efd, #6610f2); color: rgb(251, 250, 250); border-radius: 0.5rem; margin-bottom: 2rem; } .crud-header h1 { font-size: 2rem; color: white; } .crud-header p { font-size: 1.1rem; color: #e0e0e0; } .filtros { display: flex; align-items: center; justify-content: start; margin-bottom: 1rem; } .btn-add { margin-bottom: 1rem; } .table-container { overflow-x: auto; } table { min-width: 600px; } .main-button button { font-size: 17px; background: none; margin-right: 30px; margin-top: 10px; border: none; color: #243b51; padding: 20px 10px; border-bottom: 2px solid transparent; transition: 0.6s; } .main-button-border:hover { /*estilo no mouseenter*/ border: none; margin-right: 30px; margin-top: 10px; padding: 20px 10px; background: none; border-bottom: 2px solid blue; color: blue; } .btn-add { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; margin: 20px 0px; background-color: rgb(38, 137, 255); color: #fff; text-decoration: none; } .btn-add:hover { background-color: rgb(30, 110, 204); } .filter-select { padding: 8px; margin-left: 8px; border: 1px solid #ccc; border-radius: 5px; background-color: white; font-size: 14px; cursor: pointer; } .conteudo { margin-left: 30px; background-color: #fafafa; padding: 25px; border-radius: 7px; } /* Tabela */ #pacientes-tabela { margin-top: 1.5rem; width: 100%; border-collapse: collapse; border: 1px solid #ddd; background-color: white; font-size: 14px; border-radius: 8px; overflow: hidden; } #pacientes-tabela thead { background-color: #e9ecef; } #pacientes-tabela thead th { padding: 12px; border-bottom: 1px solid #ccc; text-align: left; font-weight: bold; } #pacientes-tabela tbody td { padding: 10px; border-bottom: 1px solid #eee; } #pacientes-tabela tbody tr:hover { background-color: #f1f1f1; } #pacientes-tabela tbody td button { padding: 6px 10px; font-size: 14px; background-color: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; } #pacientes-tabela tbody td button:hover { background-color: #5a6268; } /* Media queries melhoradas para responsividade */ @media (max-width: 768px) { /* Melhor organização do conteúdo principal em mobile */ .section-main-text { padding: 20px; padding-bottom: 0px; margin-top: 10rem; } .section-main-text h1 { font-size: 28px; margin-bottom: 10px; } .section-main-text p { font-size: 16px; } .main-button { display: flex; flex-wrap: wrap; gap: 10px; } .main-button button { margin-right: 0; margin-top: 5px; padding: 15px 8px; font-size: 15px; } .conteudo { margin: 20px; padding: 20px; } /* Formulário responsivo */ #formLaudo { flex-direction: column; gap: 15px; } #formLaudo fieldset { width: 100%; } #formLaudo button[type="submit"] { width: 100%; padding: 12px; font-size: 16px; } /* Tabela responsiva com scroll horizontal */ .table-container { overflow-x: auto; margin-top: 20px; } #pacientes-tabela { min-width: 600px; font-size: 12px; } #pacientes-tabela thead th, #pacientes-tabela tbody td { padding: 8px; white-space: nowrap; } } /* Media query para tablets */ @media (max-width: 1024px) and (min-width: 769px) { .section-main-text h1 { font-size: 32px; } .conteudo { margin: 25px; } } /* Media query melhorada para telas muito pequenas */ @media (max-width: 480px) { .section-main-text { padding: 15px; } .section-main-text h1 { font-size: 24px; } .section-main-text p { font-size: 14px; } .conteudo { margin: 15px; padding: 15px; } #pacientes-tabela { font-size: 11px; } #pacientes-tabela thead th, #pacientes-tabela tbody td { padding: 6px; } }