:root {
    --color-cream: #FFF5ED;
    --color-blue: #4B64D1;
    --color-yellow: #FFCB1F;
    --color-green: #418464;
    --color-pink: #FFB4B4;
    --color-coral: #FF5F5F;
    --color-black: #000000;
    --color-grey-dark: #3E444F;
    --color-grey-medium: #505865;
    --color-grey-light: #ededed;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-cream);
    color: var(--color-black);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'moret', serif;
    font-weight: 600;
}

h1 {
    color: var(--color-black);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: var(--color-black);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3, h4 {
    font-size: 1.4rem;
}

h4 {
    margin-block-end: 0;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 400;
}

a:hover {
    text-decoration: underline;
}

pre {
    overflow: auto;
    border-radius: 4px;
    font-family: monospace;
}

blockquote {
    border: 1px solid var(--color-grey-light);
    color: white;
    border-radius: 0.4rem;
    box-shadow: .25rem .5rem 1rem 0 rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: var(--color-grey-dark);
    overflow: hidden;
}

blockquote h3 {
    font-family: monospace;
    background-color: var(--color-grey-medium);
    margin: 0;
    padding: 0.25rem 0;
    font-size: 1rem;
}


blockquote p code {
    padding: 0 12px;
    background-color: var(--color-grey-dark);
}

code {
    color: var(--color-blue);
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

p > code {
    background-color: var(--color-grey-light);
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

input, button, textarea {
    font-family: inherit;
    padding: 0.8rem;
    margin: 0.5rem 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

textarea {
    height: 200px;
    resize: vertical;
}

.button, button {
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button.primary {
    background-color: var(--color-blue);
    color: white;
    border: none;
}

.button.primary:hover {
    background-color: #3A51B9;
    transform: translateY(-2px);
}

.link-button {
    display: inline-block;
    background-color: var(--color-blue);
    color: white;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.link-button:hover {
    background-color: #3A51B9;
    transform: translateY(-2px);
}

.success {
    color: var(--color-green);
    padding: 0.8rem;
    background-color: rgba(65, 132, 100, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

.warning {
    color: var(--color-yellow);
    padding: 0.8rem;
    background-color: rgba(255, 203, 31, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

.error {
    color: var(--color-coral);
    padding: 0.8rem;
    background-color: rgba(255, 95, 95, 0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: white;
    color: var(--color-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    animation: slideInRight 0.3s ease-out, fadeOut 0.5s ease-out 3s forwards;
    max-width: 300px;
}

.toast.success {
    background-color: #edf7f0;
    color: var(--color-green);
    border-left: 3px solid var(--color-green);
}

.toast.error {
    background-color: #ffeeee;
    color: var(--color-coral);
    border-left: 3px solid var(--color-coral);
}

.toast svg {
    margin-right: 8px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Token display styling */
.token-display {
    margin-top: 1rem;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    border-left: 3px solid var(--color-green);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-blue);
    color: white;
    padding: 10px 15px;
}

.token-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.copy-btn {
    background: transparent;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: auto;
}

.copy-btn:hover {
    transform: translateY(-1px);
}

.copy-btn svg {
    margin-right: 6px;
}

.token-content {
    padding: 15px;
    font-family: monospace;
    background-color: #f8f9fa;
    overflow-x: auto;
    word-break: break-all;
    max-height: 120px;
    border-bottom: 1px solid #eee;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.user-info {
    padding: 15px;
    border-top: 1px solid #eee;
}

.user-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.user-info strong {
    font-weight: 500;
}

.alert-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    max-width: 350px;
    width: 90%;
}

.alert-dialog p {
    margin-bottom: 20px;
}

.alert-dialog button {
    background-color: var(--color-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    display: inline-block;
}

/* File input styling */
input[type="file"] {
    border: 1px dashed #ddd;
    padding: 0.8rem;
    background-color: #fcfcfc;
    cursor: pointer;
}

input[type="file"]:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Hide empty response containers */
.response-container {
    display: none;
}

.response-container.has-content {
    display: block;
    margin-top: 1rem;
}

a#swaggerLinkDisplay {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: white;
    background-color: var(--color-blue);
    border-radius: 6px;
    font-weight: 500;
    word-break: break-all;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

a#swaggerLinkDisplay:hover {
    background-color: #3A51B9;
    transform: translateY(-2px);
}

/* == Documentation Layout == */
.layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.sidebar {
    width: 250px;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    flex-shrink: 0;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'moret', serif;
    font-weight: 600;
    color: var(--color-black);
}

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

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sidebar a:hover {
    text-decoration: underline;
    color: #3A51B9; /* same as .button.primary:hover */
}

.content {
    flex: 1;
    min-width: 0;
}

.content .card {
    background-color: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Optional: highlight active link (can be JS-enhanced later) */
.sidebar a.active {
    font-weight: 600;
    color: var(--color-black);
    text-decoration: underline;
}


/* === Documentatie menu styling === */
.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.25rem;
}

.sidebar a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar a:hover {
    background-color: rgba(75, 100, 209, 0.1); /* light blue hover */
}

.sidebar li > ul {
    margin-left: 1rem;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    padding-left: 0.75rem;
    margin-top: 0.25rem;
}

.sidebar li {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-black);
}

.sidebar li > a {
    font-weight: 500;
}

.sidebar li > ul li > a {
    font-weight: 400;
    font-size: 0.92rem;
}

/* === Prism code block fixes === */

pre[class*="language-"],
code[class*="language-"] {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: none;
    color: inherit;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    tab-size: 4;
    hyphens: none;
    border-radius: 8px;
    overflow: auto;
}

pre {
    background: #F5F6F8 !important;
    padding: 1rem !important;
}

code {
    color: inherit !important;
    padding: .2em .4em;
    margin: 0;
    white-space: break-spaces;
    background-color: #818b981f;
    border-radius: 6px;
}

table {
    font-size: 0.8rem;
    width: 100%;
    color: white;
    border-radius: 0.4rem;
    box-shadow: .25rem .5rem 1rem 0 rgba(0, 0, 0, 0.1);
    background-color: var(--color-grey-dark);
    border-color: var(--color-grey-medium);
}

table thead {
    background-color: var(--color-grey-medium);
}

table th {
    padding: 0.25rem;
}

.error ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0 0;
}

.error ul li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}