/* Main Layout Styles */

.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--prestige-off-white);
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: var(--prestige-white);
  border-right: 1px solid var(--prestige-light-gray);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--prestige-light-gray);
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--prestige-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--prestige-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prestige-white);
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-lg) 0;
  overflow-y: auto;
}

.sidebar-nav-section {
  margin-bottom: var(--space-lg);
}

.sidebar-nav-title {
  padding: 0 var(--space-lg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--prestige-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  color: var(--prestige-charcoal);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  gap: var(--space-sm);
}

.sidebar-nav-item:hover {
  background: var(--prestige-off-white);
  color: var(--prestige-black);
}

.sidebar-nav-item.active {
  background: var(--prestige-off-white);
  color: var(--prestige-black);
  font-weight: 600;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--prestige-gold);
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--prestige-light-gray);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--prestige-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prestige-white);
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-user-info {
  flex: 1;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--prestige-black);
  display: block;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--prestige-gray);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: var(--prestige-white);
  border-bottom: 1px solid var(--prestige-light-gray);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-bar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--prestige-black);
  margin: 0;
}

.top-bar-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--prestige-gray);
}

.top-bar-breadcrumb a {
  color: var(--prestige-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-bar-breadcrumb a:hover {
  color: var(--prestige-black);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--prestige-light-gray);
  background: var(--prestige-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: var(--prestige-off-white);
  border-color: var(--prestige-gray);
}

.icon-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--prestige-red);
  color: var(--prestige-white);
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--prestige-light-gray);
  background: var(--prestige-white);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: var(--space-sm) var(--space-md);
  }

  .top-bar-title {
    font-size: 1.25rem;
  }

  .content-area {
    padding: var(--space-md);
  }

  .top-bar-breadcrumb {
    display: none;
  }
}
