/*!
 * ParkEZ Documentation - Modern UI
 * Purple/Violet theme matching ParkEZ branding
 */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    background-color: #f8f7ff;
    min-height: 100vh;
    line-height: 1.7;
}

::selection {
    background: #5D54F2;
    color: #fff;
}

::-moz-selection {
    background: #5D54F2;
    color: #fff;
}

a {
    color: #453CC7;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2D2599;
    text-decoration: underline;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(93, 84, 242, 0.10);
    margin: 12px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(93, 84, 242, 0.20);
}

p, ul, ol {
    margin: 14px 0;
    line-height: 1.8;
}

li {
    list-style: none;
}

strong, b {
    font-weight: 600;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #5D54F2, #9E97FF, transparent);
    margin: 20px 0;
}

hr.notop {
    margin-top: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0eeff;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5D54F2, #9E97FF);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #453CC7;
}

/* ===== Sidebar ===== */
#documenter_sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #1c1a3d 0%, #2a2658 50%, #322c66 100%);
    z-index: 100;
    padding: 0;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(69, 60, 199, 0.15);
    display: flex;
    flex-direction: column;
}

#documenter_sidebar #documenter_logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    text-decoration: none;
}

#documenter_sidebar #documenter_logo img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    margin: 0;
    background: transparent;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#documenter_sidebar #documenter_logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 16px rgba(93, 84, 242, 0.4);
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #9E97FF, #5D54F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1;
}

#documenter_sidebar ul {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

#documenter_sidebar ul::-webkit-scrollbar {
    width: 4px;
}
#documenter_sidebar ul::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

#documenter_sidebar ul li {
    margin-bottom: 2px;
}

#documenter_sidebar ul > li > a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.72);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: transparent;
    text-decoration: none;
    line-height: 1.4;
}

#documenter_sidebar ul > li > a:hover {
    background: rgba(93, 84, 242, 0.18);
    color: #fff;
    border-left-color: #9E97FF;
    text-decoration: none;
    padding-left: 20px;
}

#documenter_sidebar ul > li > a.current {
    background: linear-gradient(135deg, #5D54F2, #453CC7);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(93, 84, 242, 0.4);
    text-decoration: none;
}

/* Submenu */
#documenter_sidebar ul li ul {
    margin: 4px 0 8px 12px;
    padding: 0 !important;
    display: block;
}

#documenter_sidebar ul li ul li {
    margin-bottom: 1px;
}

#documenter_sidebar ul li ul li a {
    display: block;
    padding: 7px 12px 7px 20px;
    color: rgba(255,255,255,0.55);
    font-size: 12.5px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    background: transparent;
    text-decoration: none;
}

#documenter_sidebar ul li ul li a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border-left-color: #9E97FF;
    text-decoration: none;
}

#documenter_sidebar ul li ul li a.current {
    background: rgba(93, 84, 242, 0.22);
    color: #fff;
    border-left-color: #5D54F2;
    text-decoration: none;
}

#documenter_copyright {
    padding: 12px 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.32);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    background: rgba(0,0,0,0.15);
}

/* ===== Main Content ===== */
#documenter_content {
    margin-left: 300px;
    padding: 40px 50px 100px;
    max-width: 1100px;
    min-height: 100vh;
}

/* ===== Cover / Intro Section ===== */
#documenter_cover {
    padding-top: 20px !important;
}

/* ===== Hero Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #5D54F2 0%, #453CC7 50%, #2D2599 100%);
    border-radius: 16px;
    padding: 40px 45px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(93, 84, 242, 0.30);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-banner h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero-banner p,
#documenter_content .hero-banner p {
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
}

.hero-banner h1,
#documenter_content .hero-banner h1 {
    color: #ffffff;
}

.hero-banner .version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* ===== Quick Info Cards ===== */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 25px 0 30px;
}

.quick-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(93, 84, 242, 0.08);
    border: 1px solid #eae7ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 84, 242, 0.15);
}

.quick-info-card .card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.quick-info-card .card-label {
    font-size: 12px;
    color: #8892a6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.quick-info-card .card-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.quick-info-card .card-value a {
    color: #453CC7;
    font-weight: 600;
}

/* ===== Section Styling ===== */
#documenter_content section {
    padding-top: 30px;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 8px;
}

#documenter_content h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
}

#documenter_content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#documenter_content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 25px 0 14px;
    padding-left: 14px;
    border-left: 4px solid #5D54F2;
}

#documenter_content h4 {
    font-size: 19px;
    font-weight: 600;
    color: #2d3748;
    margin: 20px 0 12px;
}

#documenter_content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin: 18px 0 10px;
}

#documenter_content h6 {
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    margin: 14px 0;
}

#documenter_content p {
    margin: 0 0 16px;
    color: #4a5568;
}

/* ===== Lists ===== */
#documenter_content ol li {
    list-style: decimal;
    margin-left: 30px;
    margin-bottom: 6px;
    color: #4a5568;
}

#documenter_content ul li {
    list-style: none;
    margin-left: 0;
    margin-bottom: 8px;
    padding: 4px 0 4px 22px;
    position: relative;
    color: #4a5568;
}

#documenter_content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #5D54F2, #9E97FF);
    border-radius: 50%;
}

#documenter_content ul li span {
    font-weight: 600;
    color: #2d3748;
}

#documenter_content ul li span.green {
    color: #2D2599;
    font-weight: 500 !important;
    background: #F0EEFF;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 14px;
}

#documenter_content ul ul {
    padding: 4px 0 4px 10px !important;
    margin: 0;
}

#documenter_content ul ul li::before {
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    top: 14px;
}

#documenter_content a {
    color: #453CC7;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(69, 60, 199, 0.35);
    transition: all 0.3s ease;
}

#documenter_content a:hover {
    border-bottom-color: #453CC7;
    text-decoration: none;
}

/* ===== Code Blocks ===== */
pre {
    margin: 14px 0 20px !important;
    max-width: 100%;
    white-space: pre-wrap;
    border: none !important;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    color: #e2e8f0 !important;
    background: #1f1b3a !important;
    padding: 18px 22px !important;
    tab-size: 2 !important;
    line-height: 1.7 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    word-break: break-all;
    word-wrap: break-word;
    display: block;
    overflow: auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #5D54F2 !important;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

pre code {
    padding: 0;
    font-size: inherit !important;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
}

:not(pre) > code {
    padding: 2px 8px;
    font-size: 13px !important;
    color: #453CC7;
    background-color: #F0EEFF;
    border-radius: 6px;
    border: 1px solid #d8d2ff;
}

pre .string {
    color: #a5d6a7 !important;
}

pre .keyword {
    color: #d6bcfa !important;
}

/* ===== Info & Warning Boxes ===== */
.info-box {
    padding: 18px 22px;
    background: linear-gradient(135deg, #F5F3FF, #EEEAFF);
    border-radius: 12px;
    border-left: 4px solid #5D54F2;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(93, 84, 242, 0.08);
}

.info-box h5 {
    font-size: 15px;
    color: #2D2599;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-box p,
.info-box ul li {
    color: #3D3380;
    font-size: 14px;
}

.info-box ul li::before {
    background: #5D54F2 !important;
}

.warning-box.info-box {
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border-color: #e53e3e;
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.08);
}

.warning-box.info-box h5 {
    color: #c53030;
}

.warning-box ul li,
.warning-box p,
.warning-box span {
    color: #c53030 !important;
}

.warning-box ul li::before {
    background: #e53e3e !important;
}

/* ===== Success Box ===== */
.success-box {
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0fff4, #f0fdf4);
    border-radius: 12px;
    border-left: 4px solid #38a169;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(56, 161, 105, 0.08);
}

.success-box h5 {
    color: #276749;
    font-size: 15px;
}

.success-box p,
.success-box li {
    color: #276749;
}

/* ===== Image Row ===== */
.image-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.image-row img {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 8px);
}

/* ===== Step Cards ===== */
.step-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(93, 84, 242, 0.06);
    border: 1px solid #eae7ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 84, 242, 0.12);
}

.step-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5D54F2, #453CC7);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.feature-item {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(93, 84, 242, 0.06);
    border: 1px solid #eae7ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 84, 242, 0.12);
}

.feature-item .feature-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.feature-item p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* ===== Apps Grid (ParkEZ specific) ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.app-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(93, 84, 242, 0.07);
    border: 1px solid #eae7ff;
    border-top: 4px solid #5D54F2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(93, 84, 242, 0.18);
}

.app-card .app-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5D54F2, #453CC7);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.app-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.app-card p {
    font-size: 13.5px;
    color: #4a5568;
    margin: 0 0 10px;
}

.app-card .app-meta {
    font-size: 12px;
    color: #8892a6;
    margin-top: 8px;
}

/* ===== Requirements Table ===== */
.requirements-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(93, 84, 242, 0.08);
    margin: 16px 0;
}

.requirements-table thead th {
    background: linear-gradient(135deg, #1c1a3d, #322c66);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.requirements-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #eae7ff;
    font-size: 14px;
    color: #4a5568;
    background: #fff;
}

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

.requirements-table tbody tr:hover td {
    background: #F5F3FF;
}

/* ===== TOC Box ===== */
.toc-box {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(93, 84, 242, 0.07);
    border: 1px solid #eae7ff;
}

.toc-box h4 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #1a1a2e;
}

.toc-box ol {
    counter-reset: toc;
    padding-left: 0;
    margin: 0;
}

.toc-box ol li {
    counter-increment: toc;
    list-style: none !important;
    margin-left: 0 !important;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
}

.toc-box ol li::before {
    content: counter(toc) ".";
    color: #5D54F2;
    font-weight: 700;
    margin-right: 8px;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* ===== Changelog ===== */
.changelog-entry {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 18px 0;
    box-shadow: 0 2px 12px rgba(93, 84, 242, 0.06);
    border: 1px solid #eae7ff;
    border-left: 4px solid #5D54F2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.changelog-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 84, 242, 0.12);
}

.changelog-entry.latest {
    border-left-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #fff 40%);
}

.changelog-version {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.changelog-date {
    font-size: 13px;
    font-weight: 500;
    color: #4a4870;
    background: #EEEAFF;
    padding: 3px 12px;
    border-radius: 20px;
}

.changelog-entry.latest .changelog-date {
    background: #c6f6d5;
    color: #276749;
}

.badge-latest {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #38a169, #48bb78);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-category {
    font-size: 14px;
    font-weight: 600;
    color: #5D54F2;
    margin: 14px 0 6px;
    padding-left: 0;
    border-left: none;
}

.changelog-entry ul {
    margin: 6px 0 0;
}

.changelog-entry ul li {
    font-size: 14px;
    padding: 3px 0 3px 22px;
    color: #4a5568;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #5D54F2, #453CC7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(93, 84, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 84, 242, 0.4);
    text-decoration: none;
    color: #fff;
}

/* ===== Alert Boxes ===== */
#documenter_content div.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 14px;
}

#documenter_content div.alert-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

#documenter_content div.alert-danger,
#documenter_content div.alert-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

#documenter_content div.alert-info {
    background: #F5F3FF;
    border: 1px solid #d8d2ff;
    color: #2D2599;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #5D54F2, #453CC7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(93, 84, 242, 0.35);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 84, 242, 0.5);
    text-decoration: none;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    #documenter_sidebar {
        width: 260px;
    }
    #documenter_content {
        margin-left: 260px;
        padding: 30px 25px 80px;
    }
}

@media (max-width: 768px) {
    #documenter_sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
    }
    #documenter_sidebar ul {
        height: auto;
        max-height: 300px;
    }
    #documenter_content {
        margin-left: 0;
        padding: 20px 16px 60px;
    }
    .hero-banner {
        padding: 28px 22px;
    }
    .hero-banner h1 {
        font-size: 24px;
    }
    .quick-info {
        grid-template-columns: 1fr;
    }
    .image-row {
        flex-direction: column;
    }
    .image-row img {
        max-width: 100%;
    }
    .feature-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    #documenter_sidebar {
        display: none;
    }

    #documenter_content {
        margin-left: 0;
        padding: 20px;
    }

    .hero-banner {
        border: 2px solid #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    img {
        page-break-inside: avoid;
    }

    .back-to-top {
        display: none;
    }
}

/* ===================================================================
   Upgrade Guide — gh-steps cards, step screenshots, lightbox
   Mirrors the MyTaxi documentation format so the ParkEZ Upgrade Guide
   renders with the same step-card / screenshot styling.
   =================================================================== */
.gh-steps {
    padding-left: 22px;
    margin: 10px 0 22px;
}
.gh-steps > li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.step-image {
    margin: 14px 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    list-style: none;
    max-width: 640px;
}
.step-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: zoom-in;
}
.step-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 24px 16px;
    background: #fafafa;
    border: 1px dashed #d1d5db;
}
.step-image-placeholder::before {
    content: '\1F4F7';
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.55;
}
.step-image-placeholder::after {
    content: 'Screenshot coming soon';
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.anchor-offset {
    scroll-margin-top: 80px;
}

/* ===== Step screenshot lightbox ===== */
.step-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 22, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.step-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.step-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    cursor: default;
    object-fit: contain;
}
.step-lightbox-caption {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 0 16px;
}
.step-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}
body.lightbox-open {
    overflow: hidden;
}

/* ===== Upgrade Guide — each step rendered as a card ===== */
#upgrade-guide > h4 {
    margin: 28px 0 0;
    padding: 13px 22px;
    background: linear-gradient(90deg, #5D54F2, #4A41D9);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid #4A41D9;
    border-bottom: none;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.25) inset;
}
#upgrade-guide > h4 + ol.gh-steps {
    background: #ffffff;
    border: 1px solid #ece8de;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 18px 26px 20px;
    margin: 0 0 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
#upgrade-guide > h4 + ol.gh-steps > li {
    margin-bottom: 8px;
}
#upgrade-guide > h4 + ol.gh-steps > li:last-child {
    margin-bottom: 0;
}
#upgrade-guide > h4 + ol.gh-steps .step-image {
    margin: 14px auto 0;
    border-color: #f0ede5;
    background: #ffffff;
    max-width: 580px;
}
#upgrade-guide > h4 + .gh-row {
    background: #ffffff;
    border: 1px solid #ece8de;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 18px 20px 20px;
    margin: 0 0 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    gap: 14px;
}
#upgrade-guide > h4 + .gh-row .gh-row-card {
    background: #fbfaff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
#upgrade-guide > h4 + .gh-row .gh-row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* gh-row generic card layout */
.gh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 14px 0 22px;
}
.gh-row-card {
    position: relative;
    flex: 1 1 220px;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #ece8de;
    border-radius: 14px;
    padding: 22px 18px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gh-row-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #5D54F2, #4A41D9);
    opacity: 0.9;
}
.gh-row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #c9c2fb;
}
.gh-row-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5D54F2, #4A41D9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(93, 84, 242, 0.32);
    border: 3px solid #fff;
    margin-bottom: 12px;
}
#documenter_content .gh-row-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
}
.gh-row-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* ===================================================================
   Sidebar — collapsible group menus (accordion)
   Mirrors the Go4Food sidebar behaviour: any sidebar <li> that owns
   a nested <ul> renders a chevron caret on its parent link and only
   expands when the user clicks it (or auto-opens when a child link
   becomes current).
   =================================================================== */
#documenter_nav ul.sub-list {
    /* Children of a collapsible group start hidden — the JS toggles
       them open. Indented so the hierarchy reads cleanly. */
    display: none;
    margin: 0 0 4px 0;
    padding: 0 0 0 16px;
    list-style: none;
}

#documenter_nav li.open > ul.sub-list {
    display: block;
}

/* Caret indicator on the parent link. Pure-CSS chevron so no extra
   markup or icon font is required. */
#documenter_nav a.has-sub {
    position: relative;
    padding-right: 28px;
}

#documenter_nav a.has-sub::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.7;
}

#documenter_nav li.open > a.has-sub::after {
    /* Pointing down when expanded */
    transform: translateY(-30%) rotate(-135deg);
    opacity: 1;
}

#documenter_nav a.has-sub:hover::after {
    opacity: 1;
}

/* ===== Application screens gallery ===== */
.screen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 14px 0 26px;
}
.screen-card { margin: 0; }
.screen-card .step-image { margin: 0; max-width: none; }
.screen-card .step-image img { max-height: 400px; }
.screen-card .step-image-placeholder { min-height: 220px; }
.screen-card figcaption {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}
.annotated-figure {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
    gap: 20px;
    align-items: start;
    margin: 16px 0 28px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}
.annotated-figure h4 { grid-column: 1 / -1; margin: 0; }
.annotated-figure .step-image { margin: 0; max-width: none; background: #fff; }
.annotation-legend { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: ann; }
.annotation-legend > li {
    position: relative;
    padding: 9px 0 9px 34px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #374151;
    border-bottom: 1px dashed #e5e7eb;
}
.annotation-legend > li:last-child { border-bottom: none; }
.annotation-legend > li::before {
    counter-increment: ann;
    content: counter(ann);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e7000b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 820px) {
    .annotated-figure { grid-template-columns: 1fr; }
}


/* ===== Copy button on code blocks ===== */
pre { position: relative; }
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}
pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { color: #111827; }
.code-copy-btn.copied { color: #16a34a; border-color: #16a34a; opacity: 1; }

/* ===== Sidebar filter ===== */
#nav_filter_wrap { padding: 12px 16px 4px; }
#nav_filter {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    outline: none;
}
#nav_filter::placeholder { color: #8b93a5; }
#nav_filter:focus { border-color: rgba(255, 255, 255, 0.35); }
