:root {
  /* Cores baseadas no classificador_planilha.html */
  --accent: #de3163; /* Rosa-cereja */
  --accent-mid: #e55d84;
  --accent-soft: #ec89a6;
  --accent-light: rgba(222, 49, 99, 0.08);
  --accent-glow: rgba(222, 49, 99, 0.22);

  /* Fundos neutros */
  --bg-app: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-input: #f1f3f7;
  --bg-hover: #f8f9fb;

  /* Texto neutro profissional */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  --border-subtle: #e5e7eb;
  --border-focus: #de3163;

  /* Gradiente baseado no estilo rosa */
  --gradient-main: linear-gradient(135deg, #de3163 0%, #ec89a6 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: var(--transition);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.slogan {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-tertiary);
  text-transform: lowercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
  margin-left: 3.25rem;
  font-style: italic;
  display: block;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  margin-top: 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* Main Content Styling */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}

/* Header Styling */
.header-section {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.search-container input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-primary);
}

.search-container input:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.p-content {
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

/* Tabs Logic */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-pane h2::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 4px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-soft);
}

.tool-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.tool-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.access-btn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.access-btn:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.custom-solution-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-hover);
  color: var(--accent);
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane.active .tool-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Support Bubble */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { width: 80px; padding: 1rem 0.5rem; align-items: center; }
  .logo-text, .nav-item span, .slogan { display: none; }
  .nav-item { justify-content: center; }
}

@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 1rem; }
  .nav-group { flex-direction: row; overflow-x: auto; }
  .p-content { padding: 1.5rem; }
}
