/* ===================================
   ARBITRIVM - Design System Moderno
   =================================== */

/* Variáveis CSS Customizadas */
:root {
  /* Cores Principais */
  --primary: #1E3A5F;
  --primary-dark: #152940;
  --primary-light: #2A4A70;
  --primary-gradient: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);

  /* Cores Secundárias */
  --secondary: #6B8E7F;
  --accent: #C9A961;
  --neutral: #4A4A4A;
  --background: #FAFAF8;
  --text-primary: #1E3A5F;
  --text-body: #4A4A4A;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #1e293b;
  --light: #f8fafc;

  /* Tons de Cinza */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-colored: 0 10px 40px rgba(99, 102, 241, 0.15);

  /* Bordas */
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Transições */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #2A4A70 100%);
  --gradient-secondary: linear-gradient(135deg, #6B8E7F 0%, #7FA293 100%);
  --gradient-accent: linear-gradient(135deg, #C9A961 0%, #D4B576 100%);

  /* Fontes */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', system-ui, serif;
  --font-heading: 'Playfair Display', serif;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--gradient-primary);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(30, 58, 95, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107, 142, 127, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Container Principal */
.main-wrapper {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  margin-left: 280px;
  transition: var(--transition-base);
}

.main-wrapper.sidebar-collapsed {
  margin-left: 80px;
}

/* Navbar Superior */
.navbar-custom {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand i {
  font-size: 1.75rem;
  color: var(--accent);
}

/* Sidebar Moderna */
.sidebar-custom {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--primary);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  overflow-y: auto;
  transition: var(--transition-base);
}

.sidebar-custom.collapsed {
  width: 80px;
}

.sidebar-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sidebar-logo i {
  color: var(--accent);
  font-size: 2rem;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
  position: relative;
  font-weight: 500;
  border: none;
  margin: 0.25rem 1rem;
  border-radius: var(--border-radius-sm);
}

.sidebar-nav .nav-link:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
  background-color: var(--primary-light);
  border-left: 3px solid var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-colored);
}

.sidebar-nav .nav-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.sidebar-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--primary-gradient);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.sidebar-nav .nav-link.active::before {
  height: 70%;
}

/* Cards Modernos */
.card-custom {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e5e5;
  transition: var(--transition-fast);
  overflow: hidden;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(30, 58, 95, 0.2);
}

.card-custom.primary {
  background: var(--gradient-primary);
}

.card-custom.secondary {
  background: var(--gradient-secondary);
}

.card-custom.accent {
  background: var(--gradient-accent);
}

.card-header-custom {
  background: var(--background);
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid #e5e5e5;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
}

.card-body-custom {
  padding: 1.5rem;
}

/* Cards de Estatística */
.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card-icon.primary {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(42, 74, 112, 0.1) 100%);
  color: var(--primary);
}

.stat-card-icon.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  color: var(--success);
}

.stat-card-icon.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: var(--warning);
}

.stat-card-icon.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
  color: var(--danger);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

/* Números brancos em cards com fundo colorido */
.stat-card.primary .stat-card-value,
.stat-card.secondary .stat-card-value,
.stat-card.accent .stat-card-value,
.stat-card.bg-primary .stat-card-value,
.stat-card.bg-secondary .stat-card-value,
.stat-card.bg-success .stat-card-value,
.stat-card.bg-warning .stat-card-value,
.stat-card.bg-danger .stat-card-value,
.stat-card.bg-info .stat-card-value,
.stat-card.bg-dark .stat-card-value,
.dashboard-card.primary .stat-card-value,
.dashboard-card.secondary .stat-card-value,
.dashboard-card.accent .stat-card-value,
.card.bg-primary .stat-card-value,
.card.bg-gradient-primary .stat-card-value,
[class*="bg-gradient"] .stat-card-value {
  color: #FFFFFF !important;
}

/* Labels também devem ficar claros em fundos escuros */
.stat-card.primary .stat-card-label,
.stat-card.secondary .stat-card-label,
.stat-card.accent .stat-card-label,
.stat-card.bg-primary .stat-card-label,
.stat-card.bg-secondary .stat-card-label,
.stat-card.bg-success .stat-card-label,
.stat-card.bg-warning .stat-card-label,
.stat-card.bg-danger .stat-card-label,
.stat-card.bg-info .stat-card-label,
.stat-card.bg-dark .stat-card-label,
.dashboard-card.primary .stat-card-label,
.dashboard-card.secondary .stat-card-label,
.dashboard-card.accent .stat-card-label,
.card.bg-primary .stat-card-label,
.card.bg-gradient-primary .stat-card-label,
[class*="bg-gradient"] .stat-card-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.stat-card-label {
  color: var(--gray-500);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-card-change {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-card-change.positive {
  color: var(--success);
}

.stat-card-change.negative {
  color: var(--danger);
}

/* Botões Modernos */
.btn-custom {
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(30, 58, 95, 0.3);
}

.btn-secondary-custom {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary-custom:hover {
  background: #7FA293;
  border-color: #7FA293;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-accent:hover {
  background: #D4B576;
  border-color: #D4B576;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.btn-success-custom {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.btn-danger-custom {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

.btn-outline-custom,
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline-custom:hover,
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

/* Formulários Modernos */
.form-control-custom,
.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  transition: var(--transition-fast);
  background: #ffffff;
  color: var(--text-body);
  width: 100%;
}

.form-control-custom:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
  background: #ffffff;
}

.form-control-custom::placeholder {
  color: var(--gray-400);
}

.form-label-custom,
.form-label {
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: block;
  font-family: var(--font-primary);
}

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

.form-floating-custom {
  position: relative;
}

.form-floating-custom input,
.form-floating-custom select,
.form-floating-custom textarea {
  padding: 1.5rem 1rem 0.5rem;
}

.form-floating-custom label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  transition: var(--transition-fast);
  pointer-events: none;
}

/* Tabelas Modernas */
.table-custom,
.table {
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: var(--text-body);
}

.table-custom thead,
.table thead {
  background: var(--background);
}

.table-custom thead th,
.table thead th {
  padding: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e5e5;
  font-family: var(--font-primary);
}

.table-custom tbody tr,
.table tbody tr {
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.table-custom tbody tr:hover,
.table tbody tr:hover {
  background: var(--background);
  transform: scale(1.01);
}

.table-custom tbody td,
.table tbody td {
  padding: 1rem;
  color: var(--text-body);
  font-size: 0.875rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(250, 250, 248, 0.5);
}

.table .action-buttons a {
  color: var(--secondary);
  transition: var(--transition-fast);
}

.table .action-buttons a:hover {
  color: var(--primary);
}

/* Badges Modernos */
.badge-custom {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-primary-custom,
.bg-primary-custom {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(42, 74, 112, 0.1) 100%);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 95, 0.2);
}

.badge-success-custom {
  background: linear-gradient(135deg, rgba(107, 142, 127, 0.1) 0%, rgba(127, 162, 147, 0.1) 100%);
  color: var(--secondary);
  border: 1px solid rgba(107, 142, 127, 0.2);
}

.badge-warning-custom,
.badge-accent-custom {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(212, 181, 118, 0.1) 100%);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.badge-danger-custom {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info-custom {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-secondary-custom {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(148, 163, 184, 0.1) 100%);
  color: var(--gray-600);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-purple-custom {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
  color: var(--secondary);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Alerts Modernos */
.alert-custom,
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: slideInRight 0.3s ease;
}

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

.alert-primary,
.alert-primary-custom {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(42, 74, 112, 0.1) 100%);
  border-left-color: var(--primary);
  color: var(--primary);
}

.alert-success,
.alert-success-custom {
  background: linear-gradient(135deg, rgba(107, 142, 127, 0.1) 0%, rgba(127, 162, 147, 0.1) 100%);
  border-left-color: var(--secondary);
  color: var(--secondary);
}

.alert-danger,
.alert-danger-custom {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
  border-left-color: var(--danger);
  color: var(--danger);
}

.alert-warning,
.alert-warning-custom {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(212, 181, 118, 0.1) 100%);
  border-left-color: var(--accent);
  color: var(--accent);
}

.alert-info,
.alert-info-custom {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-left-color: var(--info);
  color: var(--info);
}

/* Modal Moderno */
.modal-custom {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content-custom {
  background: white;
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header-custom,
.modal-header {
  background: var(--background);
  padding: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.modal-title-custom,
.modal-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
}

.modal-content {
  border: none;
}

/* Progress Bars */
.progress-custom {
  height: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-custom,
.progress-bar {
  background: var(--primary);
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Tooltips */
.tooltip-custom {
  position: relative;
  display: inline-block;
}

.tooltip-custom::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.tooltip-custom::after {
  content: '';
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-800);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.tooltip-custom:hover::before,
.tooltip-custom:hover::after {
  opacity: 1;
}

/* Breadcrumbs Modernos */
.breadcrumb-custom,
.breadcrumb {
  background: var(--background);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.breadcrumb-custom a,
.breadcrumb a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-custom a:hover,
.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-custom .separator,
.breadcrumb .separator {
  color: var(--gray-400);
  margin: 0 0.5rem;
}

.breadcrumb-custom .active,
.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* Timeline */
.timeline-custom {
  position: relative;
  padding-left: 2rem;
}

.timeline-custom::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-content {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* Switches Toggle */
.switch-custom {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: var(--transition-fast);
  border-radius: 999px;
}

.switch-slider::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-fast);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.switch-custom input:checked + .switch-slider {
  background: var(--primary);
}

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

/* Loading Spinner */
.spinner-custom {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Floating Action Button */
.fab-custom {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--primary);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 999;
}

.fab-custom:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 20px 60px rgba(201, 169, 97, 0.4);
}

/* Avatar Circle */
.avatar-circle {
  width: 35px;
  height: 35px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* Nav Section */
.nav-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 1.5rem 0.75rem;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .main-wrapper {
    margin-left: 0;
  }

  .sidebar-custom {
    transform: translateX(-100%);
  }

  .sidebar-custom.show {
    transform: translateX(0);
  }

  .stat-card {
    margin-bottom: 1rem;
  }
}

/* Animações Adicionais */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.slide-up {
  animation: slideUp 0.4s ease;
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

/* Scroll Bar Customizada */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  transition: var(--transition-fast);
}

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

/* ===================================
   Dropdown de Notificações
   =================================== */
#menu-notificacoes {
  width: 360px;
  max-height: 450px;
  overflow-y: auto;
  padding: 0;
}

#menu-notificacoes .dropdown-header {
  background: var(--gray-50);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

#menu-notificacoes .dropdown-item {
  padding: 12px 16px;
  white-space: normal;
  border-bottom: 1px solid var(--gray-100);
}

#menu-notificacoes .dropdown-item:last-child {
  border-bottom: none;
}

#menu-notificacoes .dropdown-item:hover {
  background-color: var(--gray-50);
}

#menu-notificacoes .dropdown-item.notif-item {
  cursor: pointer;
}

#menu-notificacoes .dropdown-divider {
  margin: 0;
}

/* Scrollbar customizada para o dropdown */
#menu-notificacoes::-webkit-scrollbar {
  width: 6px;
}

#menu-notificacoes::-webkit-scrollbar-track {
  background: var(--gray-100);
}

#menu-notificacoes::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

#menu-notificacoes::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Responsivo para mobile */
@media (max-width: 576px) {
  #menu-notificacoes {
    width: 300px;
    max-height: 350px;
  }
}

/* Print Styles */
@media print {
  .sidebar-custom,
  .navbar-custom,
  .fab-custom,
  .btn-custom {
    display: none !important;
  }

  .main-wrapper {
    margin: 0 !important;
  }

  .card-custom {
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
  }
}