/* frontend/css/style.css */
:root {
  /* Paleta de cores baseada na logo Creevo */
  --primary-orange: #FF6600;
  --primary-red: #CC0000;
  --dark-gray: #4A4A4A;
  --bg-dark: #000000;
  --bg-panel: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-light: #ffffff;
  --text-muted: #a0a8b5;
  --text-secondary: #6b7280;
  --border-light: #374151;
  --border-accent: #4b5563;
  
  /* Gradientes da logo */
  --gradient-primary: linear-gradient(135deg, #FF6600 0%, #CC0000 100%);
  --gradient-secondary: linear-gradient(135deg, #CC0000 0%, #FF6600 100%);
  --gradient-text: linear-gradient(135deg, #FF6600 0%, #CC0000 100%);
  
  /* Sombras e efeitos */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(255, 102, 0, 0.3);
  
  /* Transições */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Bordas */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
  }
}

/* Logo Component */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-normal);
}

.logo-text-container {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: var(--transition-normal);
}

.logo:hover .logo-text {
  transform: scale(1.05);
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-panel) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Cards */
.card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--primary-orange);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h2, .card h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Formulários */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, textarea, select {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-normal);
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
  background: var(--bg-panel);
  transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}

/* Botões */
button, .btn {
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: auto;
  min-height: 44px;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

button:hover::before, .btn:hover::before {
  left: 100%;
}

button:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--gradient-secondary);
}

button:active, .btn:active {
  transform: translateY(-1px);
}

button i, .btn i {
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-3px);
}

.btn-outline::before {
  display: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-outline-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-light);
}

.btn-outline-small:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Links */
.link {
  color: var(--primary-orange);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
}

.link:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.upload-area:hover {
  border-color: var(--primary-orange);
  background: rgba(255, 102, 0, 0.05);
  transform: scale(1.02);
}

.upload-area:hover::before {
  opacity: 0.1;
}

/* Navegação */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* Tabs */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-light);
  background: rgba(255, 102, 0, 0.1);
}

.tab-btn.active {
  color: var(--primary-orange);
  background: rgba(255, 102, 0, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

/* Badges */
.badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.15);
  color: var(--primary-orange);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Modais */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  animation: scaleIn 0.3s ease-out;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-orange);
  font-size: 1.5rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.close-modal:hover {
  color: var(--text-light);
  background: rgba(255, 102, 0, 0.1);
}

/* Estatísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-orange);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
  display: block;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 4px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 12px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .tab-nav {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  button, .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Utilitários de animação */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Estados de loading */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* Seleção de texto */
::selection {
  background: var(--primary-orange);
  color: white;
}

::-moz-selection {
  background: var(--primary-orange);
  color: white;
}

/* ===== MODAL DE FORMATO ===== */
.format-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-panel);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.format-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.format-option:hover::before {
  left: 100%;
}

.format-option:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.format-option[data-format="excel"]:hover {
  background: linear-gradient(135deg, #1e6f3f, #2d8f47);
  color: white;
}

.format-option[data-format="csv"]:hover {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: white;
}

.format-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.format-option[data-format="excel"] .format-icon {
  color: #1e6f3f;
}

.format-option[data-format="csv"] .format-icon {
  color: #4a5568;
}

.format-option:hover .format-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.format-info {
  flex: 1;
}

.format-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.format-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.format-arrow {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.format-option:hover .format-arrow {
  transform: translateX(4px);
  color: var(--primary-orange);
}

.format-footer {
  animation: fadeInUp 0.5s ease 0.2s both;
}

/* Animações do modal */
#format-modal .modal-content {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.format-option {
  animation: fadeInUp 0.4s ease both;
}

.format-option[data-format="excel"] {
  animation-delay: 0.1s;
}

.format-option[data-format="csv"] {
  animation-delay: 0.2s;
}

/* ===== DASHBOARD EMPRESA MELHORADO ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Seção de Boas-vindas */
.welcome-section {
  grid-column: 1 / -1;
}

.welcome-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.welcome-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.welcome-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* KPIs Melhorados */
.kpis-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  grid-column: 1 / -1;
}

.kpi-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-orange);
}

.kpi-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.kpi-content {
  flex: 1;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
  font-weight: 500;
}

.kpi-trend {
  font-size: 0.8rem;
  color: var(--success-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Seção de Ações */
.actions-section {
  grid-column: 1 / -1;
}

.actions-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.actions-card h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.action-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.action-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Seção de Funcionários */
.employees-section {
  grid-column: 1 / -1;
}

.employees-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.employees-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.employees-title h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.employees-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-item i {
  color: var(--primary-orange);
}

.employees-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.employees-filters {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-group .input {
  padding-right: 2.5rem;
}

.filter-group i {
  position: absolute;
  right: 0.75rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.employees-list {
  max-height: 500px;
  overflow-y: auto;
}

.error-message {
  padding: 1rem 1.5rem;
  color: var(--error-color);
  text-align: center;
  font-style: italic;
}

/* ===== MODAIS DE CONFIGURAÇÕES ===== */
.settings-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.settings-section h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-orange);
}

/* ===== PERFIL DA EMPRESA ===== */
.profile-content {
  max-width: 800px;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.8rem;
}

.profile-info p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.profile-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-badge i {
  color: var(--primary-orange);
}

.profile-sections {
  display: grid;
  gap: 2rem;
}

.profile-section h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.activity-list {
  display: grid;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.activity-item i {
  color: var(--primary-orange);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.activity-item span {
  flex: 1;
  color: var(--text-primary);
}

.activity-item small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .dashboard-grid {
    padding: 0 0.5rem;
  }
  
  .welcome-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .welcome-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .welcome-actions .btn {
    flex: 1;
  }
  
  .kpis-section {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .employees-filters {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== LISTA DE FUNCIONÁRIOS MELHORADA ===== */
.employee-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.employee-item:hover {
  background: var(--bg-secondary);
}

.employee-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.employee-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.employee-details h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.employee-details p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.employee-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.ativo {
  background: var(--success-color);
  color: white;
}

.status-badge.inativo {
  background: var(--error-color);
  color: white;
}

.status-badge.concluido {
  background: var(--primary-orange);
  color: white;
}

.progress-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.employee-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-orange);
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 1.1rem;
}