/* Manual Page Styles - VisuaLeaf Documentation */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1e2024;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.manual-page {
  height: 100vh;
  background: #1e2024;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* PREMIUM HEADER */

.manual-page {

}

.premium-header {
  position: relative;
  flex-shrink: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(30, 30, 30, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #444444;
}

.header-gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399, #10b981, #059669);
  background-size: 200% 100%;
  animation: gradient-flow 8s linear infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 1280px) {
  .header-content {
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
}

.logo-container:hover {
  text-decoration: none !important;
}

.logo-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-glow {
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-container:hover .logo-glow {
  opacity: 1;
}

.logo-icon {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  background-color: currentColor;
  -webkit-mask-image: url('/assets/logo.svg');
  mask-image: url('/assets/logo.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  color: #10b981;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
}

.logo-text-accent {
  color: #e5e7eb;
}

.logo-container:hover .logo-icon {
  transform: scale(1.1);
}

.page-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item .nav-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  text-decoration: none !important;
}

.nav-item:hover .nav-icon {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }
}

.signin-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.signin-btn:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  text-decoration: none !important;
}

.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  text-decoration: none !important;
}

.btn-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-btn:hover .btn-gradient {
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: none;
  border-radius: 0.5rem;
  color: #10b981;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #1a1d21 !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #141619 !important;
}

.mobile-menu-header .mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #34d399 !important;
}

.mobile-menu-header .mobile-logo .logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #34d399 !important;
}

.mobile-menu-header .mobile-logo span {
  color: #34d399 !important;
}

.mobile-menu-header .mobile-logo .accent,
.mobile-menu-header .mobile-logo span .accent {
  color: #ffffff !important;
}

.mobile-menu-header .mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(16, 185, 129, 0.1) !important;
  border: none;
  border-radius: 0.5rem;
  color: #10b981 !important;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-header .mobile-close-btn:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
}

.mobile-menu-header .mobile-close-btn:active {
  background: rgba(16, 185, 129, 0.25) !important;
}

.mobile-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3f4147 #1a1d21 !important;
}

.mobile-nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav::-webkit-scrollbar-track {
  background: #1a1d21;
}

.mobile-nav::-webkit-scrollbar-thumb {
  background-color: #3f4147;
  border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
  background-color: #4e5158;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.mobile-nav-section-header,
.mobile-nav .mobile-nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-section-header:hover {
  color: #34d399 !important;
}

.mobile-nav-section-header::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.mobile-nav-section.collapsed .mobile-nav-section-header::after {
  transform: rotate(-90deg);
}

.mobile-nav-section.collapsed .mobile-nav-item {
  display: none;
}

.mobile-nav .mobile-nav-item,
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-section .mobile-nav-item {
  padding-left: 1.25rem;
}

.mobile-nav .mobile-nav-item i,
.mobile-nav-item i {
  font-size: 1rem;
  color: #34d399 !important;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-item:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mobile-nav-item:hover i {
  color: #10b981;
}

.mobile-nav-item:active {
  background: rgba(16, 185, 129, 0.2);
}

.mobile-badge {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.mobile-menu-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-actions .mobile-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-actions .mobile-signin-btn i {
  color: #34d399 !important;
}

.mobile-menu-actions .mobile-signin-btn:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-cta-btn i {
  color: white;
}

.mobile-cta-btn:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* MANUAL CONTAINER */
.manual-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1e2024;
  overflow: hidden;
}

/* MANUAL HEADER */
.manual-header {
  flex-shrink: 0;
  background: #1a1d21;
  border-bottom: 1px solid #2c2f35;
  padding: 1rem 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
}

.sidebar-toggle:hover {
  background: #374151;
  color: white;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 0.5rem;
}

.header-icon i {
  color: white;
  font-size: 1.125rem;
}

.header-info {
  display: flex;
  flex-direction: column;
}
.header-info h1 {

}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.header-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* MANUAL BODY */
.manual-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  background: #1e2024;
}

/* SIDEBAR */
.manual-sidebar {
  display: flex;
  flex-direction: column;
  background: #1a1d21;
  border-right: 1px solid #2c2f35;
  overflow-y: auto;
  transition: width 0.3s ease;
  width: 280px;
  scrollbar-width: thin;
  scrollbar-color: #3f4147 #1a1d21;
}

.manual-sidebar::-webkit-scrollbar {
  width: 8px;
}

.manual-sidebar::-webkit-scrollbar-track {
  background: #1a1d21;
}

.manual-sidebar::-webkit-scrollbar-thumb {
  background-color: #3f4147;
  border-radius: 4px;
}

.manual-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #4e5158;
}

.sidebar-content {
  padding: 0.5rem 0;
}

/* Docs Search */
.sidebar-search {
  position: relative;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-search input {
  width: 100%;
  padding: 0.6rem 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.sidebar-search input::placeholder {
  color: #9ca3af;
}

.sidebar-search input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.sidebar-search .fa-search {
  position: absolute;
  left: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.8rem;
  pointer-events: none;
}

.sidebar-search .search-clear {
  position: absolute;
  right: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-search .search-clear.visible {
  opacity: 1;
}

.sidebar-search .search-clear:hover {
  color: #e5e7eb;
}

.sidebar-item.hidden,
.sidebar-section.hidden {
  display: none !important;
}

.sidebar-item.search-match {
  background: rgba(16, 185, 129, 0.1);
}

.sidebar-section.has-match .sidebar-section-items {
  display: block !important;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e5e7eb;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.sidebar-item:hover {
  background: #374151;
  color: white;
}

.sidebar-item.active {
  color: white;
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
}

.sidebar-section .sidebar-item.active {
  background: rgba(16, 185, 129, 0.15);
}

.sidebar-item-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-item-content.collapsed {
  justify-content: center;
}

.sidebar-item-content i {
  font-size: 0.75rem;
  color: #34d399;
}

.item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.sidebar-section-header:hover {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-section-header i:first-child {
  font-size: 0.875rem;
  color: #34d399;
}

.sidebar-section-header .section-toggle {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

.sidebar-section.collapsed .section-toggle {
  transform: rotate(-90deg);
}

.sidebar-section-items {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar-section.collapsed .sidebar-section-items {
  max-height: 0;
  opacity: 0;
}

.sidebar-section .sidebar-item {
  padding-left: 2rem;
  border-bottom: none;
}

.sidebar-section .sidebar-item:hover {
  background: #374151;
}

/* Fixed Tooltip for collapsed sidebar */
.sidebar-fixed-tooltip {
  display: none;
  position: fixed;
  transform: translateY(-50%);
  padding: 0.5rem 0.75rem;
  background: #1f2937;
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 9999;
}

.sidebar-fixed-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1f2937;
  border-left: none;
}

.active-indicator-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 2px 2px 0 0;
}

.active-indicator-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 3px 0 0 3px;
}

/* CONTENT AREA */
.manual-content-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #1e2024;
}

.content-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #1e2024;
}

/* Mobile overlay backdrop */
.mobile-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mobile-sidebar-backdrop {
    display: block;
  }
}

.mobile-sidebar-close {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: #374151;
  border: none;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
  background: #4b5563;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .manual-page {
    overflow-x: hidden;
  }

  .manual-content-area {
    padding: 0;
    overflow-x: hidden;
  }

  .manual-body {
    position: relative;
    overflow-x: hidden;
  }

  .manual-container {
    overflow-x: hidden;
  }

  .manual-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 280px !important;
    max-width: 85vw;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid #444444;
  }

  .manual-sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-sidebar-close {
    display: flex;
  }

  .header-content {
    padding: 1rem;
    gap: 1rem;
  }

  .manual-header {
    padding: 0.75rem 1rem;
  }

  .header-info {
    /*display: none;*/
  }

  .nav-menu {
    display: none;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .page-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  .logo-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .header-subtitle {
    font-size: 0.75rem;
  }

  .header-title {
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) {
  .mobile-sidebar-backdrop,
  .mobile-sidebar-close {
    display: none !important;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
