html, body {
    margin: 0;
    padding: 0;
    background-color: #fbfbfb !important;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: 100%;
}

:root {
    --bs-font-sans-serif: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

body, table, th, td {
    font-family: var(--bs-body-font-family) !important;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout principal para páginas administrativas */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Layout específico para login */
.login-container {
    height: 100vh;
    background: linear-gradient(135deg, #523082 0%, #6a4c96 100%);
    background-color: #523082;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card-wrapper {
    width: 480px;
}

.login-page .form-control {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.login-page .form-label {
    margin-bottom: 4px;
    display: block;
}

.login-page .mb-3 {
    margin-bottom: 16px;
}

.login-page .error-message {
    color: red;
    font-size: 0.875em;
}

/* Estilos para páginas administrativas */
.pagina {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100%;
    max-width: 1250px;
    padding: 22px 20px 40px;
    flex: 1;
    min-height: 0;
}

.e-card {
    box-shadow: 0px 8px 8px rgba(0,0,0,0.12);
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.e-card:hover,
.e-card:focus,
.e-card.e-hover,
.e-card:active {
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0px 8px 8px rgba(0,0,0,0.12);
}

.e-card .e-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.e-card .e-card-header {
    display: flex;
    justify-content: flex-start;
}

.e-card .e-card-content, .e-card-content {
    padding: 0px !important;
}

.e-grid {
    border-color: #dee2e6;
    border-bottom: 0px;
    min-height: 400px;
}

/* Estilos dos componentes */
.areaTexto {
    background-color: white;
    display: flex;
    margin: 35px;
    width: 100%;
    max-width: 1250px;
}

.texto1 {
    font-weight: 300;
    font-size: 28px;
    color: #494b57;
}

.texto2 {
    font-weight: 700;
    font-size: 28px;
    color: #494b57;
}

.e-avatar.custom {
    background-color: lightseagreen;
}

.main-menu {
    z-index: 9998;
    border: 1px solid;
    border-color: #ededed;
}

.e-sidebar.e-right {
    top: 53px;
    height: auto;
}

.e-sidebar.e-right.e-close, .e-sidebar.e-left.e-close {
    box-shadow: none;
    display: none;
}

.e-treeview .e-list-icon, .e-treeview .e-list-img {
    height: 30px;
}

/* Rodapé corrigido */
.footer-sticky {
    background-color: #523082;
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    color: #495057;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.card {
    border-radius: 8px;
}

.card-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.text-muted {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.campo-desabilitado {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}
