.demo-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.demo-section {
  margin-bottom: 48px;
  
  h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
  }
}

.demo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.demo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  
  h4 {
    background: #f7fafc;
    padding: 16px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
  }
}

.dashboard-demo-container {
  height: 400px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8f9fa;
  
  &--interactive {
    height: 600px;
    border: 2px solid #4299e1;
    border-radius: 8px;
    margin-top: 16px;
  }
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  
  label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    
    select,
    input[type="checkbox"] {
      padding: 4px 8px;
      border: 1px solid #d2d6dc;
      border-radius: 4px;
      font-size: 0.875rem;
      
      &:focus {
        outline: 2px solid #4299e1;
        outline-offset: 2px;
      }
    }
    
    input[type="checkbox"] {
      width: auto;
      margin-top: 4px;
    }
  }
}

// Demo content styling for dashboard shell slots
.demo-content {
  padding: 20px;
  
  h4, h5 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #2d3748;
  }
  
  p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #4a5568;
  }
  
  ul {
    margin-bottom: 16px;
    
    li {
      margin-bottom: 8px;
      line-height: 1.5;
      color: #4a5568;
    }
  }
}

// Sidebar demo styling
nav[slot="sidebar"] {
  h5 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
  }
  
  h6 {
    margin: 16px 0 8px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    
    li {
      margin-bottom: 8px;
      
      span {
        display: block;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #4a5568;
        
        &:hover {
          background: #edf2f7;
          color: #2d3748;
        }
        
        &.active {
          background: #4299e1;
          color: white;
          font-weight: 500;
        }
      }
    }
  }
  
  .sidebar-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
  }
}

// Demo buttons
.demo-button {
  background: #4299e1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
  
  &:hover {
    background: #3182ce;
  }
  
  &:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
  }
  
  &.primary {
    background: #38a169;
    
    &:hover {
      background: #2f855a;
    }
  }
}

.demo-button-sm {
  background: transparent;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  
  &:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
  }
  
  &:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
  }
}

// Content area styling
.content-area {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 16px 0;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metric-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

.chart-placeholder {
  background: #ffffff;
  padding: 40px;
  border-radius: 6px;
  text-align: center;
  color: #a0aec0;
  font-size: 1.125rem;
  border: 1px solid #e2e8f0;
  margin-top: 16px;
}

.user-list,
.project-list {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 16px;
}

.user-item,
.project-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
  
  &:last-child {
    border-bottom: none;
  }
  
  &:hover {
    background: #f8f9fa;
  }
}

.settings-groups {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 16px;
}

.setting-group {
  margin-bottom: 20px;
  
  &:last-child {
    margin-bottom: 0;
  }
  
  h6 {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
  }
  
  label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
    
    input[type="checkbox"] {
      margin: 0;
    }
  }
}

.action-buttons {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

// Notification styling
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  color: #2b6cb0;
  font-size: 0.875rem;
  
  .dismiss-btn {
    background: none;
    border: none;
    color: #2b6cb0;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    &:hover {
      background: #bee3f8;
      border-radius: 50%;
    }
  }
}

// Footer styling
.footer-detailed {
  display: flex;
  justify-content: space-between;
  width: 100%;
  
  .footer-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

// Usage information
.usage-info {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  
  h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 1.125rem;
  }
  
  ul {
    margin-bottom: 24px;
    
    li {
      margin-bottom: 8px;
      line-height: 1.6;
      color: #4a5568;
    }
  }
  
  code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #2d3748;
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .demo-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-demo-container {
    &--interactive {
      height: 500px;
    }
  }
  
  .demo-controls {
    flex-direction: column;
    gap: 12px;
    
    label {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
}

@media (max-width: 480px) {
  .demo-container {
    padding: 16px;
  }
  
  .dashboard-demo-container {
    height: 300px;
    
    &--interactive {
      height: 400px;
    }
  }
}