/* Documentation Page Styles */
.doc-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.doc-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(33, 128, 141, 0.08) 0%, rgba(50, 184, 198, 0.08) 100%);
    border-radius: 16px;
    margin-bottom: 48px;
}

.doc-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--color-text, #134252);
}

.doc-hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary, #62696c);
    margin-bottom: 8px;
}

.doc-hero .tagline {
    font-style: italic;
    color: var(--color-text-secondary, #62696c);
    font-size: 1rem;
}

.doc-content {
    background: rgba(252, 252, 249, 0.97);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(19, 52, 59, 0.06);
    line-height: 1.7;
    margin-left: 10%;
    margin-right: 10%;
}

.doc-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(33, 128, 141, 0.2);
    color: var(--color-text, #134252);
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content h3 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-text, #134252);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-content p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.doc-content li {
    margin-bottom: 8px;
}

.doc-content code {
    background: rgba(33, 128, 141, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--color-text, #134252);
}

.doc-content pre {
    background: #1f2121;
    color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: #f5f5f5;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(19, 52, 59, 0.04);
}

.doc-table thead {
    background: rgba(33, 128, 141, 0.12);
}

.doc-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text, #134252);
    border-bottom: 2px solid rgba(33, 128, 141, 0.2);
}

.doc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(94, 82, 64, 0.1);
}

.doc-table tbody tr:hover {
    background: rgba(50, 184, 198, 0.04);
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    background: rgba(50, 184, 198, 0.04);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #21808d;
}

.feature-item strong {
    color: var(--color-text, #134252);
}

/* Enhanced Endpoint Card with improved contrast and pop effect */
.endpoint-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(33, 128, 141, 0.25);
    box-shadow: 0 4px 12px rgba(19, 52, 59, 0.12),
        0 2px 4px rgba(33, 128, 141, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.endpoint-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #21808d 0%, #32b8c6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.endpoint-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(19, 52, 59, 0.18),
        0 6px 12px rgba(33, 128, 141, 0.15),
        0 0 0 1px rgba(33, 128, 141, 0.1);
    border-color: rgba(33, 128, 141, 0.4);
}

.endpoint-card:hover::before {
    opacity: 1;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    color: #1d7481;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(33, 128, 141, 0.1);
}

.endpoint-default {
    background: linear-gradient(135deg, rgba(33, 128, 141, 0.12) 0%, rgba(50, 184, 198, 0.08) 100%);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    margin: 10px 0;
    border: 1px solid rgba(33, 128, 141, 0.2);
    font-weight: 500;
}

.endpoint-description {
    color: #4a5759;
    margin-top: 10px;
    font-weight: 500;
}

.info-box {
    background: rgba(50, 184, 198, 0.08);
    border-left: 4px solid #32b8c6;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text, #134252);
}

/* Enhanced Error Table with improved contrast and pop effect */
.error-table {
    box-shadow: 0 6px 16px rgba(192, 21, 47, 0.12),
        0 2px 6px rgba(255, 84, 89, 0.08);
    border: 2px solid rgba(192, 21, 47, 0.15);
    transition: all 0.3s ease;
}

.error-table:hover {
    box-shadow: 0 10px 24px rgba(192, 21, 47, 0.18),
        0 4px 10px rgba(255, 84, 89, 0.12);
    border-color: rgba(192, 21, 47, 0.25);
}

.error-table thead {
    background: linear-gradient(135deg, rgba(255, 84, 89, 0.15) 0%, rgba(192, 21, 47, 0.12) 100%);
}

.error-table th {
    color: #c0152f;
    font-weight: 700;
    border-bottom: 3px solid rgba(192, 21, 47, 0.3);
    text-shadow: 0 1px 2px rgba(255, 84, 89, 0.1);
}

.error-table tbody tr {
    transition: all 0.2s ease;
}

.error-table tbody tr:hover {
    background: rgba(255, 84, 89, 0.08);
    transform: scale(1.01);
}

.error-table td:first-child {
    font-weight: 700;
    color: #c0152f;
    font-family: 'Courier New', monospace;
}

.doc-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, rgba(33, 128, 141, 0), rgba(33, 128, 141, 0.3), rgba(33, 128, 141, 0));
    margin: 40px 0;
}

.doc-content a {
    color: #21808d;
    text-decoration: none;
    border-bottom: 1px solid rgba(33, 128, 141, 0.3);
    transition: border-color 0.2s;
}

.doc-content a:hover {
    border-bottom-color: #21808d;
}

@media (max-width: 768px) {
    .doc-hero h1 {
        font-size: 2rem;
    }

    .doc-content {
        padding: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .endpoint-card {
        padding: 20px;
    }
}