/* API Documentation Specific Styles */

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    background: #e5e7eb;
    padding-bottom: 60px;
}

.api-docs-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
}

/* API Docs Card */
.api-docs-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1d5db;
}

/* API Docs Title */
.api-docs-title {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* API Information Table */
.api-info-table {
    margin-bottom: 40px;
}

.api-info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 20px;
}

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

.api-info-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    min-width: 140px;
}

.api-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.method-post {
    color: #ef4444;
}

.api-url {
    font-family: "Courier New", monospace;
    color: #374151;
}

.format-json {
    color: #10b981;
}

/* Service List Section */
.service-list-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 20px;
}

.parameters-table-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

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

.parameters-table thead {
    background: #4a5568;
}

.parameters-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.parameters-table td {
    padding: 16px 20px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

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

.parameters-table tbody tr:hover {
    background: #f9fafb;
}

/* Example Response Section */
.example-response-section {
    margin-bottom: 0;
}

.code-block-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.code-block {
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    color: #374151;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* Add Order Section */
.add-order-section {
    margin-bottom: 40px;
}

.service-type-selector {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control:hover {
    border-color: #9ca3af;
}

.service-parameters {
    margin-bottom: 20px;
}

.add-order-example {
    margin-top: 30px;
}

.example-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-docs-wrapper {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .api-docs-card {
        padding: 24px;
    }

    .api-docs-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .api-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .parameters-table th,
    .parameters-table td {
        padding: 12px 16px;
    }

    .code-block {
        padding: 16px;
        font-size: 0.8rem;
    }

    /* Responsive for Add Order */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .api-docs-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.125rem;
    }
}
