/* Variáveis de cores para o dark mode */
:root {
    --dm-title-color: #ffffff;
    --dm-primary-blue: #0283be;
    --dm-secondary-blue: #0ea5e9;
    --dm-primary-purple: #4f46e5;
    --dm-dark-purple: #3a3a5a;
    --dm-dark-gray: #484848;
    --dm-white: #ffffff;
    --dm-light-gray: #e0e0e0;
    --dm-border-gray: #dddddd;
    --dm-border-subtle: #3a3a5a;
    --dm-shadow-black: rgba(0, 0, 0, 0.1);
    --dm-background: #1a1a2e;
    --dm-box-color: #1e1e2e;
    --dm-error-color: #dc3545;
    --dm-rosa: #ff4081;
    --dm-green: #00bf63;
    --dm-row-bg: #2d2d44;
    --dm-empty-bg: #2f2f45;
    --dm-muted-text: #b3b3c6;
    --dm-input-bg: #1e1e2e;
    --dm-panel-soft-bg: #2d2d44;
    --dm-chart-1: #F9BB4A;
    --dm-chart-2: #ED5821;
    --dm-chart-3: #69CAB5;
}

.text-error-dark-mode {
    color: var(--dm-error-color);
}

.form-input-error-dark-mode {
    border: 2px solid var(--dm-error-color);
    background-color: var(--dm-input-bg);
    color: var(--dm-light-gray);
    border-radius: 4px;
    padding: 8px;
    width: 100%;
}

/* Shared layout for login buttons */
.login-btn-layout-dark-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin: 0 auto 16px auto;
}

.microsoft-button-dark-mode {
    background-color: var(--dm-primary-blue);
    color: var(--dm-white);
}

.text-title-dark-mode {
    color: var(--dm-title-color);
}

.navbar-dark-mode {
    background-color: var(--dm-primary-blue);
}

.ok-button-1-dark-mode {
    color: var(--wm-white);
    background-color: var(--dm-secondary-blue);
}

.text-go-back-dark-mode {
    background-color: transparent;
    color: var(--dm-white);
}

.navbar-link-dark-mode {
    color: var(--dm-white);
}

.nav-button-dark-mode {
    color: var(--dm-white);
}

.dropdown-item-dark-mode {
    background-color: var(--dm-primary-blue);
    color: var(--dm-white);
    border-bottom: 3px solid var(--dm-secondary-blue);
}

.dark-mode-icon-dark-mode {
    color: var(--dm-white);
}

.toggle-track-dark-mode {
    background-color: var(--dm-primary-purple);
}

.toggle-thumb-dark-mode {
    background-color: var(--dm-light-gray);
}

.file-input-button-dark-mode {
    background-color: var(--dm-dark-purple);
    color: var(--dm-light-gray);
    box-shadow: inset 0 1px 3px var(--dm-shadow-black);
    border: 1px solid var(--dm-border-gray);
}

.text-secondary-dark-mode {
    color: var(--dm-light-gray);
}

.ok-button-2-dark-mode {
    background-color: var(--wm-green);
    color: var(--wm-white);
}

.cancel-button-dark-mode {
    background-color: var(--dm-dark-purple);
    color: var(--dm-light-gray);
}

.cancel-button-2-dark-mode {
    background-color: var(--dm-error-color) !important;
    color: var(--dm-light-gray) !important;
}

.card-background-dark-mode {
    background-color: var(--dm-box-color);
    box-shadow: 0 4px 6px var(--dm-shadow-black);
    border: 1px solid var(--dm-border-subtle);
}

.card-background-bordered-dark-mode {
    background-color: var(--dm-box-color);
    box-shadow: 0 4px 6px var(--dm-shadow-black);
    border: 1px solid var(--dm-border-subtle);
}

.page-background-dark-mode {
    background-color: var(--dm-background);
    color: var(--dm-light-gray);
}

.table-header-cell-dark-mode {
    background-color: var(--dm-primary-blue);
    color: var(--dm-white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-header-dark-mode {
    background-color: #444;
    color: var(--dm-white);
}

.link-primary-dark-mode {
    color: var(--dm-secondary-blue);
}

.text-primary-dark-mode {
    color: var(--dm-secondary-blue);
}

.panel-soft-dark-mode {
    background-color: var(--dm-panel-soft-bg);
    color: var(--dm-light-gray);
    border: 1px solid var(--dm-border-subtle);
}

.muted-fill-dark-mode {
    background-color: var(--dm-muted-text);
}

.accent-soft-dark-mode {
    background-color: #2d5a4a;
    color: var(--dm-light-gray);
}

.table-cell-dark-mode {
    background-color: var(--dm-box-color);
    border-bottom: 1px solid var(--dm-border-gray);
    color: var(--dm-light-gray);
}

.edit-user-container-dark-mode {
    background-color: var(--dm-box-color);
    box-shadow: 0 4px 6px var(--dm-shadow-black);
}

.form-input-dark-mode {
    border: 1px solid var(--dm-border-gray);
    background-color: var(--dm-input-bg);
    color: var(--dm-light-gray);
}

.form-input-dark-mode::placeholder {
    color: var(--dm-light-gray);
}

.button-add-dark-mode {
    background: var(--wm-light-gray);
    color: var(--wm-dark-gray);
    box-shadow: inset 0 1px 3px var(--dm-shadow-black);
    border: 1px solid var(--dm-border-gray);
}

.table-cell-details-dark-mode {
    background-color: var(--dm-box-color);
    border-bottom: 1px solid var(--dm-border-gray);
    color: var(--dm-primary-blue);
}

.divider-dark-mode {
    background-color: var(--dm-border-gray);
}

.list-row-dark-mode {
    background-color: var(--dm-row-bg);
    border-bottom: 1px solid var(--dm-border-subtle);
}

.empty-state-dark-mode {
    background-color: var(--dm-empty-bg);
    color: var(--dm-muted-text);
}

.section-divider-dark-mode {
    border-top: 1px solid var(--dm-border-subtle);
}

.success-message-dark-mode {
    background-color: var(--dm-green);
    color: var(--dm-white);
    border: none;
}

.preview-background-dark-mode {
    background-color: #2d2d44;
    border: 1px solid #3a3a5a;
}

.terminal-window-dark-mode {
    background: #0b0b0b;
    color: #e6e6e6;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 70vh;
    min-height: 400px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-nav-border-dark-mode {
    border-bottom: 3px solid #53CEFB;
}

.item-container-solid-dark-mode {
    /* border: 1px solid #5a5a7a; */
    color: var(--dm-white);
    background-color: rgba(42, 42, 62, 0.5);
}

.button-add-dashed-dark-mode {
    border: 2px dashed #5a5a7a;
    color: var(--dm-white);
    background-color: rgba(42, 42, 62, 0.5);
}

.mapper-toggle-active-dark-mode {
    border: 1px solid var(--dm-primary-blue);
    background-color: var(--dm-primary-blue);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.25);
}

.mapper-toggle-inactive-dark-mode {
    border: 1px solid #3a3a5a;
    background-color: #1e1e2e;
    color: #e0e0e0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.badge-background-dark-mode {
    background-color: var(--dm-rosa);
    color: var(--dm-white);
}

.dashboard-header-dark-mode {
    background-color: var(--dm-primary-blue);
    color: var(--dm-white);
    padding: 24px 32px;
    margin-bottom: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20, 170, 226, 0.3);
    display: flex;
    align-items: center;
}

.login-background-dark-mode {
    background-color: #3c3c3c;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 5%, #00bcd4 5%, #00bcd4 6%, transparent 6%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 85%, #ff5722 85%, #ff5722 86%, transparent 86%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 15%, #2196f3 15%, #2196f3 16%, transparent 16%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 70%, #4caf50 70%, #4caf50 71%, transparent 71%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 10%, #00bcd4 10%, #00bcd4 11%, transparent 11%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 80%, #ff5722 80%, #ff5722 81%, transparent 81%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 30%, #2196f3 30%, #2196f3 31%, transparent 31%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 60%, #4caf50 60%, #4caf50 61%, transparent 61%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.login-background-dark-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/static?path=/assets/background.jpeg&unix-cache=1765259085");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.login-background-dark-mode>* {
    position: relative;
    z-index: 1;
}

.dashboard-logo-circle-dark-mode {
    background-color: #ffffff;
    color: var(--dm-primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-item-card-dark-mode {
    background-color: #2a2a3e;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    margin-bottom: 8px;
}


.text-success-dark-mode {
    color: var(--dm-green);
}

.border-left-detail-dark-mode {
    border-left: 2px solid var(--dm-light-gray);
}

/* Pagination Styles */
.pagination-footer-dark-mode {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.pagination-button-dark-mode {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination-info-dark-mode {
    font-weight: bold;
    color: var(--dm-light-gray);
    font-size: 16px;
}

.button-secondary-dark-mode {
    background-color: var(--dm-dark-purple);
    color: var(--dm-light-gray);
    border: 1px solid var(--dm-border-gray);
}

.button-secondary-dark-mode:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.search-subtopic-dark-mode {
    border-left: 2px solid var(--dm-border-gray);
    padding-left: 12px;
    margin-left: 12px;
}


/* Pagination Styles */
.pagination-footer-dark-mode {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.pagination-button-dark-mode {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination-info-dark-mode {
    font-weight: bold;
    color: var(--dm-light-gray);
    font-size: 16px;
}

.button-secondary-dark-mode {
    background-color: var(--dm-dark-purple);
    color: var(--dm-light-gray);
    border: 1px solid var(--dm-border-gray);
}

.button-secondary-dark-mode:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.search-subtopic-dark-mode {
    border-left: 2px solid var(--dm-border-gray);
    padding-left: 12px;
    margin-left: 12px;
}


/* === Dashboard Styles (Dark Mode) === */

/* Stat Card Styles */
.stat-card-dark-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-card-dark-mode:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.legend-color-box-dark-mode {
    border-radius: 3px;
}



.bar-item-dark-mode:hover {
    background-color: rgba(255, 255, 255, 0.03);
}


.bar-track-dark-mode {
    background-color: rgba(255, 255, 255, 0.08);
}



.bar-fill-dark-mode:hover {
    opacity: 0.85;
}


.section-card-dark-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-card-dark-mode:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}




/* dashboard-header-title removed */

.dashboard-total-badge-dark-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}





/* Main Wrapper */
.dashboard-wrapper-dark-mode {
    padding: 32px 24px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Error State */
.dashboard-error-container-dark-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 32px;
    text-align: center;
}

.dashboard-error-icon-dark-mode {
    font-size: 60px;
    margin-bottom: 16px;
    font-weight: bold;
}

.dashboard-error-title-dark-mode {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dashboard-error-message-dark-mode {
    font-size: 14px;
}

/* Loading State */
.dashboard-loading-container-dark-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 32px;
    text-align: center;
}

.dashboard-loading-spinner-dark-mode {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.dashboard-loading-text-dark-mode {
    font-size: 16px;
}
:root {
  --text-secondary: #484848;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

body {
  margin: 0;
}

.custom-navbar {
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.custom-navbar a {
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  margin-right: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.custom-navbar a:last-child {
  margin-right: 0;
}

.custom-navbar a:hover {
  color: #e0e0e0;
}

.table-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.10);
  padding: 0 0 24px 0;
  width: 900px;
}

.table-container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.10);
  padding: 0 0 24px 0;
  width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.table-container .bottom-left,
.table-container .bottom-right {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
}

.delete-button {
  background-color: #ED5821;
  color: white;
  height: 60px;
  display: block;
  width: 140px;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
  margin: 20px auto 0 auto;
}

.confirm-button {
  background-color: #69CAB5;
  color: black;
  height: 60px;
  display: block;
  width: 140px;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
  margin: 20px auto 0 auto;
}

.table-container .bottom-left {
  bottom: -8px;
  left: -8px;
  border-bottom: 8px solid #4FC3F7;
  border-left: 8px solid #4FC3F7;
}

.table-container .bottom-right {
  bottom: -8px;
  right: -8px;
  border-bottom: 8px solid #FF4081;
  border-right: 8px solid #FF4081;
}


.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead tr th {
  background: #14AAE2;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 0 12px 0;
}

.table thead tr th:first-child {
  border-top-left-radius: 16px;
}

.table thead tr th:last-child {
  border-top-right-radius: 16px;
}

.table tbody tr td {
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

.table tbody tr td:last-child {
  color: #14AAE2;
  font-weight: bold;
  cursor: pointer;
}

/* Filtro lateral */
.filter-container {
  border-radius: 20px;
  padding: 24px 20px;
  margin: 0;
  background: #fff;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.15);
  width: 270px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.filter-container h3 {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: bold;
}

.filter-container label {
  font-weight: bold;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.filter-label-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.filter-label-wrapper label {
  margin: 0;
}

.filter-info-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8dce2;
  color: #1f2a3a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #c2c6cd;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.filter-info-circle:hover {
  background: #c7cbd3;
  color: #141c28;
}

.filter-info-circle:active {
  transform: scale(0.94);
  background: #b6bac2;
}

.filter-container input,
.filter-container select {
  margin-bottom: 8px;
  border-radius: 3px;
  border: 1px solid #383838;
  padding: 6px 8px;
  width: 100%;
}

.filter-container .filter-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.filter-container button {
  color: #000;
  background: #fff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 12px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  /* border: none; */
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: -8px;
  justify-content: end;
  align-self: end;
  margin-right: 3%;
}

.action-buttons button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

.action-buttons .remove {
  background: #ED5821;
  color: #fff;
}

.action-buttons .block {
  background: #F9BB4A;
  color: var(--text-secondary);
}

.action-buttons .form,
.action-buttons .doc {
  background: #ADEAE0;
  color: #fff;
}

.action-buttons .note {
  background: #ADEAE0;
  color: var(--text-secondary);
}

.dropdown-content-lua {
  display: none;
  position: absolute;
  background-color: #14AAE2 !important;
  min-width: 160px;
  margin-left: -65px;
  z-index: 1000;
  flex-direction: column;
}

.nav-item:hover .dropdown-content-lua {
  display: flex;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
}

.corner.top-left {
  top: 0;
  left: 0;
  border-top: 5px solid #EA5A20;
  border-left: 5px solid #EA5A20;
}

.corner.top-right {
  top: 0;
  right: 0;
  border-top: 5px solid #86C336;
  border-right: 5px solid #86C336;
}

.corner.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 5px solid #ADEAE0;
  border-left: 5px solid #ADEAE0;
}

.corner.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 5px solid #4ABFEA;
  border-right: 5px solid #4ABFEA;
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item button {
  background-color: transparent !important;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #14AAE2 !important;
  min-width: 160px;
  z-index: 1000;
  flex-direction: column;
}

.nav-item:hover .dropdown-content {
  display: flex;
}


/* Espaçamento entre linhas da tabela */
.process-table {
  width: 100%;
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 500;
  border-spacing: 0 12px;
  /* espaço vertical entre linhas */
}

/* Altura mínima das células */
.process-table td {
  padding: 8px 0;
  /* espaço dentro das células */
  line-height: 10px;
  /* aumenta o espaçamento entre as linhas */
}

/* Background da tela de login com linhas coloridas */
.login-background {
  background-color: #3c3c3c;
  background-image:
    /* Linhas horizontais */
    linear-gradient(90deg, transparent 0%, transparent 5%, #00bcd4 5%, #00bcd4 6%, transparent 6%, transparent 100%),
    linear-gradient(90deg, transparent 0%, transparent 85%, #ff5722 85%, #ff5722 86%, transparent 86%, transparent 100%),
    linear-gradient(90deg, transparent 0%, transparent 15%, #2196f3 15%, #2196f3 16%, transparent 16%, transparent 100%),
    linear-gradient(90deg, transparent 0%, transparent 70%, #4caf50 70%, #4caf50 71%, transparent 71%, transparent 100%),
    /* Linhas verticais */
    linear-gradient(0deg, transparent 0%, transparent 10%, #00bcd4 10%, #00bcd4 11%, transparent 11%, transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent 80%, #ff5722 80%, #ff5722 81%, transparent 81%, transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent 30%, #2196f3 30%, #2196f3 31%, transparent 31%, transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent 60%, #4caf50 60%, #4caf50 61%, transparent 61%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.login-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/static?path=/assets/background.jpeg&unix-cache=1765259085");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.login-background>* {
  position: relative;
  z-index: 1;
}

/* Dark Mode */
body.dark-mode {
  --text-secondary: #e0e0e0;
  background-color: #1a1a2e;
  color: #e0e0e0;
}

body.dark-mode .table-container {
  background: #252542;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.3);
}

body.dark-mode .table thead tr th {
  background: #0d7aa8;
}

body.dark-mode .table tbody tr td {
  border-bottom: 1px solid #3a3a5a;
  color: #e0e0e0;
}

body.dark-mode .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

body.dark-mode .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

body.dark-mode .filter-container {
  background: #252542;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-container h3,
body.dark-mode .filter-container label {
  color: #e0e0e0;
}

body.dark-mode .filter-label-wrapper label {
  color: #e0e0e0;
}

body.dark-mode .filter-container input,
body.dark-mode .filter-container select {
  background: #1a1a2e;
  border-color: #3a3a5a;
  color: #e0e0e0;
}

body.dark-mode .filter-container button {
  background: #252542;
  color: #e0e0e0;
  border-color: #e0e0e0;
}

body.dark-mode .filter-info-circle {
  background: #3a4a5c;
  border-color: #526173;
  color: #e6efff;
}

body.dark-mode .filter-info-circle:hover {
  background: #4a5e73;
  color: #f5fbff;
}

body.dark-mode .filter-info-circle:active {
  background: #2e3d4b;
}


/* Dark mode toggle switch */
.dark-mode-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}

body.dark-mode .dark-mode-switch {
  background: #3a3a5a;
}

.dark-mode-switch-toggle {
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  position: relative;
  transition: background 0.3s;
}

.dark-mode-switch-toggle.active {
  background: #4f46e5;
}

.dark-mode-switch-toggle::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}


.dark-mode-switch-toggle.active::after {
  transform: translateX(24px);
}

/* Stat Card */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 180px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Legend Item */
.legend-item,
.legend-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.legend-color-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-label {
  font-size: 14px;
  font-weight: 600;
}

.legend-value {
  font-size: 16px;
  font-weight: 700;
  margin-left: auto;
}

/* Pie Chart */
.pie-chart {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

/* Bar Chart */
.bar-item {
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: default;
}

.bar-label {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-track {
  flex: 1;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bar-value {
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  min-width: 35px;
  text-align: right;
}

/* Section Card */
.section-card {
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.section-card:hover {
  transform: translateY(-2px);
}

.section-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 0;
  padding-bottom: 12px;
}

.section-bars-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Dashboard Header */
.dashboard-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin-right: 12px;
}

.dashboard-header-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.dashboard-total-badge {
  margin-left: auto;
  padding: 12px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.dashboard-total-badge-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.9;
}

.dashboard-total-badge-value {
  font-size: 28px;
  font-weight: 700;
}

/* Resultado Análise Card */
.resultado-analise-card {
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.resultado-analise-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 0;
  padding-bottom: 12px;
}

.resultado-analise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.legend-container {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Grid Sections */
.dashboard-grid-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
}

/* Main Content */
.dashboard-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Main Wrapper */
.dashboard-wrapper {
  padding: 32px 24px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Error & Loading */
.dashboard-error-container,
.dashboard-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 32px;
  text-align: center;
}

.dashboard-error-icon {
  font-size: 60px;
  margin-bottom: 16px;
  font-weight: bold;
}

.dashboard-error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dashboard-error-message {
  font-size: 14px;
}

.dashboard-loading-spinner {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 48px;
  /* Offset to skip header */
}

::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}
/* Variáveis de cores para o white mode */
:root {
    --wm-title-color: #272727;
    --wm-rosa: #ff4081;
    --wm-error-color: #dc3545;
    --wm-primary-blue: #14AAE2;
    --wm-secondary-blue: #0284C7;
    --wm-white: #ffffff;
    --wm-box-color: #ffffff;
    --wm-light: #f0f0f0;
    --wm-light-gray: #f0f0f0;
    --wm-dark-gray: #484848;
    --wm-border-gray: #dddddd;
    --wm-border-subtle: #e0e0e0;
    --wm-row-bg: #f5f5f5;
    --wm-empty-bg: #f5f5f5;
    --wm-muted-text: #999999;
    --wm-input-bg: #ffffff;
    --wm-panel-soft-bg: #F4F0E8;
    --wm-white-transparent: rgba(255, 255, 255, 0.3);
    --wm-shadow-black: rgba(0, 0, 0, 0.1);
    --wm-background: #fafbfc;
    --wm-green: #00bf63;
    --wm-chart-1: #F9BB4A;
    --wm-chart-2: #ED5821;
    --wm-chart-3: #69CAB5;
}

.text-error-white-mode {
    color: var(--wm-error-color);
}

.form-input-error-white-mode {
    border: 2px solid var(--wm-error-color);
    background-color: var(--wm-input-bg);
    border-radius: 4px;
    padding: 8px;
    width: 100%;
}

/* Shared layout for login buttons */
.login-btn-layout-white-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin: 0 auto 16px auto;
}

.microsoft-button-white-mode {
    background-color: var(--wm-primary-blue);
    color: var(--wm-white);
}

.text-title-white-mode {
    color: var(--wm-title-color);
}

.divider-white-mode {
    background-color: var(--wm-light-gray);
}

.list-row-white-mode {
    background-color: var(--wm-row-bg);
    border-bottom: 1px solid var(--wm-border-subtle);
}

.empty-state-white-mode {
    background-color: var(--wm-empty-bg);
    color: var(--wm-muted-text);
}

.section-divider-white-mode {
    border-top: 1px solid var(--wm-border-subtle);
}

.navbar-white-mode {
    background-color: var(--wm-primary-blue);
}

.navbar-link-white-mode {
    color: var(--wm-white);
}

.ok-button-1-white-mode {
    color: var(--wm-white);
    background-color: var(--wm-secondary-blue);
}

.nav-button-white-mode {
    color: var(--wm-white);
}

.text-go-back-white-mode {
    background-color: transparent;
    color: var(--wm-primary-blue);
}

.text-secondary-white-mode {
    color: var(--wm-dark-gray);
}

.dropdown-item-white-mode {
    border-bottom: 3px solid var(--wm-primary-blue);
    color: var(--wm-white);
}

.dark-mode-icon-white-mode {
    color: var(--wm-white);
}

.toggle-track-white-mode {
    background-color: var(--wm-white-transparent);
}

.toggle-thumb-white-mode {
    background-color: var(--wm-white);
}

.button-add-white-mode {
    background: var(--wm-light-gray);
    color: var(--wm-dark-gray);
    box-shadow: inset 0 1px 3px var(--wm-shadow-black);
    border: 1px solid var(--wm-border-gray);
}

.success-message-white-mode {
    background-color: var(--wm-green);
    color: var(--wm-white);
    border: none;
}

.preview-background-white-mode {
    background-color: #E0E0E0;
    border: 1px solid #dddddd;
}

.text-secondary-white-mode {
    color: var(--wm-dark-gray);
}

.ok-button-2-white-mode {
    color: var(--wm-white);
    background-color: var(--wm-green);
}

.cancel-button-white-mode {
    background-color: var(--wm-dark-gray);
    color: var(--wm-light-gray);
}

.cancel-button-2-white-mode {
    background-color: var(--wm-error-color) !important;
    color: var(--wm-light-gray) !important;
}

.card-background-white-mode {
    background-color: var(--wm-white);
    box-shadow: 0 4px 6px var(--wm-shadow-black);
}

.card-background-bordered-white-mode {
    background-color: var(--wm-white);
    box-shadow: 0 4px 6px var(--wm-shadow-black);
    border: 1px solid var(--wm-border-subtle);
}

.card-background-bordered-white-mode {
    background-color: var(--wm-white);
    box-shadow: 0 4px 6px var(--wm-shadow-black);
    border: 1px solid var(--wm-border-subtle);
}

.page-background-white-mode {
    background-color: var(--wm-background);
    color: var(--wm-dark-gray);
}

.table-header-cell-white-mode {
    background-color: var(--wm-primary-blue);
    color: var(--wm-white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-header-white-mode {
    background-color: var(--wm-primary-blue);
    color: var(--wm-white);
}

.link-primary-white-mode {
    color: var(--wm-primary-blue);
}

.text-primary-white-mode {
    color: var(--wm-primary-blue);
}

.panel-soft-white-mode {
    background-color: var(--wm-panel-soft-bg);
    color: var(--wm-dark-gray);
    border: 1px solid var(--wm-border-subtle);
}

.muted-fill-white-mode {
    background-color: #a0a0a0;
}

.accent-soft-white-mode {
    background-color: #ADEAE0;
    color: var(--wm-dark-gray);
}

.table-cell-details-white-mode {
    background-color: var(--wm-box-color);
    border-bottom: 1px solid var(--wm-border-gray);
    color: var(--wm-primary-blue);
}

.table-cell-white-mode {
    background-color: var(--wm-white);
    border-bottom: 1px solid var(--wm-border-gray);
    color: var(--wm-dark-gray);
}

.edit-user-background-white-mode {
    background-color: var(--wm-white);
    box-shadow: 0 4px 6px var(--wm-shadow-black);
}

.edit-user-container-white-mode {
    background-color: var(--wm-white);
    box-shadow: 0 4px 6px var(--wm-shadow-black);
}

.form-input-white-mode {
    border: 1px solid var(--wm-border-gray);
    background-color: var(--wm-input-bg);
}

.file-input-button-white-mode {
    background-color: var(--dm-dark-purple);
    color: var(--dm-light-gray);
    box-shadow: inset 0 1px 3px var(--dm-shadow-black);
    border: 1px solid var(--dm-border-gray);
}

.terminal-window-white-mode {
    background: #0b0b0b;
    color: #e6e6e6;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 70vh;
    min-height: 400px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-nav-border-white-mode {
    border-bottom: 3px solid #53CEFB;
}

/* Solid container for items */
.item-container-solid-white-mode {
    /* border: 1px solid #bbbbbb; */
    color: var(--wm-title-color);
    background-color: #fafbfc;
}

/* Dashed button for adding items */
.button-add-dashed-white-mode {
    border: 2px dashed #bbbbbb;
    color: var(--wm-title-color);
    background-color: #fafbfc;
}

.mapper-toggle-active-white-mode {
    border: 1px solid var(--wm-primary-blue);
    background-color: var(--wm-primary-blue);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.25);
}

.mapper-toggle-inactive-white-mode {
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #495057;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.badge-background-white-mode {
    background-color: var(--wm-rosa);
    color: var(--wm-white);
}

.dashboard-header-white-mode {
    background-color: var(--wm-primary-blue);
    color: var(--wm-white);
    padding: 24px 32px;
    margin-bottom: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20, 170, 226, 0.3);
    display: flex;
    align-items: center;
}

.login-background-white-mode {
    background-color: #3c3c3c;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 5%, #00bcd4 5%, #00bcd4 6%, transparent 6%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 85%, #ff5722 85%, #ff5722 86%, transparent 86%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 15%, #2196f3 15%, #2196f3 16%, transparent 16%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 70%, #4caf50 70%, #4caf50 71%, transparent 71%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 10%, #00bcd4 10%, #00bcd4 11%, transparent 11%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 80%, #ff5722 80%, #ff5722 81%, transparent 81%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 30%, #2196f3 30%, #2196f3 31%, transparent 31%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 60%, #4caf50 60%, #4caf50 61%, transparent 61%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.login-background-white-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/static?path=/assets/background.jpeg&unix-cache=1765259085");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.login-background-white-mode>* {
    position: relative;
    z-index: 1;
}

.dashboard-logo-circle-white-mode {
    background-color: #ffffff;
    color: var(--wm-primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-item-card-white-mode {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.text-success-white-mode {
    color: var(--wm-green);
}

.border-left-detail-white-mode {
    border-left: 2px solid var(--wm-border-subtle);
}

.stat-card-white-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card-white-mode:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}




.legend-color-box-white-mode {
    border-radius: 3px;
}



.bar-item-white-mode:hover {
    background-color: rgba(0, 0, 0, 0.02);
}


.bar-track-white-mode {
    background-color: rgba(0, 0, 0, 0.05);
}



.bar-fill-white-mode:hover {
    opacity: 0.85;
}

.section-card-white-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-card-white-mode:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


.dashboard-total-badge-white-mode {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Main Wrapper */
.dashboard-wrapper-white-mode {
    padding: 32px 24px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Error State */
.dashboard-error-container-white-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 32px;
    text-align: center;
}

.dashboard-error-icon-white-mode {
    font-size: 60px;
    margin-bottom: 16px;
    font-weight: bold;
}

.dashboard-error-title-white-mode {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dashboard-error-message-white-mode {
    font-size: 14px;
}

/* Loading State */
.dashboard-loading-container-white-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 32px;
    text-align: center;
}

.dashboard-loading-spinner-white-mode {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.dashboard-loading-text-white-mode {
    font-size: 16px;
}
/* Pagination Styles */
.pagination-footer-white-mode {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.pagination-button-white-mode {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination-info-white-mode {
    font-weight: bold;
    color: var(--wm-dark-gray);
    font-size: 16px;
}

.button-secondary-white-mode {
    background-color: var(--wm-white);
    color: var(--wm-dark-gray);
    border: 1px solid var(--wm-border-gray);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button-secondary-white-mode:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.search-subtopic-white-mode {
    border-left: 2px solid var(--wm-border-gray);
    padding-left: 12px;
    margin-left: 12px;
}


