.container.api_documentation { max-width: 1400px !important; }

/* Modern Typography */
h1 { 
    font-size: 42px; 
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3182ce;
    padding-bottom: 1rem;
}
h2 { 
    font-size: 32px; 
    font-weight: 600;
    color: #2d3748;
    margin: 2.5rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #3182ce;
}
h4 { 
    font-size: 20px; 
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 1rem 0;
}
h5 { 
    font-size: 16px; 
    font-weight: 600;
    color: #4a5568;
    margin: 1.25rem 0 0.75rem 0;
}
h6 {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin: 1rem 0 0.5rem 0;
}

p, ol li, ul li { 
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

/* Modern Code Blocks */
pre {
    display: block;
    padding: 1.25rem;
    margin: 1rem 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Inline Code */
code {
    background-color: #edf2f7;
    color: #2d3748;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Modern Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(5deg, #603994 5%, #005CA9 100%);
    border: none;
    padding: 1.5rem;
}

.card-header h4 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.card-header h4 a {
    color: #bee3f8;
    text-decoration: none;
    transition: color 0.2s;
}

.card-header h4 a:hover {
    color: white;
}

.card-body {
    padding: 2rem;
    background-color: #ffffff;
}

/* Modern Tables */
table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table thead {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

table thead th {
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 1rem;
    border: none;
}

table tbody td {
    color: #4a5568;
    font-size: 14px;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

table tbody tr:hover {
    background-color: #edf2f7;
    transition: background-color 0.2s;
}

/* Modern Badges */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.badge-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.badge-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

/* Modern Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-left: 4px solid #3182ce;
}

/* Navigation Links */
ol li a, .card-header a {
    text-decoration: none;
    color: #3182ce;
    font-weight: 500;
    transition: color 0.2s;
}

ol li a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Responsive Images */
img .api {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* List Styling */
ol, ul {
    padding-left: 1.5rem;
}

ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.list-unstyled li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

/* Success Icons */
.fas.fa-check.text-success {
    color: #48bb78 !important;
    font-size: 16px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
