/* ===== API DOCUMENTATION STYLES ===== */
.api-documentation {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding-top: 80px;
}

.api-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* Sidebar Styles */
.api-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: #f1f5f9;
    color: #374151;
}

.sidebar-nav a.active {
    background: #4361ee;
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.api-main {
    padding: 3rem;
    max-width: 1000px;
}

.api-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.api-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-hero p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* API Section Styles */
.api-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.api-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.endpoint-method {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.method-get {
    background: #dbeafe;
    color: #1d4ed8;
}

.method-post {
    background: #dcfce7;
    color: #166534;
}

.method-put {
    background: #fef3c7;
    color: #92400e;
}

.method-delete {
    background: #fee2e2;
    color: #dc2626;
}

.endpoint-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.endpoint-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.endpoint-url {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-left: 4px solid #4361ee;
}

/* Parameters Table */
.parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.parameters-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.parameters-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

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

.param-name {
    font-family: 'Monaco', 'Consolas', monospace;
    color: #0f172a;
    font-weight: 500;
}

.param-type {
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.param-required {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    background: #0f172a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: #334155;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #4361ee;
}

.code-content {
    padding: 1.5rem;
}

.code-content pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Notes and Alerts */
.note {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.note h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.note p {
    color: #1e40af;
    margin-bottom: 0;
}

/* Response Section */
.response-section {
    margin-top: 2rem;
}

/* Responsive Design for API Docs */
@media (max-width: 1024px) {
    .api-container {
        grid-template-columns: 1fr;
    }

    .api-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .api-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .api-main {
        padding: 1.5rem;
    }

    .api-section {
        padding: 1.5rem;
    }

    .api-section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .api-hero h1 {
        font-size: 2.2rem;
    }

    .parameters-table {
        font-size: 0.8rem;
    }

    .parameters-table th,
    .parameters-table td {
        padding: 0.75rem 0.5rem;
    }
}