﻿/* Container */
.api-doc-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Header */
.api-doc-header {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 50px !important; /* Increased from 50px to 70px */
    color: #5e5db3;
    position: relative;
}

    .api-doc-header::after {
        content: '';
        width: 80px;
        height: 4px;
        background-color: #7e7dd4;
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* Sections */
.api-section {
    margin-bottom: 50px;
}

    .api-section h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
        color: #5e5db3;
        position: relative;
    }

        .api-section h2::after {
            content: '';
            width: 60px;
            height: 3px;
            background-color: #7e7dd4;
            position: absolute;
            bottom: -10px;
            left: 0;
            border-radius: 2px;
        }

/* Code Blocks */
.api-code-block {
    background: linear-gradient(135deg, #e0f7fa, #b3e5fc); /* Blue gradient */
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    position: relative;
}

    .api-code-block code {
        color: #333;
        background-color: transparent;
        padding: 0;
        font-size: 1em;
    }

    .api-code-block::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 20px;
        width: 30px;
        height: 30px;
        background: #0288d1; /* Deep Blue */
        border-radius: 50%;
        box-shadow: 15px 0 0 #03a9f4, 30px 0 0 #81d4fa; /* Light Blue shadows */
    }

/* Parameters List */
.api-parameter-list {
    list-style-type: none;
    padding-left: 0;
}

    .api-parameter-list li {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .api-parameter-list strong {
        color: #5e5db3;
    }

    .api-parameter-list em {
        color: #777;
    }

/* API URL */
.api-url code {
    color: #5e5db3;
    font-weight: bold;
}

@media screen and (max-width: 1500px) {
    .api-doc-container {
        margin: 10px auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-doc-container {
        margin: 10px auto;
        padding: 20px 20px;
    }

    .api-doc-header {
        font-size: 2.2em;
    }

    .api-section h2 {
        font-size: 1.6em;
    }

    .api-code-block {
        padding: 20px;
    }
}
