*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores Principais - Paleta Vibrante e Profissional */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #a855f7;
  --accent: #ec4899;
  --success: #10b981;

  /* Fundos */
  --app-bg: #f8fafc;
  --sidebar-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.7);

  /* Gradientes */
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  --hero-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.1);

  /* Bordas */
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--app-bg-start);
  color: #1a1033;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.app {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--app-bg-start), var(--app-bg-end));
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 20px;
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #ff8a80, #7c4dff);
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #5b4b7d;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item .nav-icon {
  width: 22px;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  background: #f3e9ff;
  color: #3b2a63;
}

.nav-separator {
  height: 1px;
  margin: 8px 0;
  background: #eee1ff;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #5b4b7d;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c4dff, #ff8a80);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.profile-name {
  font-size: 13px;
  font-weight: 500;
}

.profile-role {
  font-size: 11px;
  color: #8b7bab;
}

/* Dashboard header */
.dashboard-header {
  background: var(--hero-gradient);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  margin-bottom: 30px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- BANNERS PREMIUM (CARROSSEL COMPACTO) --- */
.banner-area {
  width: 100%;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 240px; /* Altura fixa para não ficar exagerado */
}

.banner-container {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  height: 100%;
}


.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 30px 40px;
  max-width: 65%;
  margin-right: auto;
}

.banner-content h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.banner-content p {
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: 0.9;
  line-height: 1.4;
}


.banner-navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: white;
  width: 30px;
  border-radius: 10px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .banner-area {
    aspect-ratio: 16 / 9;
  }

  .banner-content {
    padding: 20px;
    text-align: center;
    margin: 0 auto;
  }

  .banner-overlay {
    background: rgba(0, 0, 0, 0.4);
  }
}


.dashboard-title h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.dashboard-title p {
  font-size: 13px;
  opacity: 0.9;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-actions .icon-button {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: none;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.5s ease out forwards;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-premium);
  background: rgba(255, 255, 255, 0.9);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e1b4b;
}

.card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-outline {
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

/* Responsivo */
@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    z-index: 10;
    transition: left 0.25s ease;
  }

  .sidebar.sidebar-open {
    left: 0;
  }

  .main {
    padding: 14px 16px 24px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}