/* Demo Page CSS */
.demo-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f7;
  min-height: 100vh;
}

/* Demo Navigation */
.demo-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.demo-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.back-button {
  color: #007AFF !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  border: 2px solid #007AFF !important;
  background: transparent !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.back-button:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #0056CC !important;
  border-color: #0056CC !important;
}

.demo-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.logo-icon {
  font-size: 24px;
  color: #007AFF;
}

.demo-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-nav-cta {
  background: transparent !important;
  border: 2px solid #007AFF !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-weight: 500 !important;
  color: #007AFF !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.demo-nav-cta:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #0056CC !important;
  border-color: #0056CC !important;
}

.demo-nav-link {
  color: #007AFF !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
}

.demo-nav-link:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #0056CC !important;
}

/* Demo Header */
.demo-header {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 120px 0 60px;
  margin-top: 60px;
}

.demo-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.demo-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
}

.demo-subtitle {
  font-size: 21px;
  color: #6e6e73;
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 500;
}

.feature-icon {
  color: #007AFF;
  font-size: 18px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.feature-icon .anticon {
  font-size: 18px;
  color: #007AFF;
}

/* Demo Content */
.demo-content {
  background: #ffffff;
  min-height: calc(100vh - 200px);
  position: relative;
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.demo-content .ant-layout {
  min-height: calc(100vh - 200px);
  border-radius: 20px 20px 0 0;
  background: #ffffff;
}

.demo-content .ant-layout-sider {
  border-radius: 20px 0 0 0;
  background: #ffffff;
  border-right: 1px solid #e5e5e7;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.demo-content .ant-layout-content {
  border-radius: 0 20px 0 0;
  background: #ffffff;
  padding: 16px;
}

/* Ensure the sidebar is visible and properly styled */
.demo-content .ant-layout-sider-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
}

.demo-content .ant-layout-sider {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
}

/* Demo Footer */
.demo-footer {
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  color: #ffffff;
  padding: 80px 0;
}

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

.demo-footer-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.demo-footer-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.demo-footer-subtitle {
  font-size: 18px;
  color: #a1a1a6;
  margin: 0 0 32px 0;
}

.demo-footer-cta {
  background: transparent !important;
  border: 2px solid #007AFF !important;
  border-radius: 8px !important;
  padding: 16px 32px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  height: auto !important;
  color: #007AFF !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.demo-footer-cta:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #0056CC !important;
  border-color: #0056CC !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-title {
    font-size: 36px;
  }

  .demo-subtitle {
    font-size: 18px;
  }

  .demo-features {
    flex-direction: column;
    gap: 16px;
  }

  .demo-footer-title {
    font-size: 28px;
  }

  .demo-nav-container {
    flex-direction: column;
    gap: 16px;
    height: auto;
    padding: 16px 24px;
  }

  .demo-header {
    padding: 140px 0 60px;
  }
}
