:root {
    --primary-color: rgba(134, 97, 255, 0.8);
    --secondary-color: rgba(88, 195, 255, 0.6);
    --glass-blur: blur(16px);
    --error-color: #ff2222;
    --success-color: #6cff89;
    --text-color: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* ========== Global Styles ========== */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(45deg, #2a2356, #1a3657, #0d2838);
    color: var(--text-color);
    padding: 0;
    overflow-x: hidden;
}

/* ========== Header Styles ========== */
h1, h2, h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem 0;
    color: rgba(255, 255, 255, 0.95);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1rem 0 1.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: var(--text-color);
}

/* ========== Container and Layout ========== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

.container {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 2rem 4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 4px 24px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    margin: 2rem auto;
    width: 80%;
    max-width: 1200px;
    transition: transform 0.3s ease;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

/* ========== Home Button ========== */
.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.home-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* ========== Endpoint Styles ========== */
.endpoint {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.endpoint:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ========== Table Styles ========== */
.response-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.response-table th,
.response-table td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
}

.response-table th {
    background: linear-gradient(90deg,
    var(--primary-color),
    var(--secondary-color)
    );
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.response-table tr {
    background: rgba(255, 255, 255, 0.05);
}

.response-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

.response-table tr:hover {
    background: rgba(134, 97, 255, 0.15);
}

/* ========== List Styles ========== */
ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: none;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg,
    var(--primary-color),
    var(--secondary-color)
    );
    border-radius: 50%;
}

/* ========== Particles Background ========== */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle,
    rgba(134, 97, 255, 0.1) 0%,
    rgba(88, 195, 255, 0.05) 100%
    );
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-left: 2.5rem;
        text-align: left;
    }

    main {
        padding: 0 1rem 2rem 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .endpoint {
        padding: 1.5rem;
    }

    .home-button {
        padding: 10px 16px;
    }

    .home-button span {
        display: none;
    }

    .response-table th,
    .response-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    pre {
        padding: 1rem;
    }

    .endpoint {
        padding: 1rem;
    }

    .response-table th,
    .response-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}