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

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    border-color: #333;
}

.nav-tab.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.card h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #333;
}

.feature-item h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.api-list {
    list-style: none;
}

.api-list li {
    padding: 15px;
    margin: 10px 0;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #1a1a1a;
}

.api-list li strong {
    color: #1a1a1a;
}

.method-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 10px;
}

.method-get { background: #e8f5e9; color: #2e7d32; }
.method-post { background: #e3f2fd; color: #1565c0; }

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card .info {
    padding: 15px;
}

.image-card .info h4 {
    color: #1a1a1a;
    margin-bottom: 8px;
}

.image-card .info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.image-card .info .date {
    color: #999;
    font-size: 0.85rem;
    margin-top: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #333;
}

.btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e8e8e8;
}

.code-block {
    background: #1a1a1a;
    color: #e8e8e8;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block .keyword { color: #ff79c6; }
.code-block .string { color: #f1fa8c; }
.code-block .comment { color: #6272a4; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    color: #fff;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

#swagger-ui {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #666;
}

.footer a {
    color: #1a1a1a;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}
