/* Innov'Paie Documentation - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Sidebar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 20px;
}

/* Active nav item */
.nav-item.active {
  background: #fff7ed;
  border-left: 3px solid #f57312;
  color: #f57312;
  font-weight: 600;
}

.nav-item.active svg {
  color: #f57312;
}

.nav-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f8fafc;
  border-left-color: #e2e8f0;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(203, 213, 225, 0.1) 10px,
    rgba(203, 213, 225, 0.1) 20px
  );
}

.screenshot-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Feature cards */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: #f57312;
}

/* Info boxes */
.info-box {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
}

.warning-box {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.success-box {
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
}

.tip-box {
  border-left: 4px solid #f57312;
  background: #fff7ed;
}

/* Step indicators */
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f57312, #ea580c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Table styles */
.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.doc-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #475569;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table tr:hover td {
  background: #f8fafc;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Search */
.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item:hover {
  background: #f8fafc;
}

/* Print styles */
@media print {
  .sidebar, .mobile-header, .search-container {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Breadcrumb separator */
.breadcrumb-sep::before {
  content: '/';
  margin: 0 8px;
  color: #94a3b8;
}

/* Anchor links */
h2[id], h3[id] {
  scroll-margin-top: 80px;
}

h2[id]:hover .anchor-link,
h3[id]:hover .anchor-link {
  opacity: 1;
}

.anchor-link {
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 8px;
  color: #94a3b8;
  text-decoration: none;
}

.anchor-link:hover {
  color: #f57312;
}
