:root {
  /* Tema claro (padrão) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-sidebar: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent-color: #54c945;
  --accent-hover: #45a836;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #54c945;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-sidebar: #000000;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent-color: #7dde6f;
  --accent-hover: #54c945;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --danger-color: #f87171;
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --info-color: #60a5fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
}

/* Estilos gerais */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px var(--shadow-color);
}

.product-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  height: 80px;
}

.product-card-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
}

.product-card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-access {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-access:hover {
  background-color: var(--bg-primary);
}

.whatsapp-card {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.whatsapp-icon {
  width: 50px;
  height: 50px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-icon i {
  font-size: 1.5rem;
  color: white;
}

.whatsapp-content {
  flex: 1;
}

.whatsapp-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.whatsapp-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.whatsapp-button {
  margin-left: 1rem;
}

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

/* Dashboard Metrics Styles */
.dashboard-metrics {
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px var(--shadow-color);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(84, 201, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--accent-color);
}

.metric-icon i {
  font-size: 1.25rem;
}

.metric-content {
  flex: 1;
}

.metric-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive adjustments for metrics grid */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Chart Container Styles */
.chart-container {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px var(--shadow-color);
  margin-bottom: 2rem;
  overflow: hidden;
}

.chart-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.chart-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-body {
  padding: 1.5rem;
  height: 300px;
}

[data-theme="dark"] .btn-primary {
  background-color: #54c945;
  color: white;
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
}

/* Formulários */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(84, 201, 69, 0.25);
}

/* Login e Registro */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .auth-logo {
  color: #ffffff;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
}

[data-theme="dark"] .auth-footer a {
  color: #54c945;
}

/* Layout do Dashboard */
.dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  transition: all 0.3s;
  position: fixed;
  height: 100vh;
  z-index: 100;
  padding-top: 10px;
}

.sidebar-collapsed {
  width: 70px;
}

.sidebar-collapsed .sidebar-text,
.sidebar-collapsed .sidebar-category,
.sidebar-collapsed .enterprise-name,
.sidebar-collapsed .requisitions-label,
.sidebar-collapsed .requisitions-count,
.sidebar-collapsed .progress-bar,
.sidebar-collapsed .sidebar-whatsapp-content,
.sidebar-collapsed .user-details {
  display: none;
}

.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar-collapsed .sidebar-icon {
  margin-right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-color);
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sidebar-logo i {
  margin-right: 10px;
}

[data-theme="dark"] .sidebar-logo {
  color: #ffffff;
}

.sidebar-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.25rem;
}

.sidebar-toggle:hover {
  background-color: var(--bg-primary);
}

.sidebar-menu {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
}

.sidebar-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  margin-top: 1rem;
  font-weight: 500;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 5px;
  margin: 2px 8px;
}

.sidebar-item:hover, .sidebar-item.active {
  background-color: rgba(84, 201, 69, 0.1);
  color: var(--accent-color);
}

[data-theme="dark"] .sidebar-item:hover,
[data-theme="dark"] .sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-text {
  white-space: nowrap;
  overflow: hidden;
}

.main-content {
  flex: 1;
  margin-left: calc(250px + (100% - 250px - 1000px) / 2);
  padding: 1.5rem;
  transition: margin-left 0.3s;
  padding-bottom: 80px; /* Espaço para o footer */
  max-width: 1000px;
  width: 100%;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.link-section {
  margin-bottom: 2rem;
}

.partners-section {
  margin-bottom: 2rem;
}

.footer {
  position: absolute;
  bottom: 0;
  left: calc(250px + (100% - 250px - 1000px) / 2);
  width: 1000px;
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: left 0.3s;
}

.footer-collapsed {
  left: calc(70px + (100% - 70px - 1000px) / 2);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  z-index: 1000;
}

.chat-header {
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.chat-title img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.chat-body {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 10px;
  font-size: 14px;
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
}

.chat-footer button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.chat-footer button i {
  margin-right: 5px;
}

.main-content-expanded {
  margin-left: calc(70px + (100% - 70px - 1000px) / 2);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

[data-theme="dark"] .page-title {
  color: #ffffff;
}

.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--text-primary);
}

.user-button:hover {
  background-color: var(--bg-secondary);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.75rem;
}

.user-name {
  font-weight: 500;
  margin-right: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--bg-secondary);
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
  min-width: 200px;
  z-index: 10;
  margin-top: 0.5rem;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s;
}

[data-theme="dark"] .dropdown-item {
  color: #ffffff;
}

.dropdown-item:hover {
  background-color: var(--bg-primary);
}

.dropdown-icon {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Cards e Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-description {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Tabelas */
.table-container {
  overflow-x: auto;
}

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

.table th, .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

.table tbody tr:hover {
  background-color: var(--bg-primary);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* Responsividade */
@media (max-width: 1300px) {
  .main-content {
    margin-left: 250px;
    max-width: calc(100% - 250px - 2rem);
  }
  
  .main-content-expanded {
    margin-left: 70px;
    max-width: calc(100% - 70px - 2rem);
  }
  
  .footer {
    left: 250px;
    width: calc(100% - 250px);
  }
  
  .footer-collapsed {
    left: 70px;
    width: calc(100% - 70px);
  }
}

@media (max-width: 768px) {
  .sidebar {
    left: -250px;
  }
  
  .sidebar-collapsed {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding-bottom: 80px; /* Add space for the mobile footer menu */
  }
  
  .main-content-expanded {
    margin-left: 0;
    max-width: 100%;
  }
  
  .footer {
    left: 0;
    width: 100%;
  }
  
/* Mobile Footer Menu - Hidden by default on desktop */
.mobile-footer-menu {
  display: none !important;
}

/* Mobile menu item styles - will only apply when menu is visible */
.mobile-menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 10px;
  padding: 8px 0;
  transition: all 0.2s;
}

.mobile-menu-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.mobile-menu-item.active {
  color: var(--accent-color);
}

.mobile-menu-item:hover {
  color: var(--accent-hover);
}

/* Only show mobile footer menu on mobile devices */
@media (max-width: 768px) {
  .mobile-footer-menu {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Hide the regular footer on mobile */
  .footer {
    display: none;
  }
  
  /* Adjust the chat widget to not be covered by mobile menu */
  .chat-widget {
    bottom: 70px;
  }
  
  /* Hide the sidebar toggle button on mobile since we have the footer menu */
  .sidebar-toggle {
    display: none;
  }
  
  /* Adjust the topbar to be more mobile-friendly */
  .topbar {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
}

  
  .footer-collapsed {
    left: 0;
    width: 100%;
  }
  
  /* Estilo para o switch de tema */
  .theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 1rem;
  }

  .theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 0.5rem;
  }

  .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
  }

  input:checked + .slider {
    background-color: var(--accent-color);
  }

  input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-color);
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .slider.round {
    border-radius: 34px;
  }

  .slider.round:before {
    border-radius: 50%;
  }

  
}

/* Switch para alternar tema */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: .4s;
  border-radius: 24px;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: var(--accent-color);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .theme-slider:before {
  transform: translateX(26px);
}

.theme-icon {
  position: absolute;
  top: 4px;
  font-size: 14px;
  transition: .4s;
}

.theme-icon-light {
  left: 6px;
  color: var(--text-secondary);
  opacity: 1;
}

.theme-icon-dark {
  right: 6px;
  color: var(--text-secondary);
  opacity: 0;
}

input:checked + .theme-slider .theme-icon-light {
  opacity: 0;
}

input:checked + .theme-slider .theme-icon-dark {
  opacity: 1;
}

/* Notificações */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  max-width: 300px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification-success {
  background-color: var(--success-color);
  color: white;
}

.notification-error {
  background-color: var(--danger-color);
  color: white;
}

.notification-warning {
  background-color: var(--warning-color);
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Estilos para o footer da sidebar */
.sidebar-footer {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  position: relative;
  z-index: 1001;
}

.enterprise-info {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  margin-bottom: 0;
}

/* Estilo específico para enterprise-info no tema claro */
[data-theme="light"] .enterprise-info {
  background-color: #f0f4f8;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .enterprise-name {
  color: #54c945;
  font-weight: 700;
}

[data-theme="light"] .requisitions-label {
  color: #54c945;
  font-weight: 600;
}

[data-theme="light"] .requisitions-count {
  color: #54c945;
  font-weight: 600;
}

.enterprise-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.requisitions-label {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 2px;
}

.requisitions-count {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 5px;
}

.progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .progress {
  background-color: #54c945;
  box-shadow: 0 0 5px rgba(84, 201, 69, 0.5);
}

.user-info {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
}

/* Estilos para user-info */
.user-info {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

/* Estilo específico para user-info no tema claro */
[data-theme="light"] .user-info {
  background-color: #f0f4f8;
  border: 1px solid #e2e8f0;
}

/* Estilo específico para user-info no tema escuro */
[data-theme="dark"] .user-info {
  background-color: #1e1e1e;
  border: 1px solid #333333;
}

.user-details {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  margin-left: 8px;
}

.user-dropdown i {
  color: var(--text-secondary);
  font-size: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Estilos para o avatar do usuário em diferentes temas */
[data-theme="light"] .user-avatar {
  background-color: #f0f4f8;
}

[data-theme="dark"] .user-avatar {
  background-color: #000000;
  color: #ffffff;
}

/* Estilo para o ícone fa-mask em diferentes temas */
[data-theme="light"] .user-avatar .fa-mask {
  background-color: #54c945;
  color: #ffffff;
  padding: 5px;
  border-radius: 50%;
}

.user-avatar i {
  font-size: 16px;
  color: #fff;
}

[data-theme="light"] .user-avatar {
  background-color: #54c945;
}

[data-theme="light"] .user-avatar i {
  color: #fff;
}

.user-avatar img {
  width: 70%;
  height: 70%;
  filter: brightness(0) invert(1); /* Garante que o SVG fique totalmente branco no tema escuro */
}

/* Garantir que o avatar na sidebar seja branco no tema escuro */
.sidebar-user .user-avatar img {
  filter: brightness(0) invert(1);
}

/* Estilos para o avatar no menu dropdown */
.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-avatar i {
  font-size: 16px;
  color: #fff;
}

[data-theme="light"] .user-menu-avatar {
  background-color: #54c945;
}

[data-theme="light"] .user-menu-avatar i {
  color: #fff;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 2px;
}

.user-email {
  font-size: 0.75rem;
  color: #aaa;
}

/* Cores do texto no tema claro */
[data-theme="light"] .user-name {
  color: #54c945;
  font-weight: 700;
}

[data-theme="light"] .user-email {
  color: #54c945;
  font-weight: 600;
}

[data-theme="light"] .user-dropdown i {
  color: #54c945;
}

.user-dropdown {
  color: #aaa;
  cursor: pointer;
  padding: 0 0.5rem;
}

.user-dropdown i {
  transition: transform 0.3s ease;
}

.user-dropdown i.fa-chevron-up {
  transform: rotate(180deg);
}

/* Menu dropdown do usuário */
.sidebar-user-menu {
  position: absolute;
  bottom: 100%; /* Posiciona logo acima do user-info */
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background-color: #121212;
  border-radius: 4px;
  overflow: hidden;
  display: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-menu.show-menu {
  display: block;
}

.sidebar-footer {
  position: relative;
}

.user-menu-header {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-menu-info {
  flex: 1;
  overflow: hidden;
}

.user-menu-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.user-menu-email {
  font-size: 0.7rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .user-menu-email {
  color: #777;
}

.user-menu-header .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  font-size: 0.8rem;
}

.sidebar-user-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  position: relative;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.sidebar-user-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-user-menu-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/* Suporte para tema claro */
[data-theme="light"] .sidebar-user-menu {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .user-menu-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sidebar-user-menu-item {
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar-user-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar-user-menu-item i {
  color: #666;
}

[data-theme="light"] .user-avatar {
  background-color: #e0e0e0;
}

[data-theme="light"] .user-avatar img,
[data-theme="light"] .sidebar-user .user-avatar img,
[data-theme="light"] .user-menu-avatar img {
  filter: brightness(0); /* Deixa o avatar preto no tema claro */
}

.menu-arrow {
  position: absolute;
  right: 15px;
  margin-right: 0;
  transition: transform 0.3s ease;
}

.has-submenu {
  cursor: pointer;
}

.has-submenu.active .menu-arrow {
  transform: rotate(90deg);
}

.submenu {
  display: none;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5px 0;
}

.submenu.show {
  display: block;
}

/* Submenu que aparece à direita */
/* Popup de temas */
.theme-popup {
  display: none;
  position: fixed;
  z-index: 1010;
}

.theme-popup.show {
  display: block;
}

.theme-popup-content {
  width: 180px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 5px 0;
}

.theme-popup-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  position: relative;
}

.theme-popup-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-popup-item i:first-child {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.theme-active {
  position: absolute;
  right: 15px;
  color: #4caf50;
  display: none;
}

.dark-active, .light-active, .system-active {
  font-size: 12px;
}

[data-theme="light"] .theme-active {
  color: #2e7d32;
}

[data-theme="light"] .theme-popup-content {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-popup-item {
  color: #333;
}

[data-theme="light"] .theme-popup-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.has-submenu {
  position: relative;
}

/* Removendo regra desnecessária */

[data-theme="light"] .submenu-right {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px 10px 40px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  position: relative;
}

.submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.submenu-item i:first-child {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.theme-active {
  position: absolute;
  right: 15px;
  opacity: 0;
  color: #4CAF50;
}

.theme-active.visible {
  opacity: 1;
}

/* Tema claro para o submenu */
[data-theme="light"] .submenu {
  background-color: #f5f5f5;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .submenu-item {
  color: #333;
}

[data-theme="light"] .submenu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
