/* Art in Skin — Estrutura de Layout Responsivo (Desktop + Mobile Shell) */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Desktop */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-paint-pink);
  flex-shrink: 0;
}

.sidebar-logo svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.sidebar-brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-link.active {
  background: var(--grad-card);
  color: var(--text-main);
  border: 1px solid var(--border-paint);
  box-shadow: 0 4px 15px rgba(255, 46, 147, 0.15);
}

.nav-link.active svg {
  color: var(--paint-magenta);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Área Principal de Conteúdo */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Header Top */
.app-header {
  height: var(--header-height);
  padding: 0 1.5rem;
  background: rgba(19, 23, 38, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-title {
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.page-content {
  padding: 1.5rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Bottom Navigation (Mobile Shell / Android App) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(19, 23, 38, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 60;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  font-size: 0.72rem;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item.active {
  color: var(--paint-magenta);
}

.bottom-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(255, 46, 147, 0.6));
}

/* Responsividade Mobile */
@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
    padding-bottom: var(--bottom-nav-height);
  }
  .mobile-bottom-nav {
    display: block;
  }
  .page-content {
    padding: 1rem 0.75rem;
  }
  .hide-on-mobile {
    display: none !important;
  }
}
