/* ================================================================
   🌊 LAYOUT - OCEAN BLUE EDITION
   ================================================================ */

/* --- CONTAINER --- */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100%;
  background: var(--bg-app);
}

/* --- SIDEBAR --- */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
  position: fixed;
  height: 100vh;
  z-index: 1000;
}

.sidebar:hover {
  border-color: var(--ocean);
}

/* --- AVATAR --- */
.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--card-shadow);
}

.avatar-img:hover {
  border-color: var(--ocean);
  box-shadow: 0 8px 32px var(--ocean-glow);
  transform: scale(1.02);
}

#status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--bg-sidebar);
  background: var(--offline);
  transition: var(--transition);
}

/* --- MAIN CONTENT --- */
.main-content {
  margin-left: 260px;
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* --- HEADER --- */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.breadcrumb strong {
  color: var(--ocean-light);
  font-weight: 700;
}

/* --- STATS --- */
.top-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.top-stats:hover {
  border-color: var(--ocean);
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.45rem;
  font-weight: 800;
  color: var(--ocean-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* --- NAVEGAÇÃO --- */
.nav-category {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem 0.25rem;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
}

.nav-item:hover {
  background: var(--ocean-dim);
  color: var(--text-primary);
}

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

.nav-item.active .nav-icon {
  stroke: var(--ocean-light);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: var(--transition);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    bottom: -100%;
    top: auto;
    width: 100%;
    height: 75vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-right: none;
    border-top: 2px solid var(--ocean);
    padding: 1.5rem;
    z-index: 1001;
    box-shadow: 0 -8px 32px var(--card-shadow);
  }

  .sidebar.active {
    bottom: 0;
  }

  .sidebar::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: -0.5rem auto 1rem;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem 1.25rem;
  }

  .content-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .top-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    justify-content: center;
  }

  .stat-group {
    padding: 0.25rem 0.5rem;
    background: var(--bg-app);
    border-radius: var(--radius-sm);
    min-width: 55px;
  }

  .stat-divider {
    display: none;
  }

  .lyto-fab {
    display: flex !important;
  }

  .sidebar-overlay {
    display: block !important;
  }
}

/* --- FAB MOBILE --- */
.lyto-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--ocean);
  border: none;
  box-shadow: 0 4px 24px var(--ocean-glow);
  z-index: 1002;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lyto-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px var(--ocean-glow);
}

.fab-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fab-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
}

/* --- SCROLLBAR PERSONALIZADA --- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* --- UTILITÁRIOS --- */
.fadeIn {
  animation: fade-in 0.3s ease;
}

.slideUp {
  animation: slide-up 0.3s ease;
}
