/* 
   LUX Neo Sidebar Layout CSS
   Sidebar layout styles for the LUX Neo website
*/

/* Main Layout Structure */
.site-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: rgba(var(--dark-850), 0.95);
  border-right: 1px solid rgba(var(--dark-600), 0.3);
  position: fixed;
  top: 0; /* Go all the way to the top */
  left: 0;
  height: 100vh; /* Full viewport height */
  overflow-y: auto;
  z-index: var(--z-fixed);
  transition: transform 0.3s ease;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  width: calc(100% - 280px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Sidebar Navigation - More compact */
.sidebar-nav {
  padding: 10px 0; /* Reduced from 20px to 10px */
}

.sidebar-section {
  margin-bottom: 15px; /* Reduced from 30px to 15px */
}

.sidebar-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgb(var(--dark-400));
  text-transform: uppercase;
  padding: 0 20px;
  margin-bottom: 5px; /* Reduced from 10px to 5px */
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item {
  margin-bottom: 1px; /* Reduced from 2px to 1px */
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 6px 20px; /* Reduced from 10px to 6px */
  color: rgb(var(--dark-300));
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background-color: rgba(var(--dark-700), 0.5);
  color: rgb(var(--dark-100));
}

.sidebar-nav-link.active {
  background-color: rgba(var(--dark-700), 0.7);
  color: rgb(var(--dark-100));
  border-left-color: rgb(var(--brand-blue-rgb));
}

/* Domain section active state */
.sidebar-nav-link.active.domain-link {
  border-left-color: rgb(var(--entity-domain-rgb));
}

/* Marketplace section active state */
.sidebar-nav-link.active.marketplace-link {
  border-left-color: rgb(var(--entity-marketplace-rgb));
}

/* Content section active state */
.sidebar-nav-link.active.content-link {
  border-left-color: rgb(var(--entity-client-rgb));
}

/* Deployment section active state */
.sidebar-nav-link.active.deployment-link {
  border-left-color: rgb(var(--entity-deployment-rgb));
}

/* Client section active state */
.sidebar-nav-link.active.client-link {
  border-left-color: rgb(var(--entity-client-rgb));
}

.sidebar-nav-icon {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Domain section icon color */
.domain-link .sidebar-nav-icon {
  color: rgb(var(--entity-domain-rgb));
}

/* Marketplace section icon color */
.marketplace-link .sidebar-nav-icon {
  color: rgb(var(--entity-marketplace-rgb));
}

/* Content section icon color */
.content-link .sidebar-nav-icon {
  color: rgb(var(--entity-client-rgb));
}

/* Deployment section icon color */
.deployment-link .sidebar-nav-icon {
  color: rgb(var(--entity-deployment-rgb));
}

/* Client section icon color */
.client-link .sidebar-nav-icon {
  color: rgb(var(--entity-client-rgb));
}

/* Responsive Sidebar */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: var(--z-fixed);
  width: 40px;
  height: 40px;
  background-color: rgba(var(--dark-800), 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--dark-600), 0.3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: rgb(var(--dark-200));
  transition: all 0.3s ease;
}

/* Modified Header for Sidebar Layout */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(var(--dark-900), 0.95);
  border-bottom: 1px solid rgba(var(--dark-600), 0.3);
  height: 60px; /* Fixed height for consistency */
}

.site-header .container {
  padding-left: 20px; /* Standard padding */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo positioning for sidebar layout */
.logo {
  position: relative;
  margin-left: 0; /* Ensure logo is flush with the left edge */
}

/* Header info positioning */
.header-info {
  margin-right: 20px; /* Add some right margin to the header info */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    top: 0;
    height: 100vh;
    padding-top: 60px; /* Add padding for mobile to account for header */
    width: 280px; /* Keep consistent width */
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .site-header .container {
    padding-left: var(--space-4);
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .sidebar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .sidebar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Extra compact styles for mobile */
@media (max-width: 640px) {
  .sidebar {
    padding-top: 50px; /* Slightly less padding for very small screens */
  }
}
