/* =========================================================
   YallaPay Docs — Polish Layer
   Targets existing class names. Adds modern, user-friendly UI
   without touching blade content.
   ========================================================= */

:root {
    --doc-text: #0f172a;
    --doc-muted: #64748b;
    --doc-border: #e2e8f0;
    --doc-bg-soft: #f8fafc;
    --doc-bg-code: #0f172a;
    --doc-primary: #0f172a;
    --doc-primary-soft: #f1f5f9;
    --doc-radius: 8px;
    --doc-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --doc-shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ---------- Main container ---------- */
.dashboard-main-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--doc-text);
    max-width: 100%;
    line-height: 1.65;
    padding-bottom: 80px;
}

/* ---------- Title ---------- */
.dashboard-title h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111827;
    margin: 0 0 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--doc-border);
}

/* ---------- Description / paragraphs ---------- */
.dashboard-des {
    background: var(--doc-bg-soft);
    border-left: 3px solid var(--doc-border);
    padding: 14px 18px;
    border-radius: 6px;
    margin: 20px 0;
}
.dashboard-des p {
    margin: 0;
    color: #374151;
    font-size: 14.5px;
}

/* ---------- HTTP Method + Route header ---------- */
.postman-route-type {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 0;
}
.postman-route-type h5 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.route-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--doc-primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ---------- Route URL block ---------- */
.route-url-link {
    background: var(--doc-bg-code);
    color: #e2e8f0;
    border-radius: var(--doc-radius);
    padding: 14px 18px;
    margin: 12px 0 24px;
    position: relative;
    font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    box-shadow: var(--doc-shadow);
    transition: box-shadow 0.2s;
}
.route-url-link:hover {
    box-shadow: var(--doc-shadow-lg);
}
.route-url-link p {
    margin: 0;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 500;
    word-break: break-all;
    padding-right: 70px;
}
.route-url-link p a,
.route-url-link a {
    color: #e2e8f0 !important;
    text-decoration: none;
}
.route-url-link p a:hover,
.route-url-link a:hover {
    color: #fff !important;
    text-decoration: underline;
}
.route-url-link::after { display: none; }
/* Copy button injected via JS */
.doc-copy-btn {
    position: absolute;
    right: 36px;
    top: 10px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.15s;
}
.doc-copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.doc-copy-btn.copied { background: var(--doc-success); border-color: var(--doc-success); color: #fff; }

/* ---------- Request/Response cards (Headers, Body) ---------- */
.postman-request-data-send-card {
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius);
    overflow: hidden;
    margin: 18px 0;
    background: #fff;
    box-shadow: var(--doc-shadow);
}
.request-data-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 18px;
    border-bottom: 1px solid var(--doc-border);
}
.request-data-header span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
}
.request-data-header span .small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 6px;
    font-size: 11px;
}
.request-data-body {
    padding: 0;
}
.request-data-body table {
    margin: 0;
}
.request-data-body table tr {
    border-bottom: 1px solid var(--doc-border);
}
.request-data-body table tr:last-child {
    border-bottom: none;
}
.request-data-body table td {
    padding: 12px 18px !important;
    font-size: 13.5px;
    border: none !important;
    vertical-align: top;
}
.request-data-body table td:first-child {
    color: var(--doc-text) !important;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 600 !important;
    background: var(--doc-bg-soft);
    width: 35% !important;
    border-right: 1px solid var(--doc-border) !important;
}
.request-data-body table td:last-child {
    color: #374151;
}
.request-data-body table td .text-info {
    background: var(--doc-primary-soft);
    color: var(--doc-muted) !important;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 4px;
    border: 1px solid var(--doc-border);
}
.request-data-body table td ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
    color: var(--doc-muted);
    font-size: 12.5px;
}
.request-data-body table td ul li {
    margin: 2px 0;
}

/* ---------- Step area (screenshots/walkthrough) ---------- */
.main-container-area {
    margin-top: 24px;
}
.step-area {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--doc-shadow);
    transition: box-shadow 0.2s;
}
.step-area:hover { box-shadow: var(--doc-shadow-lg); }
.step-title h5,
.step-title p {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--doc-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-title p { font-weight: 500; color: #374151; }
.step-body .step-img img {
    border-radius: 8px;
    border: 1px solid var(--doc-border);
    box-shadow: var(--doc-shadow);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}
.step-body .step-img h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--doc-text);
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    padding-left: 12px;
    border-left: 3px solid var(--doc-primary);
}

/* ---------- Quick start cards (homepage) ---------- */
.quickstart-title h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}
.quick-start-card .single-quick-start {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}
.quick-start-card .single-quick-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--doc-primary);
    opacity: 0;
    transition: opacity 0.15s;
}
.quick-start-card .single-quick-start:hover {
    transform: translateY(-2px);
    box-shadow: var(--doc-shadow-lg);
    border-color: var(--doc-primary);
}
.quick-start-card .single-quick-start:hover::before { opacity: 1; }
.quick-start-card .quick-start-img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--doc-bg-soft);
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-start-card .quick-start-img img {
    max-width: 36px;
    max-height: 36px;
}
.quick-start-card .quick-start-title h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}
.quick-start-card a {
    text-decoration: none !important;
    display: block;
}
.quick-start-card a:hover { text-decoration: none !important; }

/* ---------- Next page link ---------- */
.next-page-link-area {
    margin: 60px 0 40px !important;
    padding-top: 32px;
    border-top: 1px solid var(--doc-border);
}
.next-page-link {
    text-align: right;
}
.next-page-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--doc-primary);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform 0.15s;
}
.next-page-link a:hover {
    transform: translateX(2px);
    background: #1e293b;
}
.next-page-link .iconify {
    font-size: 18px;
}

/* ---------- Sidebar polish (if present) ---------- */
.docs-sidebar a,
.sidebar-area a {
    transition: color 0.15s;
}

/* ---------- Method badges: single neutral color ---------- */
.route-type[data-method], .route-type.route-get, .route-type.route-post,
.route-type.route-put, .route-type.route-delete { background: var(--doc-primary); }

/* ---------- Inline code-like text ---------- */
.dashboard-main-area code,
.dashboard-main-area kbd {
    background: var(--doc-bg-soft);
    color: var(--doc-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 500;
    border: 1px solid var(--doc-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dashboard-title h2 { font-size: 1.5rem; }
    .quickstart-title h4 { font-size: 1.2rem; }
    .step-area { padding: 16px; }
    .request-data-body table td { font-size: 12.5px; padding: 10px 12px !important; }
    .request-data-body table td:first-child { width: 40% !important; }
    .route-url-link p { font-size: 12px; padding-right: 60px; }
    .quick-start-card .single-quick-start { padding: 18px; gap: 14px; }
    .quick-start-card .quick-start-img { width: 48px; height: 48px; }
}

/* ---------- Hero (homepage intro) — minimal, single color ---------- */
.docs-hero {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-left: 3px solid var(--doc-primary);
    border-radius: var(--doc-radius);
    padding: 32px 28px;
    margin: 16px 0 32px;
}
.docs-hero .docs-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--doc-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}
.docs-hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.6px;
    color: var(--doc-text);
    line-height: 1.2;
}
.docs-hero p {
    margin: 0;
    font-size: 15px;
    color: var(--doc-muted);
    max-width: 640px;
    line-height: 1.65;
}
@media (max-width: 768px) {
    .docs-hero { padding: 24px 20px; }
    .docs-hero h1 { font-size: 1.4rem; }
}

/* ---------- Section heading ---------- */
.docs-section-h {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 36px 0 14px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.docs-section-h::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--doc-primary);
    border-radius: 2px;
}

/* ---------- Step number badge ---------- */
.docs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--doc-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---------- Callout boxes ---------- */
.docs-callout {
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
    border-left: 3px solid;
    font-size: 14px;
    line-height: 1.55;
    display: flex;
    gap: 12px;
}
.docs-callout .docs-callout-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}
.docs-callout .docs-callout-body { flex: 1; }
.docs-callout strong { display: block; margin-bottom: 4px; }
.docs-callout p { margin: 0; color: inherit; }

.docs-callout-info,
.docs-callout-tip,
.docs-callout-warn,
.docs-callout-danger {
    background: var(--doc-primary-soft);
    border-color: var(--doc-primary);
    color: var(--doc-text);
}

/* ---------- Code block (pre) ---------- */
.docs-code {
    background: var(--doc-bg-code);
    color: #e2e8f0;
    border-radius: var(--doc-radius);
    padding: 16px 18px;
    margin: 12px 0 24px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--doc-shadow);
}
.docs-code pre {
    margin: 0;
    color: #e2e8f0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    white-space: pre;
}
.docs-code .doc-copy-btn {
    top: 12px;
    right: 12px;
}

/* ---------- Prerequisites checklist ---------- */
.docs-prereq {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius);
    padding: 18px 22px;
    margin: 16px 0 28px;
    box-shadow: var(--doc-shadow);
}
.docs-prereq h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    margin: 0 0 12px;
}
.docs-prereq ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.docs-prereq li {
    padding: 6px 0 6px 26px;
    font-size: 14px;
    color: #374151;
    position: relative;
}
.docs-prereq li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--doc-success);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Step pill (used at top of each step) ---------- */
.docs-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--doc-primary-soft);
    color: var(--doc-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

/* ---------- TOC (mini in-page nav) ---------- */
.docs-toc {
    background: var(--doc-bg-soft);
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius);
    padding: 14px 18px;
    margin: 0 0 24px;
}
.docs-toc h6 {
    font-size: 12px;
    font-weight: 700;
    color: var(--doc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.docs-toc ul { margin: 0; padding: 0; list-style: none; }
.docs-toc li { padding: 4px 0; }
.docs-toc a {
    color: var(--doc-text);
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.docs-toc a:hover { color: var(--doc-primary); }
.docs-toc a::before { content: '→'; color: var(--doc-muted); font-size: 12px; }

/* ---------- Method + URL combined block (alternative to .postman-route-type) ---------- */
.docs-endpoint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

