/* Arquivo: /portal/build/css/custom-redesigned.css */

:root {
  /* Esquema de cores atual */
  --primary-color: #973231; /* Vermelho vinho institucional */
  --secondary-color: #4b4b4d; /* Cinza escuro institucional */
  --light-gray: #f9f9f9;
  --medium-gray: #a3a2a2;
  --border-color: #d8d8d8;
  --success-color: #28a745;

  /* Novas vari�veis de design */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;

  /* Tipografia */
  --font-family: 'Roboto', Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;

  /* Espa�amento */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Estilos base */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: #f5f5f5;
}

/* Cabe�alhos */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing);
  font-weight: 500;
  line-height: 1.2;
  color: var(--secondary-color);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #802a29; /* Vers�o mais escura do primary-color */
  text-decoration: underline;
}

/* Cards e Pain�is */
.card, .x_panel {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.card:hover, .x_panel:hover {
  box-shadow: var(--box-shadow-hover);
}

.card-header, .x_title {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing);
}

.card-body, .x_content {
  padding: var(--spacing-lg);
}

/* Bot�es */
.btn {
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  padding: var(--spacing-sm) var(--spacing);
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #802a29; /* Vers�o mais escura do primary-color */
  border-color: #802a29;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #3a3a3c;
  border-color: #3a3a3c;
  transform: translateY(-2px);
}
/* Adicionar à folha de estilos principal */

/* Melhorias gerais de responsividade */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Ajustes para conteúdo principal */
.right_col {
  padding: var(--spacing);
}

/* Breakpoints para dispositivos móveis */
@media (max-width: 991px) {
  .right_col {
    padding: var(--spacing-sm);
    margin-left: 0 !important;
  }

  /* Ajuste quando o menu está fechado */
  body.nav-sm .right_col {
    margin-left: 70px !important;
  }

  .col-md-3.left_col {
    width: 230px;
    padding: 0;
  }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 480px) {
  .x_title h2 {
    font-size: 18px;
  }

  .x_panel {
    padding: 5px !important;
  }

  .x_content {
    padding: 10px 5px !important;
  }

  table.dataTable thead th {
    padding: 8px 5px;
    font-size: 12px;
  }

  table.dataTable tbody td {
    padding: 8px 5px;
    font-size: 12px;
  }
}

/* Melhorar estilos de alto contraste */
body.high-contrast {
  background-color: #000;
  color: #fff;
}

body.high-contrast .left_col,
body.high-contrast .nav_title,
body.high-contrast .x_panel,
body.high-contrast .card,
body.high-contrast .card-body,
body.high-contrast .navbar,
body.high-contrast .site-footer,
body.high-contrast .footer-bottom,
body.high-contrast .table tbody tr {
  background-color: #000 !important;
  color: #fff !important;
}

body.high-contrast a,
body.high-contrast .menu-text,
body.high-contrast .table td,
body.high-contrast .table th,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p {
  color: #fff !important;
}

body.high-contrast a:hover {
  color: #ffff00 !important;
}

body.high-contrast .btn-primary,
body.high-contrast .btn-secondary,
body.high-contrast .card-icon,
body.high-contrast table.dataTable thead th {
  background-color: #333 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .border,
body.high-contrast .border-top,
body.high-contrast .border-bottom,
body.high-contrast .border-left,
body.high-contrast .border-right {
  border-color: #fff !important;
}

/* Links destacados para acessibilidade */
body.highlight-links a {
  text-decoration: underline !important;
  font-weight: bold !important;
  color: var(--primary-color) !important;
}

body.highlight-links a:focus {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Cursor ampliado */
body.large-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='white' stroke='black' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='2' fill='black'/%3E%3C/svg%3E"), auto !important;
}

body.large-cursor a,
body.large-cursor button,
body.large-cursor input,
body.large-cursor select,
body.large-cursor textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='white' stroke='black' stroke-width='2'/%3E%3Cpath d='M16 8 L16 24 M8 16 L24 16' stroke='black' stroke-width='2'/%3E%3C/svg%3E"), pointer !important;
}

/* Foco acessível para elementos interativos */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* Adicionar à folha de estilos principal */

/* Animações para melhorar a experiência do usuário */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Aplicação de animações */
.x_panel {
  animation: fadeIn 0.5s ease-out;
}

.dashboard-card {
  animation: slideInUp 0.5s ease-out;
}

.btn-primary:hover {
  animation: pulse 1s infinite;
}

/* Transições para página inteira */
.page-transition {
  transition: opacity 0.3s ease;
  min-height: 100vh;
}

.page-loading {
  opacity: 0.6;
}

/* Efeitos de hover para itens interativos */
.nav-item, .table tbody tr, .btn, .card, .unit-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

