@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* Apply modern Arabic & English typography across Swagger UI (unified design standard) */
.swagger-ui, .swagger-ui p, .swagger-ui span, .swagger-ui div, .swagger-ui h1, .swagger-ui h2, .swagger-ui h3, .swagger-ui h4, .swagger-ui h5, .swagger-ui h6, .swagger-ui a, .swagger-ui input, .swagger-ui select, .swagger-ui textarea, .swagger-ui button {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.swagger-ui .info {
    text-align: left;
}

.swagger-ui .opblock-body, .swagger-ui .responses-table, .swagger-ui .parameters {
    direction: ltr;
    text-align: left;
}

.swagger-ui .markdown p, .swagger-ui .markdown h1, .swagger-ui .markdown h2, .swagger-ui .markdown h3, .swagger-ui .opblock-description-wrapper p {
    text-align: left;
}

.swagger-ui .info .title {
    font-size: clamp(1.75rem, 3.6vw, 2.35rem) !important;
}

.swagger-ui .info p {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem) !important;
}

.swagger-ui .opblock .opblock-summary-description {
    font-size: clamp(0.98rem, 1.3vw + 0.45rem, 1.2rem) !important;
    font-weight: 600 !important;
    padding-left: 15px !important;
    color: #3b4151 !important;
}

.swagger-ui .opblock .opblock-summary-path {
    font-size: clamp(0.9rem, 1.1vw + 0.3rem, 1.1rem) !important;
    direction: ltr;
    text-align: left;
}

.swagger-ui table thead tr th, .swagger-ui table tbody tr td {
    font-size: clamp(0.88rem, 1.1vw + 0.25rem, 1.05rem) !important;
}

.swagger-ui .opblock .opblock-summary-method {
    font-size: clamp(0.85rem, 1vw + 0.2rem, 0.98rem) !important;
    min-width: 80px;
}

.swagger-ui .btn {
    font-size: clamp(0.85rem, 1.1vw + 0.2rem, 0.96rem) !important;
    padding: 6px 14px !important;
}

.swagger-ui h4.opblock-title {
    font-size: clamp(1.05rem, 1.6vw + 0.4rem, 1.3rem) !important;
}

@media (max-width: 576px) {
    .swagger-ui .opblock-summary {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .swagger-ui .opblock-summary-description {
        margin-top: 8px !important;
        width: 100%;
    }

    .swagger-ui .opblock-summary-path-description-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}
