* {
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fc 0%, #eef2f6 100%);
  padding-top: 80px;
}

/* ==================== NAVBAR ENHANCED ==================== */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Brand styling */
.navbar-brand {
  padding: 0;
  margin: 0;
  font-weight: 800;
}

.brand-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-icon-wrapper i {
  font-size: 1.4rem;
  color: white;
}

.navbar-brand:hover .brand-icon-wrapper {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1a1a2e;
}

.brand-name span {
  color: #0d6efd;
  position: relative;
}

.brand-name span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, transparent);
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6c757d;
  letter-spacing: normal;
  margin-top: -2px;
}

/* Navigation links */
.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0.15rem;
  color: #4a5568;
  border-radius: 40px;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 6px 15px 6px 15px !important;
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd !important;
}

.nav-link:hover i {
  transform: translateY(-1px);
}

.nav-link.active {
  background: #0d6efd;
  color: white !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.nav-link.active i {
  transform: none;
}

/* Status badge */
.status-badge {
  background: #f8f9fa;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2c3e50;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-badge i:first-child {
  color: #10b981;
  font-size: 0.8rem;
}

.status-badge i.bi-dot {
  font-size: 0.5rem;
  color: #cbd5e1;
}

/* ==================== SIDEBAR ==================== */
.sidebar-card {
  background: white;
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  padding: 1.2rem 0.8rem;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-card .nav-link {
  border-radius: 10px;
  margin-bottom: 6px;
  padding: 10px 14px;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.sidebar-card .nav-link i {
  width: 26px;
  margin-right: 8px;
  font-size: 1.1rem;
}

.sidebar-card .nav-link:hover {
  background: #f1f5f9;
  transform: translateX(4px);
  color: #0d6efd;
}

.sidebar-card .nav-link.active {
  background: linear-gradient(135deg, #10131c, #1b2233);
  color: white;
  box-shadow: 0 6px 14px -6px #10131c;
}

/* ==================== CARDS ==================== */
.main-content-card,
.privacy-card {
  background: white;
  border-radius: 2rem;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12);
  border: none;
}

.main-content-card {
  min-height: 620px;
}

.privacy-card {
  padding: 2rem;
}

/* ==================== ADS ==================== */
.ad-container {
  background: #f8fafc;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  text-align: center;
  padding: 0.8rem;
  margin: 1rem 0;
}

.ad-placeholder {
  background: #f1f5f9;
  border-radius: 16px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ==================== HEADERS & TYPOGRAPHY ==================== */
.tool-header {
  border-bottom: 3px solid #eef2ff;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.tool-header h2,
.privacy-header h1 {
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b, #0d6efd);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tool-header h2 {
  font-size: 1.6rem;
}

.privacy-header {
  border-bottom: 3px solid #eef2ff;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* ==================== COMPONENTS ==================== */
.result-area {
  background: #f8fafc;
  border-radius: 20px;
  padding: 1rem;
  font-family: monospace;
  border: 1px solid #e2e8f0;
  word-break: break-all;
}

.btn-copy {
  background: #eef2ff;
  border: none;
  border-radius: 40px;
  padding: 4px 16px;
  font-size: 0.75rem;
  transition: 0.2s;
}

.btn-copy:hover {
  background: #0d6efd;
  color: white;
}

.btn-primary {
  background-color: #10131c !important;
  border-color: #10131c !important;
}

.fade-tool {
  transition: opacity 0.2s ease-in-out;
}

/* ==================== SEO & LEGAL ==================== */
.descricao-seo {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 15px;
  border-left: 3px solid #0d6efd;
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  background: #f8fafc;
}

.legal-warning {
  font-size: 0.7rem;
  color: #856404;
  background: #fff3cd;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 12px;
  border-left: 3px solid #ffc107;
}

/* ==================== FORMS & UTILITIES ==================== */
.checkbox-group label {
  margin-right: 15px;
  cursor: pointer;
  display: inline-block;
}

.tool-item.hidden {
  display: none;
}

/* ==================== PRIVACY PAGE ==================== */
.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid #0d6efd;
}

.privacy-section p,
.privacy-section li {
  color: #475569;
  line-height: 1.6;
}

.privacy-section ul {
  padding-left: 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
}

.badge-lgpd {
  background: #e8f0fe;
  color: #0d6efd;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
}

.update-date {
  background: #f8fafc;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==================== FOOTER ==================== */
.footer-modern {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Títulos do Footer */
.footer-title-modern {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: #1a1a2e;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-decoration: none;
}

.footer-title-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, transparent);
  border-radius: 2px;
}

.footer-title-modern i {
  color: #fff;
  font-size: 1.4rem;
}

/* Texto do Footer */
.footer-text-modern {
  font-size: 0.85rem;
  color: #5b6e8c;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Lista de Links */
.footer-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list-modern li {
  margin-bottom: 0.6rem;
}

.footer-list-modern a {
  color: #5b6e8c;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-list-modern a::before {
  content: '→';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: all 0.2s ease;
  color: #0d6efd;
  font-size: 0.8rem;
}

.footer-list-modern a:hover {
  color: #0d6efd;
  transform: translateX(8px);
  padding-left: 0;
}

.footer-list-modern a:hover::before {
  opacity: 1;
  transform: translateX(-4px);
}

/* Divider */
.footer-divider {
  margin: 1.5rem 0 1rem;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, #e9ecef 0%, #e9ecef 40%, transparent 100%);
}

/* Copyright */
.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #5b6e8c;
}

.footer-copyright a {
  color: #5b6e8c;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-copyright a::before {
  content: '•';
  margin-right: 0.25rem;
  color: #cbd5e1;
}

.footer-copyright a:hover {
  color: #0d6efd;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-title-modern {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }
  
  .footer-title-modern::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }
  
  .footer-text-modern {
    text-align: center;
  }
  
  .footer-list-modern {
    text-align: center;
  }
  
  .footer-list-modern a::before {
    display: none;
  }
  
  .footer-list-modern a:hover {
    transform: none;
  }
  
  .footer-copyright {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
  
  .footer-copyright a::before {
    display: none;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }

  .navbar {
    padding: 0.5rem 0;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
  
  .brand-tagline {
    display: none;
  }
  
  .brand-icon-wrapper {
    width: 35px;
    height: 35px;
  }
  
  .brand-icon-wrapper i {
    font-size: 1.2rem;
  }
  
  .nav-link {
    padding: 0.6rem 1rem;
    margin: 0.2rem 0;
  }
  
  .status-badge {
    justify-content: center;
    margin-top: 0.75rem;
    width: fit-content;
  }
  
  .navbar-collapse {
    padding: 1rem 0 0.5rem;
  }

  .sidebar-card {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

  .privacy-card {
    padding: 1.5rem;
  }
}