/* ========== VARIÁVEIS DE DESIGN ========== */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4f6cff;
  
  --secondary-color: #3f37c9;
  --secondary-dark: #3730a3;
  --secondary-light: #4a43d8;
  
  --accent-color: #25cdf7;
  --accent-dark: #17cde5;
  --accent-light: #3dd8ff;
  
  --success-color: #4cc9f0;
  --warning-color: #f8961e;
  --danger-color: #f94144;
  --info-color: #4895ef;
  
  --text-primary: #2b2d42;
  --text-secondary: #6c757d;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  --border-color: rgba(0, 0, 0, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
}

/* ========== RESET E BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-normal);
  overflow-x: hidden;
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-slow);
}

.preloader-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.spinner-sector {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  mix-blend-mode: overlay;
  animation: rotate 1.5s linear infinite;
}

.spinner-sector-primary {
  border-top-color: var(--primary-color);
  animation-delay: 0.1s;
}

.spinner-sector-secondary {
  border-top-color: var(--secondary-color);
  animation-delay: 0.2s;
}

.spinner-sector-accent {
  border-top-color: var(--accent-color);
  animation-delay: 0.3s;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== CABEÇALHO ========== */
.premium-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.logo-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.5s ease, opacity 0.5s ease;
  z-index: 1001;
}

/* ========== NAVEGAÇÃO ========== */
.premium-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-container {
  height: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  position: relative;
  height: 100%;
}

.nav-link i {
  font-size: var(--text-md);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover i {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active i {
  color: var(--primary-color);
}

.link-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.nav-link.active .link-underline {
  width: calc(100% - 2rem);
}

.user-profile {
  margin-left: var(--space-md);
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  transition: var(--transition-fast);
}

.profile-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.avatar>.fa-user-circle {
  color:white!important;
  font-size: 15pt;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.user-name {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: bold !important;
}

.profile-btn i {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.profile-btn.active i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 200px;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 100;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
  transform-origin: center;
}

.mobile-menu-btn.active .top-bar {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .middle-bar {
  opacity: 0;
}

.mobile-menu-btn.active .bottom-bar {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== CONTEÚDO PRINCIPAL ========== */
.premium-main {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1400px;
  margin: 70px auto 0;
  min-height: calc(100vh - 120px);
}

.update-notification {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.update-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.update-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.update-header {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  gap: var(--space-md);
}

.update-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.update-title {
  flex: 1;
}

.update-title h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.update-title p {
  font-size: var(--text-xs);
  opacity: 0.9;
}

.close-update {
  background: none;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-update:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.update-content {
  padding: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.update-footer {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  justify-content: flex-end;
}

.version-tag {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* ========== ACESSOS RÁPIDOS ========== */
.quick-actions-section {
  margin-bottom: var(--space-2xl);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-title i {
  color: var(--primary-color);
  font-size: var(--text-lg);
}

.section-divider {
  height: 1px;
  background-color: var(--border-color);
  margin-top: var(--space-md);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.quick-actions-grid>a {
  text-decoration: none;
}

.action-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.action-card:hover .card-icon {
  transform: scale(1.1);
  color: var(--primary-color);
}

.action-card:hover .card-wave {
  transform: translateX(0);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  transition: var(--transition-normal);
}

.card-content {
  margin-bottom: var(--space-md);
}

.card-content h3 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
  transform: translateX(-50%);
  transition: var(--transition-slow);
}

/* ========== TABELA DE ESTOQUE ========== */
.inventory-section {
  margin-bottom: var(--space-2xl);
}

.search-tools {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.search-input {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input i {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.search-input input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-2xl);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.search-input input:focus ~ .input-border {
  width: 100%;
}

.select-wrapper {
  position: relative;
  min-width: 200px;
}

.select-wrapper i {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.select-wrapper select {
  width: 100%;
  padding: var(--space-sm) var(--space-2xl) var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.select-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.select-wrapper select:focus ~ .select-border {
  width: 100%;
}

.table-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.table-responsive {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Suave no iOS */
  scrollbar-width: thin; /* Para Firefox */
  scrollbar-color: var(--primary-color) var(--bg-secondary); /* Para Firefox */
}

/* Personalização da scrollbar para Webkit (Chrome, Safari) */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.table-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.premium-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

.premium-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-wrapper.scrolling {
  box-shadow: inset 0 -10px 10px -10px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 5px;
  right: 10px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}

.table-wrapper:hover .scroll-indicator {
  opacity: 1;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

.premium-table th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.premium-table th:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.premium-table th i {
  margin-left: var(--space-xs);
  font-size: var(--text-xs);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.premium-table th.asc i,
.premium-table th.desc i {
  opacity: 1;
  color: var(--primary-color);
}

.premium-table th.asc i::before {
  content: "\f0de";
}

.premium-table th.desc i::before {
  content: "\f0dd";
}

.premium-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr:hover td {
  background-color: rgba(67, 97, 238, 0.03);
}

.id-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.stock-level {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stock-bar {
  flex: 1;
  height: 6px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--border-radius-full);
  transition: var(--transition-slow);
}

.bar-fill.normal {
  background-color: var(--success-color);
}

.bar-fill.warning {
  background-color: var(--warning-color);
}

.bar-fill.critical {
  background-color: var(--danger-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-badge i {
  font-size: var(--text-xs);
}

.status-badge.normal {
  background-color: rgba(76, 201, 240, 0.1);
  color: var(--success-color);
}

.status-badge.warning {
  background-color: rgba(248, 150, 30, 0.1);
  color: var(--warning-color);
}

.status-badge.critical {
  background-color: rgba(249, 65, 68, 0.1);
  color: var(--danger-color);
}

/* ========== RODAPÉ ========== */
.premium-footer {
  background-color: var(--bg-secondary);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.footer-logo span {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.theme-switcher {
  display: flex;
  gap: var(--space-xs);
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-btn i {
  font-size: var(--text-sm);
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.theme-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ========== BOTÕES ========== */
.premium-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.premium-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: var(--transition-fast);
}

.premium-btn:hover::after {
  opacity: 1;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.primary-btn:hover {
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
  transform: translateY(-2px);
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
  .quick-actions-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
      padding: 0 var(--space-md);
  }
  
  .premium-nav {
      gap: var(--space-md);
  }
  
  .nav-menu {
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      background-color: var(--bg-primary);
      flex-direction: column;
      gap: 0;
      padding: var(--space-md);
      box-shadow: var(--shadow-lg);
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition: var(--transition-normal);
      z-index: 999;
  }
  
  .nav-menu.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
  }
  
  .nav-item {
      height: auto;
  }
  
  .nav-link {
      height: auto;
      padding: var(--space-md);
      border-radius: var(--border-radius-sm);
  }
  
  .link-underline {
      display: none;
  }
  
  .mobile-menu-btn {
      display: flex;
  }
  
  .user-profile {
      margin-left: 0;
  }
  
  .premium-main {
      padding: var(--space-xl) var(--space-md);
  }
  
  .search-tools {
      flex-direction: column;
  }
  
  .version-tag {
      top: 75px;
      right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .logo-title {
      display: none;
  }
  
  .quick-actions-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-container {
      flex-direction: column;
      gap: var(--space-md);
  }
  
  .footer-left {
      flex-direction: column;
      gap: var(--space-sm);
      text-align: center;
  }
}

/* ========== FORMULÁRIOS ========== */
.form-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.premium-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-label i {
  margin-right: var(--space-sm);
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-md);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.form-input:focus ~ .input-border {
  width: 100%;
}

.form-static {
  padding: var(--space-md);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.form-input[readonly] {
  padding: var(--space-md);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.select-wrapper {
  position: relative;
}

.select-wrapper i {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
}

.form-select {
  width: 100%;
  padding: 16px 16px 16px 16px !important;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-md);
  appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.select-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.form-select:focus ~ .select-border {
  width: 100%;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.secondary-btn {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.alert {
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 500;
}

.alert i {
  font-size: var(--text-lg);
}

.alert-success {
  background-color: rgba(76, 201, 240, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(249, 65, 68, 0.1);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

tr.status-verde {
  background-color: #d4edda;
  color: #155724;
}
tr.status-amarelo {
  background-color: #fff3cd;
  color: #856404;
}
tr.status-laranja {
  background-color: #ffd5a6;
  color: #8a4b08;
}
tr.status-vermelho {
  background-color: #f8d7da;
  color: #721c24;
}

.tv-mode-switcher {
  margin-left: 20px;
}

.tv-mode-btn {
  background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tv-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.tv-mode {
  overflow: hidden;
}

body.tv-mode .premium-header,
body.tv-mode .quick-actions-section,
body.tv-mode .section-header,
body.tv-mode .search-tools,
body.tv-mode .premium-footer,
body.tv-mode .version-tag,
body.tv-mode .update-notification {
  display: none !important;
}

body.tv-mode .premium-main {
  padding: 0;
  margin: 0;
  max-width: 100%;
}

body.tv-mode .inventory-section {
  padding: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

body.tv-mode .table-responsive {
  flex: 1;
  padding: 20px;
  background-color: #f8f9fa;
}

body.tv-mode .premium-table {
  font-size: 1.2rem;
}

body.tv-mode .premium-table th,
body.tv-mode .premium-table td {
  padding: 16px 24px;
}

body.tv-mode .table-wrapper {
  max-height: 100%;
  overflow: auto;
}

.tv-mode-overlay {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.tv-mode-overlay .tv-mode-btn {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.auto-refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    z-index: 1000;
}
.auto-refresh-indicator i {
    margin-right: 8px;
}

.destaque-suave {
  position: relative;
  transition: all 0.3s ease;
}

.destaque-suave::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #4361ee;
  border-radius: 4px;
  animation: pulse-suave 2s infinite;
  opacity: 0;
}

@keyframes pulse-suave {
  0% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1); }
}

.destaque-texto {
  font-weight: 600;
  color: #4361ee !important;
}

