*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 22px;
    font-family: sans-serif;
}

/* Estilos Gerais */
:root {
  --primary-color: #243859;
  --secondary-color: #3a5a8a;
  --error-color: #e83333;
  --success-color: #4CAF50;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-color);
}

/* Box Login */
.box-login {
  max-width: 450px;
  width: 90%;
  padding: 40px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.box-login:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.box-login img {
  display: block;
  margin: 0 auto 30px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.box-login img:hover {
  transform: scale(1.05);
}

.box-login h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Campos do Formulário */
.box-login form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

.box-login input[type="text"],
.box-login input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-size: 16px;
  transition: var(--transition);
  box-sizing: border-box;
}

.box-login input[type="text"]:focus,
.box-login input[type="password"]:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 56, 89, 0.2);
}

/* Botão de Submit */
.box-login input[type="submit"] {
  width: 100%;
  height: 50px;
  margin-top: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.box-login input[type="submit"]:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.box-login input[type="submit"]:active {
  transform: translateY(0);
}

/* Checkbox Lembrar-me */
.remember-me {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.box-login input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.remember-me label {
  margin: 0;
  cursor: pointer;
}

/* Mensagens de Erro */
.erro-box {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  text-align: center;
  background-color: rgba(232, 51, 51, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

.erro-box i {
  margin-right: 10px;
  font-size: 20px;
}

/* Link Voltar */
.voltar {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.voltar:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Campo de Senha */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--primary-color);
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--secondary-color);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .box-login {
    padding: 30px 20px;
  }
  
  .box-login img {
    width: 100px;
    height: 100px;
  }
}

/* Adicione estas regras ao seu arquivo CSS existente */

/* Melhorias para mensagens de erro */
.erro-box {
    background-color: #fff5f5;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-in-out;
}

.erro-box i {
    margin-right: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

/* Efeito de shake mais suave */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Melhorias nos campos de formulário quando há erro */
.has-error input {
    border-color: #d32f2f !important;
    background-color: #fff5f5;
}

.has-error .toggle-password {
    color: #d32f2f;
}

/* Feedback visual para campos */
.input-feedback {
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    color: #d32f2f;
    display: none;
}

/* Efeito de foco mais suave */
.box-login input[type="text"]:focus,
.box-login input[type="password"]:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    transition: var(--transition);
}



/*Painel de Controle*/
/* GERAL E VARIÁVEIS ===================================== */
/* Estilos para a página de LOGIN (se necessário) */
/* GERAL E VARIÁVEIS ===================================== */
:root {
    --sidebar-bg: #1e293b;
    --sidebar-bg-hover: #334155;
    --main-bg: #f1f5f9;
    --text-light: #f8fafc;
    --text-dark: #334155;
    --text-muted: #94a3b8;
    --accent-color: #3b82f6;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
    --header-height: 60px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--main-bg);
    display: flex;
    transition: padding-left var(--transition-speed);
}

body:not(.sidebar-collapsed) {
    padding-left: var(--sidebar-width);
}

body.sidebar-collapsed {
    padding-left: var(--sidebar-width-collapsed);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

/* BARRA LATERAL (SIDEBAR) ================================ */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    overflow-x: hidden;
    transition: width var(--transition-speed);
    z-index: 1000;
}

body.sidebar-collapsed #sidebar {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

body.sidebar-collapsed .sidebar-header h2::before {
    content: 'PA'; /* Texto alternativo quando colapsado */
    font-size: 1.8rem;
}

body.sidebar-collapsed .sidebar-header h2 {
   font-size: 0; /* Esconde o texto original */
}

.sidebar-menu ul {
    padding-top: 20px;
}

.sidebar-menu .menu-header {
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-light);
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.sidebar-menu a:hover {
    background-color: var(--sidebar-bg-hover);
}

.sidebar-menu a.active {
    background-color: var(--accent-color);
    font-weight: 500;
    color: white;
}

.sidebar-menu a i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px; 
    text-align: center;
    transition: margin var(--transition-speed);
}

/* Efeitos da barra colapsada */
body.sidebar-collapsed .sidebar-menu .menu-header {
    display: none;
}
body.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
}
body.sidebar-collapsed .sidebar-menu a i {
    margin-right: 0;
}
body.sidebar-collapsed .sidebar-menu a span {
    display: none;
}

/* CONTEÚDO PRINCIPAL E CABEÇALHO ========================= */
#main-content {
    flex-grow: 1;
    width: 100%;
}

header {
    height: var(--header-height);
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.header-icon:hover {
    color: var(--accent-color);
}

/* Perfil do Usuário no Cabeçalho */
.user-profile {
    position: relative;
    cursor: pointer;
}

.avatar-img, .avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-icon {
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-profile:hover .user-dropdown {
    display: block;
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--main-bg);
}

.dropdown-item.logout-item {
    color: #ef4444; /* Vermelho para sair */
}

/* Área de Conteúdo */
.content-wrapper {
    padding: 25px;
}

/* RESPONSIVIDADE ===================================== */
@media (max-width: 768px) {
    body:not(.sidebar-collapsed) {
        padding-left: 0;
    }
    
    #sidebar {
        transform: translateX(-100%);
    }

    body:not(.sidebar-collapsed) #sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 15px var(--shadow-color);
    }
    
    header {
        padding: 0 15px;
    }

    .content-wrapper {
        padding: 15px;
    }
}
/*===================================================*/

/*Tabelas*/
/* ==================== TABELAS ==================== */
.wraper-table {
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    background: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.9rem;
}

table thead tr {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

table th {
    padding: 15px;
    position: sticky;
    top: 0;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

table tr:not(:first-child):hover td {
    background-color: #f9f9f9;
}

table tr:last-child td {
    border-bottom: none;
}

/* Ícones de ação */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.edit .action-icon {
    color: var(--primary-color);
    background-color: rgba(36, 56, 89, 0.1);
}

.delete .action-icon {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.1);
}

.order-up .action-icon,
.order-down .action-icon {
    background-color: rgba(0, 150, 136, 0.1);
}

.action-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ==================== PAGINAÇÃO ==================== */
.paginacao {
    margin: 25px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.paginacao a {
    font-size: 0.85rem;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.paginacao a:hover:not(.page-selected) {
    background-color: #f5f5f5;
}

.paginacao a.page-selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== BOX MÉTRICAS ==================== */
.box-metricas {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.box-metricas-single {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-metricas-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.box-metricas-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.box-metricas .box-metricas-single:nth-of-type(1) {
    background-color: var(--primary-color);
    color: white;
}

.box-metricas .box-metricas-single:nth-of-type(1)::before {
    background-color: #4CAF50;
}

.box-metricas .box-metricas-single:nth-of-type(2) {
    background-color: #3a5a8a;
    color: white;
}

.box-metricas .box-metricas-single:nth-of-type(2)::before {
    background-color: #FFC107;
}

.box-metricas .box-metricas-single:nth-of-type(3) {
    background-color: #243859;
    color: white;
}

.box-metricas .box-metricas-single:nth-of-type(3)::before {
    background-color: #E53935;
}

.box-metricas-single h2 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white !important;
}

.box-metricas-single p {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ==================== TABLE RESPONSIVE ==================== */
.table-responsive {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-responsive .row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.table-responsive .row:hover {
    background-color: #f9f9f9;
}

.table-responsive .row:nth-of-type(1) {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: none;
    border-bottom: none;
}

.table-responsive .col {
    flex: 1;
    padding: 0 10px;
}

/* ==================== MENU ITEMS ==================== */
.items-menu {
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.items-menu h2 {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    margin: 0;
    box-shadow: none;
}

.items-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.items-menu a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.menu-active {
    background-color: rgba(36, 56, 89, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: none;
}

.menu-active::before {
    content: '›';
    margin-right: 8px;
    font-weight: bold;
}

/* ==================== FORMULÁRIOS ==================== */
.box-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.box-content h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.box-content form {
    margin: 0;
}

.box-content .form-group {
    margin-bottom: 20px;
}

.box-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.box-content input[type="text"],
.box-content input[type="password"],
.box-content input[type="file"],
.box-content input[type="number"],
.box-content input[type="email"],
.box-content select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.box-content input[type="text"]:focus,
.box-content input[type="password"]:focus,
.box-content input[type="number"]:focus,
.box-content input[type="email"]:focus,
.box-content select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 56, 89, 0.1);
}

.box-content textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.box-content textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 56, 89, 0.1);
}

.box-content input[type="submit"] {
    width: auto;
    min-width: 150px;
    height: 45px;
    padding: 0 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.box-content input[type="submit"]:hover {
    background-color: #3a5a8a;
    transform: translateY(-2px);
}

/* ==================== ESTILIZAÇÃO DO INPUT FILE ==================== */
.file-input-container {
    position: relative;
    margin: 15px 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 45px;
    padding: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 56, 89, 0.1);
}

.file-input-label .file-input-text {
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.file-input-label .file-input-button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.file-input-label:hover .file-input-button {
    background-color: #3a5a8a;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Preview da imagem selecionada */
.file-preview-container {
    margin-top: 15px;
    display: none;
}

.file-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    object-fit: cover;
}

.file-preview-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

.file-remove {
    display: inline-block;
    margin-left: 10px;
    color: #e53935;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Estado quando um arquivo está selecionado */
.file-input-container.has-file .file-input-label {
    border-color: var(--primary-color);
    background-color: rgba(36, 56, 89, 0.05);
}

.file-input-container.has-file .file-input-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Efeito de foco para acessibilidade */
.file-input:focus + .file-input-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==================== MENSAGENS DE ALERTA ==================== */
.box-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.box-alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sucesso {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.erro {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* ==================== RESPONSIVIDADE ==================== */
@media screen and (max-width: 768px) {
    .box-metricas-single {
        min-width: 100%;
    }
    
    .table-responsive .row {
        flex-direction: column;
    }
    
    .table-responsive .col {
        padding: 8px 0;
    }
    
    .box-content {
        padding: 15px;
    }
    
    .box-content input[type="submit"] {
        width: 100%;
    }
}

/* ==================== MENU MOBILE ==================== */
@media screen and (max-width: 768px) {
    /* Ajuste para o menu lateral no mobile */
    #sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001; /* Garante que fique acima de tudo */
    }
    
    body:not(.sidebar-collapsed) #sidebar {
        transform: translateX(0);
        box-shadow: none;
    }
    
    /* Ajuste do conteúdo principal */
    #main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Header fixo no mobile */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: white;
    }
    
    /* Espaço para o header fixo */
    .content-wrapper {
        padding-top: 70px;
    }


    
    /* Overlay quando o menu está aberto */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    body:not(.sidebar-collapsed) .sidebar-overlay {
        display: block;
    }
    
    /* Ajuste dos itens do menu */
    .sidebar-menu a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-menu a i {
        font-size: 1.3rem;
        margin-right: 0;
    }
    
    body:not(.sidebar-collapsed) .sidebar-menu a span {
        display: inline;
        margin-left: 15px;
    }
    
    /* Menu ativo no mobile */
    .menu-active {
        background-color: rgba(255, 255, 255, 0.1);
        position: relative;
    }
    
    .menu-active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: var(--accent-color);
    }
    
    /* Botão de toggle do menu */
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: white;
    }
    
    /* Ajuste das métricas */
    .box-metricas {
        flex-direction: column;
        gap: 15px;
    }
    
    .box-metricas-single {
        width: 100%;
    }

}

/* Orçamentos*/
.filtros {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.form-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-filtros .form-group {
    margin-bottom: 0;
}

.form-filtros label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-filtros input[type="date"] {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.metricas {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.metrica-box {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.metrica-box h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.metrica-box p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .metricas {
        flex-direction: column;
    }
    
    .form-filtros {
        flex-direction: column;
        align-items: stretch;
    }
}