@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Remover autofill amarelo */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #0F172A !important;
}

[x-cloak] {
  display: none !important;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pulse-dot {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom logs */

.tab-active {
  border-bottom: 3px solid #3B82F6;
  color: #3B82F6;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-alert {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.severity-1 {
  color: #6b7280;
}

.severity-2 {
  color: #3b82f6;
}

.severity-3 {
  color: #f59e0b;
}

.severity-4 {
  color: #ef4444;
}

.severity-5 {
  color: #dc2626;
  font-weight: bold;
}




/* Skeleton Otimizado - Mantém visual completo mas mais leve */
#auth-loading {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: sk 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes sk {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Header */
.skeleton-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.skeleton-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-logo-icon {
  width: 40px;
  height: 40px;
  background: #3B82F6;
  border-radius: 12px;
}

.skeleton-logo-text {
  width: 100px;
  height: 20px;
}

.skeleton-user {
  width: 150px;
  height: 20px;
  display: none;
}

/* Layout */
.skeleton-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.skeleton-sidebar {
  width: 256px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 1rem;
  display: none;
}

.skeleton-menu-item {
  height: 40px;
  margin-bottom: 8px;
}

.skeleton-main {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Stats */
.skeleton-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skeleton-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.skeleton-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.skeleton-card-value {
  width: 60px;
  height: 32px;
  margin-bottom: 8px;
}

.skeleton-card-label {
  width: 100px;
  height: 16px;
}

/* Charts */
.skeleton-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.skeleton-chart {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.skeleton-chart-title {
  width: 180px;
  height: 24px;
  margin-bottom: 1rem;
}

.skeleton-chart-body {
  width: 100%;
  height: 250px;
}

/* Table */
.skeleton-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.skeleton-table-title {
  width: 150px;
  height: 24px;
  margin-bottom: 1rem;
}

.skeleton-table-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.skeleton-table-row:last-child {
  border-bottom: none;
}

.skeleton-table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-table-content {
  flex: 1;
}

.skeleton-table-text {
  width: 100%;
  height: 16px;
  margin-bottom: 6px;
}

.skeleton-table-text:last-child {
  width: 60%;
  margin-bottom: 0;
}

/* Search */
.skeleton-search {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skeleton-search-input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
}

.skeleton-search-button {
  width: 140px;
  height: 44px;
  border-radius: 12px;
}




/* Animations */
#auth-loading.fade-out {
  animation: fadeOut 0.15s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#main-content {
  opacity: 0;
  animation: fadeIn 0.10s ease-out 0.15s forwards;
}

/* Responsive */
@media (min-width: 640px) {
  .skeleton-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skeleton-user {
    display: block;
  }

  .skeleton-sidebar {
    display: block;
  }

  .skeleton-main {
    padding: 2rem;
  }

  .skeleton-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .skeleton-charts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.l-m10{
      left: -10px;
}

.min-h-screen {
  min-height: 100vh;
}

