/* Nixx Social Assistant - Premium SaaS Design System (Vercel/Linear/Stripe-Inspired) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --nixx-primary: #2563eb;
  --nixx-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --nixx-primary-hover: #1d4ed8;
  --nixx-success: #22c55e;
  --nixx-warning: #f59e0b;
  --nixx-danger: #ef4444;
  --nixx-dark-bg: #0b0f17;
  --nixx-sidebar-bg: #0d1117;
  --nixx-sidebar-border: #161b22;
  --nixx-sidebar-text: #8b949e;
  --nixx-sidebar-hover-bg: #161b22;
  --nixx-sidebar-active-bg: rgba(37, 99, 235, 0.15);
  --nixx-sidebar-active-text: #58a6ff;
  --nixx-main-bg: #f8fafc;
  --nixx-card-bg: #ffffff;
  --nixx-border: #e2e8f0;
  --nixx-border-light: #f1f5f9;
  --nixx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --nixx-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --nixx-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --nixx-radius: 16px;
  --nixx-radius-sm: 10px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--nixx-main-bg);
  color: #1e293b;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Wrapper Principal */
#app-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar Fixo Desktop */
.nixx-sidebar {
  width: 270px;
  background-color: var(--nixx-sidebar-bg);
  border-right: 1px solid var(--nixx-sidebar-border);
  color: var(--nixx-sidebar-text);
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1040;
  display: flex;
  flex-direction: column;
}

.nixx-sidebar .brand-header {
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--nixx-sidebar-border);
}

.nixx-sidebar .brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--nixx-primary-gradient);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.online-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--nixx-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.nixx-sidebar .nav-link {
  color: var(--nixx-sidebar-text);
  padding: 0.7rem 1rem;
  margin: 0.15rem 0.8rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nixx-sidebar .nav-link:hover {
  color: #f0f6fc;
  background-color: var(--nixx-sidebar-hover-bg);
}

.nixx-sidebar .nav-link.active {
  color: var(--nixx-sidebar-active-text);
  background-color: var(--nixx-sidebar-active-bg);
  font-weight: 600;
}

.nixx-sidebar .nav-link i {
  font-size: 1.1rem;
  opacity: 0.85;
}

.nixx-sidebar .nav-link.active i {
  color: var(--nixx-primary);
  opacity: 1;
}

/* Header Navbar */
.nixx-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--nixx-border);
  padding: 0.85rem 2rem;
  height: 70px;
  z-index: 1030;
}

.search-global-input {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.9rem 0.45rem 2.4rem;
  font-size: 0.875rem;
  width: 260px;
  transition: all 0.2s ease;
}

.search-global-input:focus {
  background-color: #ffffff;
  border-color: var(--nixx-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
  width: 320px;
}

/* Card Premium Nixx */
.card-nixx {
  background: var(--nixx-card-bg);
  border: 1px solid var(--nixx-border);
  border-radius: var(--nixx-radius);
  box-shadow: var(--nixx-shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-nixx:hover {
  box-shadow: var(--nixx-shadow-hover);
  border-color: #cbd5e1;
}

.card-hero-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--nixx-radius);
  color: #ffffff;
  padding: 2.25rem;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.card-hero-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

/* Card Próxima Postagem Destaque */
.card-next-post-featured {
  border: 2px solid rgba(37, 99, 235, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--nixx-radius);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.08);
}

.card-next-post-featured:hover {
  border-color: var(--nixx-primary);
}

/* Timeline Vertical Moderno */
.timeline-vertical-saas {
  position: relative;
  padding-left: 1.75rem;
}

.timeline-vertical-saas::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background-color: var(--nixx-border);
}

.timeline-item-saas {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item-saas:last-child {
  margin-bottom: 0;
}

.timeline-dot-saas {
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--nixx-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Botões Personalizados */
.btn-primary-gradient {
  background: var(--nixx-primary-gradient);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-soft-primary {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--nixx-primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-soft-primary:hover {
  background-color: var(--nixx-primary);
  color: #ffffff;
}

.stat-icon-saas {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Microinterações e Animações Fade In */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade Mobile */
@media (max-width: 991.98px) {
  .nixx-sidebar {
    display: none;
  }
  .nixx-navbar {
    padding: 0.85rem 1rem;
  }
}
