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

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #1e88e5;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li.active a {
    color: #ffd54f;
}

main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1565c0;
    border-bottom: 3px solid #1e88e5;
    padding-bottom: 0.5rem;
}

.module {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.module-title {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-title::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.module-title:hover::before {
    transform: translateX(5px);
}

.api-item {
    border-bottom: 1px solid #eee;
}

.api-item:last-child {
    border-bottom: none;
}

.api-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.api-header:hover {
    background-color: #f5f9ff;
}

.method {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.method.get {
    background-color: #43a047;
    color: #fff;
}

.method.post {
    background-color: #1e88e5;
    color: #fff;
}

.method.put {
    background-color: #fb8c00;
    color: #fff;
}

.method.delete {
    background-color: #e53935;
    color: #fff;
}

.path {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: #1565c0;
    font-weight: 500;
    flex: 1;
}

.summary {
    font-size: 1rem;
    color: #666;
}

.api-body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.api-item.expanded .api-body {
    max-height: 1000px;
    padding: 1.5rem;
}

.api-section {
    margin-bottom: 1.5rem;
}

.api-section:last-child {
    margin-bottom: 0;
}

.api-section h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #eee;
}

.note {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.schema-ref {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: #666;
}

.code-block {
    background-color: #263238;
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.info-table td.label {
    width: 25%;
    font-weight: 600;
    color: #666;
    background-color: #f8f9fa;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.params-table th,
.params-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.params-table th {
    background-color: #1e88e5;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.params-table tr:hover {
    background-color: #f8f9fa;
}

.overview-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.overview-card h3 {
    font-size: 1.2rem;
    color: #1565c0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e88e5;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .tagline {
    color: #999;
    font-style: italic;
}

footer .tech-support {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav ul {
        gap: 1rem;
    }
    
    .api-header {
        flex-wrap: wrap;
    }
    
    .path {
        font-size: 0.9rem;
    }
    
    .method {
        min-width: 50px;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .params-table {
        display: block;
        overflow-x: auto;
    }
}