:root {
  --primary: #2563eb;
  --secondary: #0ea5e9;
  --accent: #8b5cf6;
  --dark: #0f172a;
  --light: #f8fafc;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  line-height: 1.7;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 150px 0 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 20px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.sidebar-nav {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-nav .nav-section {
  margin-bottom: 25px;
}

.sidebar-nav .section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.sidebar-nav .nav-link {
  color: var(--dark);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.sidebar-nav .nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
  padding-left: 20px;
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.content-section {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
}

.mini-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.badge-custom {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.badge-beta {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: white;
}

.badge-pro {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
}

.info-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.info-box.success {
  background: #f0fdf4;
  border-left-color: var(--success);
}

.info-box.warning {
  background: #fffbeb;
  border-left-color: var(--warning);
}

.info-box.danger {
  background: #fef2f2;
  border-left-color: var(--danger);
}

.info-box h6 {
  font-weight: 700;
  margin-bottom: 10px;
}

.code-block {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.code-block code {
  color: #e2e8f0;
}

.inline-code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  font-size: 0.9em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  transform: translateY(-5px);
}

.feature-card .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-card {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 10px;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
}

table tr:hover {
  background: #f8fafc;
}

.search-box {
  background: white;
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.breadcrumb-custom .breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 15px;
  overflow: hidden;
  margin: 20px 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-box {
  background: var(--gradient);
  color: white;
  padding: 40px;
  border-radius: 20px;
  margin-top: 50px;
  text-align: center;
}

.contact-box h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-box p {
  margin-bottom: 20px;
  opacity: 0.95;
}

footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 10px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--secondary);
  transform: translateY(-5px);
  color: white;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
  .sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
}
