/* Root Variables for Theming */
:root {
  /* Main color palette */
  --primary: #7e57c2;
  --primary-dark: #4d2c91;
  --primary-light: #b085f5;
  --secondary: #03dac6;
  --secondary-dark: #018786;
  --secondary-light: #66fff9;
  --accent: #ff4081;
  --background: #f5f5f5;
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #757575;
  --text-light: #ffffff;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --border-radius: 16px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  
  /* Dark mode colors - activated with .dark-mode class */
  --dark-background: #121212;
  --dark-card-bg: #1e1e1e;
  --dark-text-primary: #e0e0e0;
  --dark-text-secondary: #b0b0b0;
}

/* Estilos Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

body.dark-mode {
  background-color: var(--dark-background);
  color: var(--dark-text-primary);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Core Styling */

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--gradient);
  color: var(--text-light);
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--box-shadow);
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.dark-mode .sidebar {
  background: linear-gradient(135deg, #432b63, #1a0a36);
}

.sidebar-header {
  padding: 1.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  width: 90%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

.sidebar-menu {
  padding: 1rem 0;
  list-style: none;
  margin-top: 1rem;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
  position: relative;
}

.sidebar-menu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: transparent;
  transition: var(--transition);
}

.sidebar-menu li:hover::before,
.sidebar-menu li a.active::before {
  background: var(--secondary);
}

.sidebar-menu li a {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-radius: 0 30px 30px 0;
  margin-right: 16px;
  overflow: hidden;
}

.sidebar-menu li a i {
  font-size: 1.4rem;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a:hover i,
.sidebar-menu li a.active i {
  background: var(--secondary);
  color: var(--primary-dark);
}

.sidebar-menu .menu-text {
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 500;
  opacity: 1;
}

.sidebar.collapsed .sidebar-menu .menu-text {
  opacity: 0;
  width: 0;
}

/* Main Content Container */
.content-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--background);
  z-index: 1;
}

.content-wrapper.expanded {
  margin-left: var(--sidebar-width-collapsed);
}

.dark-mode .content-wrapper {
  background-color: var(--dark-background);
}

/* Custom Shape Decorations */
.shape-decorator {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.shape-decorator-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 39% 61% 70% 30% / 30% 36% 64% 70%;
  opacity: 0.05;
  animation: morph 20s linear infinite alternate;
}

.shape-decorator-2 {
  bottom: 10%;
  left: 35%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  border-radius: 61% 39% 52% 48% / 44% 59% 41% 56%;
  opacity: 0.05;
  animation: morph 15s linear infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%;
  }
}

/* Header Bar Styling */
.header-bar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: var(--card-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin: 0 1rem 2rem;
}

.dark-mode .header-bar {
  background-color: var(--dark-card-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-bar h2 {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.dark-mode .header-bar h2 {
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Notification styles */
.notification-icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.05);
}

.notification-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.dark-mode .notification-icon {
  color: var(--dark-text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .notification-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notification-dropdown {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 350px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transform-origin: top right;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.dark-mode .notification-dropdown {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-dropdown.active {
  transform: scale(1);
  opacity: 1;
}

.notification-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
}

.dark-mode .notification-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dark-mode .notification-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.notification-item.unread {
  background-color: rgba(126, 87, 194, 0.05);
}

.dark-mode .notification-item.unread {
  background-color: rgba(126, 87, 194, 0.1);
}

.notification-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
}

.notification-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: rgba(126, 87, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dark-mode .notification-icon-wrapper {
  background-color: rgba(126, 87, 194, 0.2);
  color: var(--primary-light);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

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

.notification-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dark-mode .notification-time {
  color: var(--dark-text-secondary);
}

.notification-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.dark-mode .notification-message {
  color: var(--dark-text-secondary);
}

.notification-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode .notification-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--primary-light);
  background-color: rgba(255, 255, 255, 0.02);
}

.notification-footer:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.dark-mode .notification-footer:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.dark-mode .theme-toggle {
  color: var(--dark-text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
}

/* Main Content */
main {
  flex: 1;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 2;
}

/* Item Lists */
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.dark-mode .item-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to right, rgba(30, 30, 30, 0.7), rgba(20, 20, 20, 0.3));
}

.item-list li:hover {
  background-color: rgba(126, 87, 194, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dark-mode .item-list li:hover {
  background-color: rgba(176, 133, 245, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient);
  opacity: 0.7;
  transition: var(--transition);
}

.item-list li:nth-child(2n)::before {
  background: var(--gradient-accent);
}

.item-list li:nth-child(3n)::before {
  background: var(--gradient-secondary);
}

.item-info {
  flex: 1;
  padding-left: 0.5rem;
}

.item-info strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.dark-mode .item-info strong {
  color: var(--primary-light);
}

.item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.item-details span {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  transition: var(--transition);
}

.dark-mode .item-details span {
  color: var(--dark-text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
}

.item-details span:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .item-details span:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.item-details span i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.6rem;
  color: var(--primary);
  background-color: rgba(126, 87, 194, 0.1);
  border-radius: 6px;
  padding: 0.4rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dark-mode .item-details span i {
  color: var(--primary-light);
  background-color: rgba(176, 133, 245, 0.15);
}

.item-status {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  min-width: 80px;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Dashboard Styling */
.dashboard {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.dark-mode .dashboard {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.dark-mode .dashboard h2 {
  color: var(--primary-light);
}

.dashboard h2:after {
  content: '';
  display: block;
  height: 4px;
  background: var(--gradient-accent);
  width: 60px;
  margin-left: 15px;
  border-radius: 2px;
  margin-top: 4px;
}

/* Dashboard Grid Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
  background-image: 
    linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), 
    url('/app/user_site/src/images/background-pattern.svg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.dark-mode .dashboard-card {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-image: 
    linear-gradient(to bottom right, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.7)), 
    url('/app/user_site/src/images/background-pattern.svg');
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-card-header {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.dashboard-card-header h3 i {
  margin-right: 0.7rem;
}

.dashboard-card-content {
  padding: 1.2rem;
  flex: 1;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
}

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

.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.dark-mode .stat-card {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  opacity: 0.2;
  color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--accent);
}

.stat-card:nth-child(3) .stat-icon {
  color: var(--secondary);
}

.stat-card:nth-child(4) .stat-icon {
  color: #f59e0b;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card:nth-child(2) .stat-value {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card:nth-child(3) .stat-value {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card:nth-child(4) .stat-value {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.dark-mode .stat-label {
  color: var(--dark-text-secondary);
}

/* Card Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
}

.dark-mode .card {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.card:nth-child(2)::before {
  background: var(--gradient-accent);
}

.card:nth-child(3)::before {
  background: var(--gradient-secondary);
}

.card-icon {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: white;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  margin-right: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgba(126, 87, 194, 0.3);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(10deg);
}

.card:nth-child(2) .card-icon {
  background: var(--accent);
  box-shadow: 0 10px 15px -3px rgba(255, 64, 129, 0.3);
}

.card:nth-child(3) .card-icon {
  background: var(--secondary);
  box-shadow: 0 10px 15px -3px rgba(3, 218, 198, 0.3);
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.dark-mode .card-content h3 {
  color: var(--primary-light);
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dark-mode .card-content p {
  color: var(--dark-text-secondary);
}

/* Form Styles */
.form-container {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .form-container {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Checkbox group styling */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .checkbox-group {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  transition: var(--transition);
}

.dark-mode .checkbox-item {
  background-color: rgba(30, 30, 30, 0.7);
}

.checkbox-item:hover {
  background-color: rgba(126, 87, 194, 0.1);
}

.checkbox-item input[type="checkbox"] {
  margin-right: 0.5rem;
  width: auto;
  cursor: pointer;
}

.checkbox-item label {
  display: inline;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

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

.dark-mode label {
  color: var(--dark-text-primary);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text-primary);
}

.dark-mode input, 
.dark-mode select, 
.dark-mode textarea {
  background: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  padding: 0.7rem 1.5rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(126, 87, 194, 0.4);
}

.btn i {
  margin-right: 0.5rem;
}

.btn:hover {
  box-shadow: 0 10px 15px -3px rgba(126, 87, 194, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 6px -1px rgba(3, 218, 198, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 10px 15px -3px rgba(3, 218, 198, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  box-shadow: 0 4px 6px -1px rgba(231, 76, 60, 0.4);
  color: #ffffff;
  font-weight: 600;
}

.btn-danger:hover {
  box-shadow: 0 10px 15px -3px rgba(231, 76, 60, 0.4);
  color: #ffffff;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow);
}

.dark-mode .table-container {
  background-color: var(--dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

table th, table td {
  padding: 1rem;
  text-align: left;
}

table th {
  background-color: rgba(126, 87, 194, 0.1);
  font-weight: 600;
  color: var(--primary-dark);
}

.dark-mode table th {
  background-color: rgba(126, 87, 194, 0.2);
  color: var(--primary-light);
}

table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.dark-mode table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

table td {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode table td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Action buttons in tables */
.action-btns {
  display: flex;
  gap: 0.8rem;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.edit-btn {
  color: var(--primary);
  background: rgba(126, 87, 194, 0.1);
}

.edit-btn:hover {
  background: rgba(126, 87, 194, 0.2);
}

.delete-btn {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.delete-btn:hover {
  background: rgba(231, 76, 60, 0.2);
}

.view-btn {
  color: var(--secondary-dark);
  background: rgba(3, 218, 198, 0.1);
}

.view-btn:hover {
  background: rgba(3, 218, 198, 0.2);
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: inherit;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.status-green {
  background-color: #10b981;
}

.status-yellow {
  background-color: #f59e0b;
}

.status-red {
  background-color: #ef4444;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  70% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.status-text {
  display: flex;
  align-items: center;
}

/* Alert Box */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  animation: slideInDown 0.3s ease-in-out;
  border-left: 4px solid;
  display: flex;
  align-items: center;
}

.alert i {
  margin-right: 0.8rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-left-color: #10b981;
  color: #064e3b;
}

.dark-mode .alert-success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: #78350f;
}

.dark-mode .alert-warning {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #7f1d1d;
}

.dark-mode .alert-danger {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  animation: zoomIn 0.3s ease-in-out;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.dark-mode .modal {
  background-color: var(--dark-card-bg);
}

.modal-header {
  padding: 1.2rem 1.5rem;
  background: var(--gradient);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .modal-footer {
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
footer {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode footer {
  background-color: var(--dark-card-bg);
  color: var(--dark-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Loader Animation */
.loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  margin: 30px auto;
}

.loader:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(126, 87, 194, 0.2);
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page Loading Animation */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.loading-spinner:before,
.loading-spinner:after {
  content: '';
  display: block;
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  border-bottom-color: white;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.loading-spinner:before {
  width: 60px;
  height: 60px;
  animation: spin 1s ease-in-out infinite;
}

.loading-spinner:after {
  width: 40px;
  height: 40px;
  border-bottom-color: var(--secondary);
  animation: spin 0.8s ease-in-out infinite reverse;
}

.loading-text {
  color: white;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  font-weight: 500;
  letter-spacing: 3px;
}

/* Empty message styling */
.empty-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.dark-mode .empty-message {
  color: var(--dark-text-secondary);
}

/* Dashboard loading */
.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(126, 87, 194, 0.1);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.dashboard-loading p {
  color: var(--text-secondary);
}

.dark-mode .dashboard-loading p {
  color: var(--dark-text-secondary);
}

/* Responsiveness */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 250px;
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 220px;
  }
  
  .sidebar {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .content-wrapper {
    margin-left: 0;
  }
  
  .content-wrapper.expanded {
    margin-left: 0;
  }
  
  .toggle-btn {
    display: flex;
  }
  
  .header-bar {
    padding: 0 1rem;
    margin: 0 0.5rem 1rem;
  }
  
  main {
    padding: 0 1rem 1rem;
  }
  
  .dashboard {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card-icon {
    flex: 0 0 60px;
    height: 60px;
    width: 60px;
    margin-right: 1rem;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .card-content p {
    font-size: 0.85rem;
  }
  
  .dashboard h2 {
    font-size: 1.5rem;
  }
  
  .modal {
    width: 95%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity:.9;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.staggered-fade-in > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.staggered-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.staggered-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.staggered-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.staggered-fade-in > *:nth-child(4) { animation-delay: 0.4s; }
.staggered-fade-in > *:nth-child(5) { animation-delay: 0.5s; }

/* Botão pequeno para o header */
.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-right: 10px;
}

.header-title {
  display: flex;
  flex-direction: column;
}

.header-title h2 {
  margin-bottom: 0;
}

.welcome-message {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.welcome-message #usuario-nome {
  font-weight: 600;
  color: var(--primary);
}

.dark-mode .welcome-message #usuario-nome {
  color: var(--primary-light);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Estilo para o botão de sair */
.sidebar-footer {
  padding: 1rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.btn-sair {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  color: white !important;
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  justify-content: center;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
}

.btn-sair:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(231, 76, 60, 0.4);
  filter: brightness(1.1);
}

.btn-sair i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

/* Estilos específicos para a página de cadastro de usuários */
.senha-forca {
  height: 4px;
  margin-top: 5px;
  background-color: #eee;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.forca-barra {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.forca-barra.fraca {
  background-color: #ff4444;
}

.forca-barra.media {
  background-color: #ffbb33;
}

.forca-barra.forte {
  background-color: #00C851;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 40px;
  width: 100%;
}

.input-with-icon i {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.input-with-icon i:hover {
  color: var(--primary);
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dark-mode .form-text {
  color: var(--dark-text-secondary);
}

.info-seguranca {
  margin-bottom: 1.5rem;
}

.info-seguranca h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
}

.dark-mode .info-seguranca h3 {
  color: var(--primary-light);
}

.info-seguranca h3 i {
  margin-right: 0.5rem;
}

.info-seguranca ul {
  list-style: none;
  padding-left: 0.5rem;
}

.info-seguranca ul li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(126, 87, 194, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.dark-mode .info-seguranca ul li {
  background-color: rgba(126, 87, 194, 0.1);
}

.info-seguranca ul li i {
  color: #00C851;
  margin-right: 0.5rem;
}

/* Estilos para verificação de email e código */
.cadastro-progresso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.progresso-etapa {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.etapa-numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #eee;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  transition: var(--transition);
}

.dark-mode .etapa-numero {
  background-color: rgba(255, 255, 255, 0.1);
}

.etapa-texto {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition);
}

.progresso-etapa.active .etapa-numero,
.progresso-etapa.complete .etapa-numero {
  background-color: var(--primary);
  color: white;
}

.progresso-etapa.active .etapa-texto,
.progresso-etapa.complete .etapa-texto {
  color: var(--primary-dark);
  font-weight: 600;
}

.dark-mode .progresso-etapa.active .etapa-texto,
.dark-mode .progresso-etapa.complete .etapa-texto {
  color: var(--primary-light);
}

.progresso-etapa.complete .etapa-numero::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
}

.progresso-linha {
  flex: 1;
  height: 3px;
  background-color: #eee;
  position: relative;
  z-index: 1;
}

.dark-mode .progresso-linha {
  background-color: rgba(255, 255, 255, 0.1);
}

.progresso-linha.active {
  background-color: var(--primary);
}

.verificacao-email {
  text-align: center;
  padding: 20px;
}

.email-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.dark-mode .email-icon {
  color: var(--primary-light);
}

.verificacao-email h4 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.dark-mode .verificacao-email h4 {
  color: var(--primary-light);
}

.codigo-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.input-codigo {
  width: 45px;
  height: 55px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.dark-mode .input-codigo {
  background-color: var(--dark-card-bg);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

.input-codigo:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

.codigo-status {
  min-height: 20px;
  font-size: 0.9rem;
  margin: 10px 0;
}

.codigo-status.error {
  color: #ff4444;
}

.codigo-status.success {
  color: #00C851;
}

.reenviar-codigo {
  margin-top: 15px;
  font-size: 0.9rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dark-mode .btn-link {
  color: var(--primary-light);
}

.btn-link:hover {
  color: var(--primary-dark);
}

.dark-mode .btn-link:hover {
  color: var(--primary-light);
  opacity: 0.8;
}

.cadastro-sucesso {
  text-align: center;
  padding: 20px;
}

.sucesso-icon {
  font-size: 4rem;
  color: #00C851;
  margin-bottom: 15px;
}

.cadastro-sucesso h4 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.dark-mode .cadastro-sucesso h4 {
  color: var(--primary-light);
}

.codigo-display {
  margin: 20px auto;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--primary);
  background: rgba(126, 87, 194, 0.1);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  display: inline-block;
}

.dark-mode .codigo-display {
  color: var(--primary-light);
  background: rgba(126, 87, 194, 0.2);
}

/* Simulação de email */
.email-modal {
  max-width: 650px;
}

.email-header {
  background: #dd4b39;
}

.email-simulacao {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .email-simulacao {
  background: #333;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-cabecalho {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.dark-mode .email-cabecalho {
  border-color: rgba(255, 255, 255, 0.1);
}

.email-cabecalho p {
  margin: 5px 0;
}

.email-conteudo h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.dark-mode .email-conteudo h3 {
  color: var(--primary-light);
}

.email-conteudo p {
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Alert flutuante */
.alert-float {
  position: fixed;
  right: 20px;
  top: 20px;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  animation: slideInRight 0.3s ease-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alert-float.show {
  opacity: 1;
}

.alert-float i {
  margin-right: 8px;
}

.alert-info {
  background-color: #3498db;
  color: white;
}

.alert-success {
  background-color: #2ecc71;
  color: white;
}

.alert-warning {
  background-color: #f39c12;
  color: white;
}

.alert-error {
  background-color: #e74c3c;
  color: white;
}

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

/* Estilos para Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
  padding: 20px;
}

.modal.active {
  display: block;
}

.modal-dialog {
  max-width: 600px;
  margin: 30px auto;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

body.dark-mode .modal-content {
  background-color: var(--dark-card-bg);
  color: var(--dark-text-primary);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

/* Estilos para formulários dentro do modal */
.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
}

.mb-3 {
  margin-bottom: 15px;
}

/* Estilos para body quando modal está aberto */
body.modal-open {
  overflow: hidden;
}

/* Estilos para exibição de senha */
.senha-container {
  display: flex;
  align-items: center;
  position: relative;
}

.senha-valor {
  margin-right: 10px;
}

.senha-valor.masked {
  -webkit-text-security: disc; /* Para navegadores baseados em WebKit (Chrome, Safari) */
  letter-spacing: 3px;
  font-family: monospace;
}

.btn-toggle-senha {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
  transition: color 0.2s;
}

.btn-toggle-senha:hover {
  color: #007bff;
}

/* Estilos para gráficos e estatísticas */
.grafico-container {
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.chart-container {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
}

.chart-bar {
  transition: height 0.5s ease;
  border-radius: 4px 4px 0 0;
}

.chart-label {
  margin-top: 8px;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
}

.chart-value {
  font-size: 11px;
  color: var(--text-secondary);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  color: var(--text-secondary);
}

.no-data {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-style: italic;
  color: var(--text-secondary);
}

.dark-mode .chart-value {
  color: var(--dark-text-secondary);
}

.dark-mode .loading,
.dark-mode .no-data {
  color: var(--dark-text-secondary);
}

/* Aumentando a largura do modal para funcionários */
#modalAddFuncionario .modal-dialog,
#modalConfirmDeleteFuncionario .modal-dialog {
  max-width: 800px; /* Aumentando a largura do modal */
  width: 80%; /* Garantindo que ocupe 80% da largura da tela */
}

/* Ajustando o estilo dos inputs no modal de funcionários para aproveitar a largura */
#modalAddFuncionario .form-control {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: border-color 0.3s;
}

#modalAddFuncionario .form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

#modalAddFuncionario .form-group {
  margin-bottom: 20px;
}

#modalAddFuncionario label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Estilos para estatísticas de usuários */
.dashboard-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
}

.dashboard-card h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.progress-container {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.progress {
  flex: 1;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 10px;
}

.progress-bar {
  height: 100%;
  background-color: #4e73df;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-label {
  font-weight: bold;
  color: #4e73df;
  width: 50px;
  text-align: right;
}

.perfil-grafico {
  margin-top: 15px;
}

.perfil-item {
  margin-bottom: 15px;
}

.perfil-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.perfil-nome {
  font-weight: 500;
}

.perfil-valor {
  font-weight: bold;
}

.perfil-barra-container {
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.perfil-barra {
  height: 100%;
  background-color: #4e73df;
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* Estilos para alertas */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
}

.alert {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 15px;
  position: relative;
  animation: slideIn 0.3s ease;
  border-left: 4px solid #3498db;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-message {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
}

.alert-close:hover {
  color: #333;
}

.alert-success {
  border-left-color: #2ecc71;
}

.alert-error {
  border-left-color: #e74c3c;
}

.alert-warning {
  border-left-color: #f39c12;
}

/* Adicionando animações de slide para os alertas */
.alert-closing {
  animation: slideOut 0.3s ease forwards;
}

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

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

/* Corrigindo avisos de compatibilidade para background-clip */
.text-gradient {
  background: -webkit-linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-success {
  background: -webkit-linear-gradient(45deg, #11998e 0%, #38ef7d 100%);
  background: linear-gradient(45deg, #11998e 0%, #38ef7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-warning {
  background: -webkit-linear-gradient(45deg, #f46b45 0%, #eea849 100%);
  background: linear-gradient(45deg, #f46b45 0%, #eea849 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-danger {
  background: -webkit-linear-gradient(45deg, #f5515f 0%, #9f041b 100%);
  background: linear-gradient(45deg, #f5515f 0%, #9f041b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Estilos para o container de senha */
.password-container {
  display: flex;
  align-items: center;
  position: relative;
}

.password-hidden,
.password-visible {
  margin-right: 5px;
}

.btn-toggle-password {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 5px;
  transition: var(--transition);
}

.btn-toggle-password:hover {
  color: var(--primary-dark);
}

.dark-mode .btn-toggle-password {
  color: var(--primary-light);
}

.dark-mode .btn-toggle-password:hover {
  color: var(--secondary);
}

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

.dark-mode .text-muted {
  color: var(--dark-text-secondary);
}