* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
}

.api-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 13px;
    color: #718096;
}

.sidebar-nav {
    padding: 24px 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    padding: 0 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 8px;
}

.nav-links {
    list-style: none;
}

.nav-links li a {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-links li a:hover {
    background: #f7fafc;
    color: #2d3748;
    border-left-color: #e2e8f0;
}

.nav-links li a.active {
    background: #ebf8ff;
    color: #2c5282;
    border-left-color: #3182ce;
    font-weight: 500;
}

.nav-links li a i {
    width: 20px;
    margin-right: 8px;
    font-size: 12px;
}

.sub-nav {
    padding-left: 24px;
    margin-top: 4px;
}

.sub-nav a {
    padding: 6px 24px;
    font-size: 13px;
}

/* Main Content */
.main-content {
    background: #ffffff;
    padding: 48px 64px;
    max-width: 1200px;
}

.api-breadcrumb {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
}

.api-breadcrumb a {
    color: #3182ce;
    text-decoration: none;
}

.api-breadcrumb a:hover {
    text-decoration: underline;
}

.api-breadcrumb i {
    margin: 0 8px;
    font-size: 10px;
}

.page-header {
    margin-bottom: 48px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.page-description {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
}

/* Sections */
.section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-text {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 24px;
    line-height: 1.7;
}

.subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px;
}

/* Info Callout */
.info-callout {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
}

.info-callout i {
    color: #3182ce;
    margin-right: 12px;
    margin-top: 2px;
}

.info-callout code {
    background: #2c5282;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    margin-left: 8px;
}

/* Code Block */
.code-block {
    background: #1a202c;
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
}

.code-header {
    background: #2d3748;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.code-header span {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

.code-lang {
    font-family: 'Fira Code', monospace;
    color: #a0aec0 !important;
    font-size: 12px !important;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Attributes Table */
.attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.attributes-table thead {
    background: #f7fafc;
}

.attributes-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.attributes-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.attributes-table code {
    background: #f7fafc;
    color: #2c5282;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.type-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
}

/* Method Badges */
.method-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.method-get {
    background: #c6f6d5;
    color: #22543d;
}

.method-post {
    background: #bee3f8;
    color: #2c5282;
}

.method-put {
    background: #feebc8;
    color: #7c2d12;
}

.method-delete {
    background: #fed7d7;
    color: #742a2a;
}

/* Endpoint List */
.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.endpoint-card{
    padding:10px;
}
.endpoint-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s;
}

.endpoint-item:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.1);
    transform: translateX(4px);
}

.endpoint-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.endpoint-info {
    flex: 1;
}

.endpoint-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.endpoint-path {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #718096;
}

.endpoint-description {
    font-size: 14px;
    color: #718096;
    grid-column: 1 / -1;
}

.endpoint-item i.fa-chevron-right {
    color: #cbd5e0;
    font-size: 14px;
}

/* Event Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.event-card-small {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    border-left: 4px solid #ed8936;
    padding: 16px 20px;
    border-radius: 4px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-header code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #744210;
}

.event-link {
    color: #ed8936;
    text-decoration: none;
    font-size: 14px;
}

.event-link:hover {
    color: #c05621;
}

.event-card-small p {
    font-size: 13px;
    color: #975a16;
    margin: 0;
}

@media (max-width: 1024px) {
    .api-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 32px 24px;
    }
}