/* Public, Vite-independent styles for /security/api-documentation (production-safe) */
html.api-docs-page,
html.api-docs-page body,
html.api-docs-page #app {
    margin: 0 !important;
    padding: 0 !important;
    background: #f6f8fb !important;
    min-height: 100% !important;
    overflow: auto !important;
}

html.api-docs-page .rightbar-overlay,
html.api-docs-page .vertical-menu,
html.api-docs-page #page-topbar,
html.api-docs-page .main-content,
html.api-docs-page footer#footer {
    display: none !important;
}

.api-docs {
    min-height: 100vh;
    background: #f6f8fb !important;
    color: #1f2d3d !important;
    font-family: Arial, Helvetica, sans-serif;
}

.api-docs__header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: #187fc2 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.api-docs__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.api-docs__brand strong {
    display: block;
    line-height: 1.2;
    color: #fff !important;
}

.api-docs__version {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    color: #fff !important;
}

.api-docs__header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.api-docs__header-actions .btn,
.api-docs__header-actions a {
    color: #187fc2 !important;
}

.api-docs__header-actions .btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
}

.api-docs__base {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.api-docs__layout {
    display: grid !important;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 72px);
}

.api-docs__sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    max-height: calc(100vh - 72px);
    overflow: auto;
    background: #fff !important;
    border-right: 1px solid #e6ebf1;
    padding: 1.25rem 0.75rem;
}

.api-docs__nav-title {
    margin: 1rem 0.5rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a97a8 !important;
}

.api-docs__sidebar a {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
}

.api-docs__sidebar a:hover,
.api-docs__sidebar a.active {
    background: #eef6fc !important;
    color: #187fc2 !important;
}

.api-docs__content {
    padding: 1.75rem 2rem 3rem;
    max-width: 980px;
    background: transparent !important;
}

.api-docs__section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 90px;
}

.api-docs__section h1 {
    font-size: 1.9rem !important;
    margin-bottom: 0.75rem !important;
    color: #1f2d3d !important;
}

.api-docs__section h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e6ebf1;
    color: #1f2d3d !important;
}

.api-docs .lead {
    font-size: 1.05rem;
    color: #475569 !important;
}

.api-docs .info-box {
    background: #fff !important;
    border-left: 4px solid #187fc2;
    border-radius: 6px;
    padding: 1rem 1.1rem;
    margin: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.api-docs .flow-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-docs .flow-steps li {
    background: #fff !important;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
}

.api-docs .endpoint {
    background: #fff !important;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.api-docs .endpoint__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.api-docs .endpoint__path {
    font-size: 1rem;
    color: #0f172a !important;
}

.api-docs .method,
.api-docs__sidebar .method {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.2rem 0.35rem;
    color: #fff !important;
}

.api-docs .method--post,
.api-docs__sidebar .method--post { background: #49cc90 !important; }
.api-docs .method--get,
.api-docs__sidebar .method--get { background: #61affe !important; }
.api-docs .method--put,
.api-docs__sidebar .method--put { background: #fca130 !important; }
.api-docs .method--delete,
.api-docs__sidebar .method--delete { background: #f93e3e !important; }

.api-docs pre {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-radius: 8px;
    padding: 1rem;
    overflow: auto;
    font-size: 0.82rem;
}

.api-docs .try-it {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1;
}

.api-docs__footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e6ebf1;
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

.api-docs table {
    width: 100%;
    background: #fff !important;
}

@media (max-width: 900px) {
    .api-docs__layout {
        grid-template-columns: 1fr;
    }

    .api-docs__sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e6ebf1;
    }

    .api-docs__content {
        padding: 1.25rem;
    }
}
