.doc-container {
  min-height: 100vh;
  padding: 40px 0;
}

.doc-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 10px;
}

.doc-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.doc-header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.doc-sidebar {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.doc-sidebar h5 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.1rem;
}

.doc-sidebar .nav-link {
  padding: 10px 15px;
  color: #666;
  border-left: 3px solid transparent;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.doc-sidebar .nav-link:hover {
  background: #f8f9fa;
  color: #667eea;
  border-left-color: #667eea;
}

.doc-sidebar .nav-link.active {
  color: #667eea;
  background: #f0f3ff;
  border-left-color: #667eea;
  font-weight: 600;
}

.doc-content {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.doc-section {
  scroll-margin-top: 20px;
}

.doc-section h2 {
  color: #333;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #667eea;
  font-size: 1.8rem;
}

.doc-section h3 {
  color: #444;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.doc-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1rem;
}

.step-card {
  background: #f8f9ff;
  border-left: 4px solid #667eea;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
}

.step-number {
  background: #667eea;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.screenshot-wrapper {
  margin: 25px 0;
  border-radius: 8px;
  overflow: hidden;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.screenshot-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.alert-info-custom {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.alert-warning-custom {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.alert-success-custom {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.requirements-list {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin: 25px 0;
}

.requirements-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.requirements-list li:last-child {
  border-bottom: none;
}

.requirements-list li:before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  margin-right: 10px;
}

.btn-primary-custom {
  background: #667eea;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.permission-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 5px 5px 5px 0;
}

.screenshots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(386px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step-content {
  width: 100%;
}

.screenshots-container:has(.screenshot-wrapper) .screenshot-wrapper {
  margin: 0;
}
.app-details-list {
  margin-bottom: 12px;
}
.app-details-list li:not(:last-child) {
  margin-bottom: 12px;
}

.callback-link {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1c3147;
  padding: 12px 24px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  code {
    color: #98c379;
    padding-right: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.copy-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 16px;
  background: #314459 !important;
  color: #fff;
  font-size: 20px;
}
.mfp-image-holder .mfp-content {
  max-width: 65% !important;
}

.copy-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.copy-btn.copied {
  color: #28a745;
  pointer-events: none;
  transform: scale(1.2);
}

.copy-btn i {
  transition: all 0.3s ease;
}

@media (max-width: 1399px) {
  .doc-content {
    padding: 32px;
  }
  .doc-sidebar .nav-link {
    padding: 10px !important;
  }
  .doc-sidebar {
    padding: 20px 16px;
  }
  .mfp-image-holder .mfp-content {
    max-width: 80% !important;
  }
}

@media (max-width: 767px) {
  .screenshots-container {
    grid-template-columns: 1fr;
  }
  .doc-content {
    padding: 20px;
  }
  .mfp-image-holder .mfp-content {
    max-width: 90% !important;
  }
}

@media (max-width: 574px) {
  .step-card__wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .step-number {
    margin-right: 0;
  }
  .step-title {
    margin-bottom: 10px;
  }
  .mfp-image-holder .mfp-content {
    max-width: 100% !important;
  }
}
